the-other-tim-brown commented on code in PR #13380:
URL: https://github.com/apache/hudi/pull/13380#discussion_r2128962655


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestCOWDataSource.scala:
##########
@@ -1860,14 +1860,16 @@ class TestCOWDataSource extends 
HoodieSparkClientTestBase with ScalaAssertionSup
         }
         if (firstClusteringState == HoodieInstant.State.REQUESTED.name()) {
           val table = HoodieSparkTable.create(writeConfig, context)
-          table.rollbackInflightClustering(
-            metaClient.getActiveTimeline.getLastClusteringInstant.get,
-            new java.util.function.Function[String, 
Option[HoodiePendingRollbackInfo]] {
-              override def apply(commitToRollback: String): 
Option[HoodiePendingRollbackInfo] = {
-                new SparkRDDWriteClient(context, 
writeConfig).getTableServiceClient
-                  .getPendingRollbackInfo(table.getMetaClient, 
commitToRollback, false)
-              }
-            })
+          val client = new SparkRDDWriteClient(context, writeConfig)

Review Comment:
   No. It is originally created in line 1867. It is used for the call to 
`getPendingRollbackInfo`



-- 
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]

Reply via email to