Skip to content

Commit 8136aa6

Browse files
Adding TransactionProcessor to map on returning batch of data
1 parent 86aa274 commit 8136aa6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

external/flume-sink/src/main/scala/org/apache/spark/flume/sink/SparkAvroCallbackHandler.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ private class SparkAvroCallbackHandler(val threads: Int, val channel: Channel,
6262
transactionExecutorOpt.map(executor => {
6363
executor.submit(processor)
6464
})
65+
processorMap.put(sequenceNumber, processor)
6566
// Wait until a batch is available - will be an error if
6667
processor.getEventBatch
6768
}

0 commit comments

Comments
 (0)