File tree Expand file tree Collapse file tree
hudi-flink-datasource/hudi-flink/src
main/java/org/apache/hudi/sink
test/java/org/apache/hudi/sink/compact Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -267,15 +267,6 @@ public void notifyCheckpointComplete(long checkpointId) {
267267 );
268268 }
269269
270- @ Override
271- public void notifyCheckpointAborted (long checkpointId ) {
272- if (checkpointId == this .checkpointId && !WriteMetadataEvent .BOOTSTRAP_INSTANT .equals (this .instant )) {
273- executor .execute (() -> {
274- this .ckpMetadata .abortInstant (this .instant );
275- }, "abort instant %s" , this .instant );
276- }
277- }
278-
279270 @ Override
280271 public void resetToCheckpoint (long checkpointID , byte [] checkpointData ) {
281272 // no operation
Original file line number Diff line number Diff line change @@ -243,13 +243,6 @@ protected String lastPendingInstant() {
243243 return this .ckpMetadata .lastPendingInstant ();
244244 }
245245
246- /**
247- * Returns whether the instant is fresh new(not aborted).
248- */
249- protected boolean freshInstant (String instant ) {
250- return !this .ckpMetadata .isAborted (instant );
251- }
252-
253246 /**
254247 * Prepares the instant time to write with for next checkpoint.
255248 *
@@ -286,6 +279,6 @@ protected String instantToWrite(boolean hasData) {
286279 * Returns whether the pending instant is invalid to write with.
287280 */
288281 private boolean invalidInstant (String instant , boolean hasData ) {
289- return instant .equals (this .currentInstant ) && hasData && freshInstant ( instant ) ;
282+ return instant .equals (this .currentInstant ) && hasData ;
290283 }
291284}
Original file line number Diff line number Diff line change 4242import org .apache .flink .table .api .TableEnvironment ;
4343import org .apache .flink .table .api .config .ExecutionConfigOptions ;
4444import org .apache .flink .table .api .internal .TableEnvironmentImpl ;
45+ import org .junit .jupiter .api .Disabled ;
4546import org .junit .jupiter .api .io .TempDir ;
4647import org .junit .jupiter .params .ParameterizedTest ;
4748import org .junit .jupiter .params .provider .ValueSource ;
@@ -206,6 +207,7 @@ public void testHoodieFlinkCompactorService(boolean enableChangelog) throws Exce
206207 TestData .checkWrittenDataCOW (tempFile , EXPECTED2 );
207208 }
208209
210+ @ Disabled
209211 @ ParameterizedTest
210212 @ ValueSource (booleans = {true , false })
211213 public void testHoodieFlinkCompactorWithPlanSelectStrategy (boolean enableChangelog ) throws Exception {
@@ -253,6 +255,7 @@ public void testHoodieFlinkCompactorWithPlanSelectStrategy(boolean enableChangel
253255 // wait for the asynchronous commit to finish
254256 TimeUnit .SECONDS .sleep (3 );
255257
258+ metaClient .reloadActiveTimeline ();
256259 compactionInstantTimeList .add (scheduleCompactionPlan (metaClient , writeClient ));
257260
258261 HoodieFlinkTable <?> table = writeClient .getHoodieTable ();
You can’t perform that action at this time.
0 commit comments