yihua commented on code in PR #13407:
URL: https://github.com/apache/hudi/pull/13407#discussion_r2136857119
##########
hudi-client/hudi-client-common/src/test/java/org/apache/hudi/utils/HoodieWriterClientTestHarness.java:
##########
@@ -385,15 +385,16 @@ protected HoodieWriteConfig
getRollbackMarkersAndConsistencyGuardWriteConfig(
.withProperties(properties).build();
}
- protected HoodieWriteConfig getConsistencyCheckWriteConfig(boolean
enableOptimisticConsistencyGuard) {
- return !enableOptimisticConsistencyGuard ? (getConfigBuilder()
-
.withConsistencyGuardConfig(ConsistencyGuardConfig.newBuilder().withConsistencyCheckEnabled(true)
-
.withMaxConsistencyCheckIntervalMs(1).withInitialConsistencyCheckIntervalMs(1).withEnableOptimisticConsistencyGuard(enableOptimisticConsistencyGuard).build())
- .build()) : (getConfigBuilder()
-
.withConsistencyGuardConfig(ConsistencyGuardConfig.newBuilder().withConsistencyCheckEnabled(true)
-
.withEnableOptimisticConsistencyGuard(enableOptimisticConsistencyGuard)
- .withOptimisticConsistencyGuardSleepTimeMs(1).build())
- .build());
+ protected HoodieWriteConfig getConsistencyCheckWriteConfig(boolean
enableOptimisticConsistencyGuard, boolean populateMetaFields) {
Review Comment:
I'm curious about how `populateMetaFields` affects the specific tests that
require this change.
##########
hudi-flink-datasource/hudi-flink/pom.xml:
##########
@@ -349,6 +349,12 @@
</exclusions>
</dependency>
<!-- Test dependencies -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.13.2</version>
Review Comment:
nit: version can be removed
--
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]