vikramahuja1001 commented on a change in pull request #4141:
URL: https://github.com/apache/carbondata/pull/4141#discussion_r644544877
##########
File path:
integration/spark/src/main/scala/org/apache/spark/sql/secondaryindex/jobs/SparkBlockletIndexLoaderJob.scala
##########
@@ -160,9 +160,7 @@ class IndexLoaderRDD(
val reader = indexFormat.createRecordReader(inputSplit, attemptContext)
val iter = new Iterator[(TableBlockIndexUniqueIdentifier,
BlockletIndexDetailsWithSchema)] {
// in case of success, failure or cancellation clear memory and stop
execution
- context.addTaskCompletionListener { _ =>
- reader.close()
- }
+ CarbonToSparkAdapter.addTaskCompletionListener(reader.close())
Review comment:
addTaskCompletionListener API changed in Spark 3.1
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]