You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by da...@apache.org on 2023/04/18 09:11:37 UTC
[kafka] branch 3.4 updated: HOTFIX: KAFKA-14869: Updated location of auto-generated records
This is an automated email from the ASF dual-hosted git repository.
dajac pushed a commit to branch 3.4
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/3.4 by this push:
new 6a2331a60ab HOTFIX: KAFKA-14869: Updated location of auto-generated records
6a2331a60ab is described below
commit 6a2331a60ab2e79841cbee541dbbb8f9b71727aa
Author: David Jacot <dj...@confluent.io>
AuthorDate: Tue Apr 18 11:07:21 2023 +0200
HOTFIX: KAFKA-14869: Updated location of auto-generated records
While cherry-picking 5115906515febe74a9e7861cc5ad818206976ae9 to 3.4, auto-generated classes where still on my disk so the issue was not caught. This patch fixes the full qualified named to match the location of the auto-generated records in 3.4.
---
.../unit/kafka/coordinator/group/GroupMetadataManagerTest.scala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/src/test/scala/unit/kafka/coordinator/group/GroupMetadataManagerTest.scala b/core/src/test/scala/unit/kafka/coordinator/group/GroupMetadataManagerTest.scala
index 826c34f5375..f32bde1e944 100644
--- a/core/src/test/scala/unit/kafka/coordinator/group/GroupMetadataManagerTest.scala
+++ b/core/src/test/scala/unit/kafka/coordinator/group/GroupMetadataManagerTest.scala
@@ -2641,7 +2641,7 @@ class GroupMetadataManagerTest {
@Test
def testReadMessageKeyCanReadUnknownMessage(): Unit = {
- val record = new org.apache.kafka.coordinator.group.generated.GroupMetadataKey()
+ val record = new kafka.internals.generated.GroupMetadataKey()
val unknownRecord = MessageUtil.toVersionPrefixedBytes(Short.MaxValue, record)
val key = GroupMetadataManager.readMessageKey(ByteBuffer.wrap(unknownRecord))
assertEquals(UnknownKey(Short.MaxValue), key)
@@ -2664,8 +2664,8 @@ class GroupMetadataManagerTest {
val groupMetadataRecord = buildStableGroupRecordWithMember(generation, protocolType, protocol, memberId)
// Should ignore unknown record
- val unknownKey = new org.apache.kafka.coordinator.group.generated.GroupMetadataKey()
- val lowestUnsupportedVersion = (org.apache.kafka.coordinator.group.generated.GroupMetadataKey
+ val unknownKey = new kafka.internals.generated.GroupMetadataKey()
+ val lowestUnsupportedVersion = (kafka.internals.generated.GroupMetadataKey
.HIGHEST_SUPPORTED_VERSION + 1).toShort
val unknownMessage1 = MessageUtil.toVersionPrefixedBytes(Short.MaxValue, unknownKey)