codope commented on code in PR #19464:
URL: https://github.com/apache/hudi/pull/19464#discussion_r3709600411
##########
hudi-client/hudi-flink-client/src/test/java/org/apache/hudi/client/TestHoodieFlinkTableServiceClient.java:
##########
@@ -218,15 +225,24 @@ void testCompleteCompactionCommitsAndCleansMarkers() {
@Test
void testCompleteClusteringCommitsAndCleansMarkers() {
+ ClusteringCallback.MESSAGES.clear();
HoodieWriteConfig writeConfig = HoodieWriteConfig.newBuilder()
.withPath(metaClient.getBasePath())
.withMetadataConfig(HoodieMetadataConfig.newBuilder().enable(false).build())
+ .withCallbackConfig(HoodieWriteCommitCallbackConfig.newBuilder()
+ .writeCommitCallbackOn("true")
+ .withCallbackClass(ClusteringCallback.class.getName())
+ .build())
.build();
HoodieFlinkTable table = mock(HoodieFlinkTable.class);
HoodieActiveTimeline activeTimeline = mock(HoodieActiveTimeline.class);
when(table.getActiveTimeline()).thenReturn(activeTimeline);
when(table.getInstantGenerator()).thenReturn(metaClient.getInstantGenerator());
HoodieInstant clusteringInstant = mock(HoodieInstant.class);
Review Comment:
stubbed the inflight action.
--
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]