You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "frankvicky (via GitHub)" <gi...@apache.org> on 2025/01/12 13:16:39 UTC

[PR] KAFKA-18480: Fix fail e2e `test_offset_truncate` [kafka]

frankvicky opened a new pull request, #18492:
URL: https://github.com/apache/kafka/pull/18492

   JIRA: KAFKA-18480
   
   The test keeps failing due to not converting to KRaft.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18480: Fix fail e2e `test_offset_truncate` [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 merged PR #18492:
URL: https://github.com/apache/kafka/pull/18492


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18480: Fix fail e2e `test_offset_truncate` [kafka]

Posted by "TaiJuWu (via GitHub)" <gi...@apache.org>.
TaiJuWu commented on code in PR #18492:
URL: https://github.com/apache/kafka/pull/18492#discussion_r1912458228


##########
tests/kafkatest/tests/client/truncation_test.py:
##########
@@ -51,7 +51,8 @@ def print_record(event, node):
         return consumer
 
     @cluster(num_nodes=7)
-    def test_offset_truncate(self):
+    @matrix(metadata_quorum=quorum.all_non_upgrade)

Review Comment:
   Should we add `new_coordinator` to this test?
   And we can remove `quorum.zk` below.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18480: Fix fail e2e `test_offset_truncate` [kafka]

Posted by "frankvicky (via GitHub)" <gi...@apache.org>.
frankvicky commented on PR #18492:
URL: https://github.com/apache/kafka/pull/18492#issuecomment-2585739845

   I have run the test on several machines with this patch.
   local:
   ![Screenshot from 2025-01-12 21-38-41](https://github.com/user-attachments/assets/b12c9940-d04a-4348-9848-7170d6c1ef3b)
   
   jenkins:
   ![Screenshot from 2025-01-12 21-40-08](https://github.com/user-attachments/assets/4c55ecd2-21a7-4fdc-99ff-83b3cb756e54)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18480: Fix fail e2e `test_offset_truncate` [kafka]

Posted by "TaiJuWu (via GitHub)" <gi...@apache.org>.
TaiJuWu commented on code in PR #18492:
URL: https://github.com/apache/kafka/pull/18492#discussion_r1912654848


##########
tests/kafkatest/tests/client/truncation_test.py:
##########
@@ -51,7 +51,8 @@ def print_record(event, node):
         return consumer
 
     @cluster(num_nodes=7)
-    def test_offset_truncate(self):
+    @matrix(metadata_quorum=quorum.all_non_upgrade, use_new_coordinator=[True])
+    def test_offset_truncate(self, metadata_quorum=quorum.zk, use_new_coordinator=False):

Review Comment:
   nit: default value can be removed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18480: Fix fail e2e `test_offset_truncate` [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on code in PR #18492:
URL: https://github.com/apache/kafka/pull/18492#discussion_r1920931424


##########
tests/kafkatest/tests/client/truncation_test.py:
##########
@@ -34,7 +34,7 @@ class TruncationTest(VerifiableConsumerTest):
 
     def __init__(self, test_context):
         super(TruncationTest, self).__init__(test_context, num_consumers=1, num_producers=1,
-                                             num_zk=1, num_brokers=3, topics=self.TOPICS)
+                                             num_zk=0, num_brokers=3, topics=self.TOPICS)

Review Comment:
   sorry that we use `num_zk` to define the `controller_num_nodes_override` so we don't use `0`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18480: Fix fail e2e `test_offset_truncate` [kafka]

Posted by "TaiJuWu (via GitHub)" <gi...@apache.org>.
TaiJuWu commented on code in PR #18492:
URL: https://github.com/apache/kafka/pull/18492#discussion_r1912458228


##########
tests/kafkatest/tests/client/truncation_test.py:
##########
@@ -51,7 +51,8 @@ def print_record(event, node):
         return consumer
 
     @cluster(num_nodes=7)
-    def test_offset_truncate(self):
+    @matrix(metadata_quorum=quorum.all_non_upgrade)

Review Comment:
   Should we add `new_coordinator` to this test?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18480: Fix fail e2e `test_offset_truncate` [kafka]

Posted by "frankvicky (via GitHub)" <gi...@apache.org>.
frankvicky commented on code in PR #18492:
URL: https://github.com/apache/kafka/pull/18492#discussion_r1912463400


##########
tests/kafkatest/tests/client/truncation_test.py:
##########
@@ -51,7 +51,8 @@ def print_record(event, node):
         return consumer
 
     @cluster(num_nodes=7)
-    def test_offset_truncate(self):
+    @matrix(metadata_quorum=quorum.all_non_upgrade)

Review Comment:
   local:
   ![Screenshot from 2025-01-12 22-17-38](https://github.com/user-attachments/assets/d0b0ed85-23b7-45d1-a71f-6ed33d552c88)
   
   jenkins:
   ![Screenshot from 2025-01-12 22-23-42](https://github.com/user-attachments/assets/bfefccc2-0047-4f2d-b1bb-62e1a2810aae)
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org