danny0405 commented on code in PR #12209:
URL: https://github.com/apache/hudi/pull/12209#discussion_r1839288524
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieMetadataWriteUtils.java:
##########
@@ -165,12 +168,15 @@ public static HoodieWriteConfig createMetadataWriteConfig(
.withRecordMergeStrategyId(HoodieRecordMerger.PAYLOAD_BASED_MERGE_STRATEGY_UUID)
.withPayloadConfig(HoodiePayloadConfig.newBuilder()
.withPayloadClass(HoodieMetadataPayload.class.getCanonicalName()).build())
-
.withRecordMergeImplClasses(HoodieAvroRecordMerger.class.getCanonicalName());
+
.withRecordMergeImplClasses(HoodieAvroRecordMerger.class.getCanonicalName())
+
.withWriteConcurrencyMode(WriteConcurrencyMode.NON_BLOCKING_CONCURRENCY_CONTROL)
+
.withLockConfig(HoodieLockConfig.newBuilder().withLockProvider(InProcessLockProvider.class).build());
Review Comment:
The default lock provider is in-process, but it does not work for
distributed concurrent writes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]