xushiyan commented on code in PR #7251: URL: https://github.com/apache/hudi/pull/7251#discussion_r1027284723
########## hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/TestCleaner.java: ########## @@ -228,32 +212,63 @@ public void testInsertAndCleanFailedWritesByVersions() throws Exception { } /** - * Test Clean-By-Versions using prepped versions of insert/upsert API. + * Test Helper for cleaning failed writes by versions logic from HoodieWriteClient API perspective. + * + * @param insertFn Insert API to be tested + * @param isPreppedAPI Flag to indicate if a prepped-version is used. If true, a wrapper function will be used during + * record generation to also tag the regards (de-dupe is implicit as we use unique record-gen APIs) + * @throws Exception in case of errors */ - @Test - public void testInsertPreppedAndCleanByVersions() throws Exception { - testInsertAndCleanByVersions(SparkRDDWriteClient::insertPreppedRecords, SparkRDDWriteClient::upsertPreppedRecords, - true); - } + private void testInsertAndCleanFailedWritesByVersions( Review Comment: this was moved up from the bottom to here below `public void testInsertAndCleanFailedWritesByVersions()` -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org