yuqi1129 opened a new issue, #11602:
URL: https://github.com/apache/gravitino/issues/11602

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   `TopicAuthorizationIT.testListTopic()` intermittently fails in Backend IT. 
The test creates three Kafka topics, but `listTopics()` sometimes returns only 
two.
   
   Expected: 3 topics  
   Actual: 2 topics
   
   The failure is intermittent, occurring approximately once every 10 runs. 
This may be a timing or visibility issue between topic creation and Kafka topic 
listing.
   
   ### Error message and/or stacktrace
   
   ```text
   TopicAuthorizationIT > testListTopic() FAILED
   org.opentest4j.AssertionFailedError: array lengths differ, expected: <3> but 
was: <2>
       at 
org.junit.jupiter.api.Assertions.assertArrayEquals(Assertions.java:1452)
       at 
org.apache.gravitino.client.integration.test.authorization.TopicAuthorizationIT.testListTopic(TopicAuthorizationIT.java:155)
   ```
   
   ### How to reproduce
   
   1. Use the `main` branch.
   2. Run Backend IT with JDK 17, H2, and embedded mode repeatedly.
   3. Run `TopicAuthorizationIT` approximately 10 times.
   4. Observe that `testListTopic()` may return only two of the three topics 
created by `testCreateTopic()`.
   
   CI failure: 
https://github.com/apache/gravitino/actions/runs/27334407837/job/80755118347
   
   ### Additional context
   
   The failed CI run completed 206 `client-java` tests with one failure and one 
skipped test. No existing open duplicate issue was found.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to