danny0405 commented on code in PR #13380:
URL: https://github.com/apache/hudi/pull/13380#discussion_r2128574346
##########
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:
the client is created just to fetch the txn manager?
--
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]