You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "divijvaidya (via GitHub)" <gi...@apache.org> on 2023/08/22 09:50:28 UTC

[GitHub] [kafka] divijvaidya opened a new pull request, #14273: KAFKA-9926: Fix flaky PlaintextAdminIntegrationTest.testCreatePartitions

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

   ## Exception stack trace
   ```
   org.opentest4j.AssertionFailedError: expected: <3> but was: <1>
   	at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
   	at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
   	at app//org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
   	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
   	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
   	at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:528)
   	at app//kafka.api.PlaintextAdminIntegrationTest.testCreatePartitions(PlaintextAdminIntegrationTest.scala:705)
   ```
   
   ## Examples of CI build failures
   https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-14135/10/testReport/junit/kafka.api/PlaintextAdminIntegrationTest/Build___JDK_11_and_Scala_2_13___testCreatePartitions_String__quorum_zk/
   
   ## Reason for failure
   We don't wait for metadata propagation before asserting for changes made in previous step.
   
   ## Fix
   1. Use existing `TestUtils.waitForAllPartitionsMetadata`
   2. We cannot use `TestUtils.waitForAllPartitionsMetadata` at all places since the test wants to print additional information. In such cases use the existing method with correct parameters in test which was added in https://github.com/apache/kafka/commit/a5d21faf4e2d308828153be2576026f5dfe11f32 to de-flake the 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


[GitHub] [kafka] divijvaidya commented on pull request #14273: KAFKA-9926: Fix flaky PlaintextAdminIntegrationTest.testCreatePartitions

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

   Also merging to 3.6 branch to help with flaky tests over there.


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


[GitHub] [kafka] divijvaidya merged pull request #14273: KAFKA-9926: Fix flaky PlaintextAdminIntegrationTest.testCreatePartitions

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


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


[GitHub] [kafka] divijvaidya commented on pull request #14273: KAFKA-9926: Fix flaky PlaintextAdminIntegrationTest.testCreatePartitions

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

   The modified test is successful in CI - https://ci-builds.apache.org/job/Kafka/job/kafka-pr/job/PR-14273/1/testReport/kafka.api/PlaintextAdminIntegrationTest/ Merging this in.


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