-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-49064][BUILD] Upgrade Kafka to 3.8.0 #47540
Conversation
Since the title is changed, could you make it |
def cleanupLogs(): Unit = { | ||
server.logManager.cleanupLogs() | ||
server.logManager.invokePrivate(cleanupLogsPrivateMethod()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that Kafka community changed this without the official KAFKA issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea, that's right, it was this PR that caused this change.
@@ -117,7 +118,7 @@ class KafkaRDDSuite extends SparkFunSuite { | |||
) | |||
messages.foreach { case (k, v) => | |||
val record = new SimpleRecord(k.getBytes, v.getBytes) | |||
log.appendAsLeader(MemoryRecords.withRecords(CompressionType.NONE, record), 0); | |||
log.appendAsLeader(MemoryRecords.withRecords(Compression.NONE, Seq(record): _*), 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a new feature of Kafka 3.8.0 (KAFKA-7632, KIP-390).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM for Apache Spark 4.0.0-preview2. Thank you for keeping tracking this area, @panbingkun .
@@ -447,8 +449,9 @@ class KafkaTestUtils( | |||
sendMessages(msgs.toImmutableArraySeq) | |||
} | |||
|
|||
private val cleanupLogsPrivateMethod = PrivateMethod[LogManager](Symbol("cleanupLogs")) | |||
def cleanupLogs(): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -117,7 +118,7 @@ class KafkaRDDSuite extends SparkFunSuite { | |||
) | |||
messages.foreach { case (k, v) => | |||
val record = new SimpleRecord(k.getBytes, v.getBytes) | |||
log.appendAsLeader(MemoryRecords.withRecords(CompressionType.NONE, record), 0); | |||
log.appendAsLeader(MemoryRecords.withRecords(Compression.NONE, Seq(record): _*), 0); | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. |
Thank you for your review! ❤️ |
The failed Merged to master for Apache Spark 4.0.0-preview2. |
### What changes were proposed in this pull request? The pr aims to upgrade `kafka` from `3.7.1` to `3.8.0`. ### Why are the changes needed? https://downloads.apache.org/kafka/3.8.0/RELEASE_NOTES.html ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47540 from panbingkun/SPARK-49064. Authored-by: panbingkun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
The pr aims to upgrade `kafka` from `3.7.1` to `3.8.0`. https://downloads.apache.org/kafka/3.8.0/RELEASE_NOTES.html No. Pass GA. No. Closes apache#47540 from panbingkun/SPARK-49064. Authored-by: panbingkun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
### What changes were proposed in this pull request? The pr aims to upgrade `kafka` from `3.7.1` to `3.8.0`. ### Why are the changes needed? https://downloads.apache.org/kafka/3.8.0/RELEASE_NOTES.html ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47540 from panbingkun/SPARK-49064. Authored-by: panbingkun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
### What changes were proposed in this pull request? The pr aims to upgrade `kafka` from `3.7.1` to `3.8.0`. ### Why are the changes needed? https://downloads.apache.org/kafka/3.8.0/RELEASE_NOTES.html ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#47540 from panbingkun/SPARK-49064. Authored-by: panbingkun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
The pr aims to upgrade
kafka
from3.7.1
to3.8.0
.Why are the changes needed?
https://downloads.apache.org/kafka/3.8.0/RELEASE_NOTES.html
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.
Was this patch authored or co-authored using generative AI tooling?
No.