jackylk commented on a change in pull request #3629: [CARBONDATA-3716] Fixed
spark 2.4 UT failures
URL: https://github.com/apache/carbondata/pull/3629#discussion_r386008122
##########
File path:
integration/spark/src/main/scala/org/apache/spark/sql/secondaryindex/Jobs/SparkBlockletDataMapLoaderJob.scala
##########
@@ -167,8 +167,10 @@ class DataMapLoaderRDD(
val reader = dataMapFormat.createRecordReader(inputSplit, attemptContext)
val iter = new Iterator[(TableBlockIndexUniqueIdentifier,
BlockletDataMapDetailsWithSchema)] {
// in case of success, failure or cancelation clear memory and stop
execution
- context.addTaskCompletionListener { _ =>
- reader.close()
+ context.addTaskCompletionListener {
+ new TaskCompletionListener {
+ override def onTaskCompletion(context: TaskContext): Unit =
reader.close()
Review comment:
seems not required to change
----------------------------------------------------------------
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]
With regards,
Apache Git Services