Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-43233][SS] Add logging for Kafka Batch Reading for topic parti…
…tion, offset range and task ID ### What changes were proposed in this pull request? We add a logging when creating the batch reader with task ID, topic, partition and offset range included. The log line looks like following: 23/04/18 22:35:38 INFO KafkaBatchReaderFactory: Creating Kafka reader partitionId=1 partition=StreamingDustTest-KafkaToKafkaTopic-4ccf8662-c3ca-4f3b-871e-1853c0e61765-source-2 fromOffset=0 untilOffset=3 queryId=b5b806c3-ebf3-432e-a9a7-d882d474c0f5 batchId=0 taskId=1 ### Why are the changes needed? Right now, for structure streaming from Kafka, it's hard to finding which task handling which topic/partition and offset range. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Run KafkaMicroBatchV2SourceSuite and watch logging outputs contain information needed. Also does a small cluster test and observe logs. Closes apache#40905 from siying/kafka_logging. Lead-authored-by: Siying Dong <[email protected]> Co-authored-by: Ubuntu <[email protected]> Signed-off-by: Jungtaek Lim <[email protected]>
- Loading branch information