Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

panbingkun
Copy link
Contributor

@panbingkun panbingkun commented Jul 31, 2024

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.

@github-actions github-actions bot added the BUILD label Jul 31, 2024
@panbingkun panbingkun changed the title [WIP][SPARK-49064][BUILD] Upgrade Kafka to 3.8.0 [SPARK-49064][BUILD] Upgrade Kafka to 3.8.0 Jul 31, 2024
@dongjoon-hyun
Copy link
Member

Since the title is changed, could you make it Ready for review?

def cleanupLogs(): Unit = {
server.logManager.cleanupLogs()
server.logManager.invokePrivate(cleanupLogsPrivateMethod())
Copy link
Member

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.

Copy link
Contributor Author

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);
Copy link
Member

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).

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a 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 = {
Copy link
Contributor Author

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);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@panbingkun panbingkun marked this pull request as ready for review July 31, 2024 06:37
@panbingkun
Copy link
Contributor Author

Since the title is changed, could you make it Ready for review?

Done.

@panbingkun
Copy link
Contributor Author

+1, LGTM for Apache Spark 4.0.0-preview2. Thank you for keeping tracking this area, @panbingkun .

Thank you for your review! ❤️

@dongjoon-hyun
Copy link
Member

The failed OracleIntegrationSuite is irrelevant to this PR.

Merged to master for Apache Spark 4.0.0-preview2.

fusheng9399 pushed a commit to fusheng9399/spark that referenced this pull request Aug 6, 2024
### 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]>
szehon-ho pushed a commit to szehon-ho/spark that referenced this pull request Aug 7, 2024
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]>
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
### 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]>
himadripal pushed a commit to himadripal/spark that referenced this pull request Oct 19, 2024
### 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants