mchades opened a new pull request, #12268:
URL: https://github.com/apache/gravitino/pull/12268

   ### What changes were proposed in this pull request?
   
   Wait for Kafka topic deletion metadata to converge in
   `CatalogKafkaIT.testNameSpec` before asserting that the topic no longer 
exists.
   
   ### Why are the changes needed?
   
   Kafka topic deletion is asynchronous. `dropTopic` may return before 
subsequent
   metadata reads stop reporting the deleted topic, making the immediate
   `topicExists` assertion flaky.
   
   Fix: #12248
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. This change only stabilizes a Kafka catalog integration test.
   
   ### How was this patch tested?
   
   - `./gradlew :catalogs:catalog-kafka:spotlessCheck`
   - Ran `CatalogKafkaIT.testNameSpec` 10 consecutive times with Docker tests
     enabled in embedded H2 mode; all 10 runs passed.
   - `./gradlew :catalogs:catalog-kafka:cleanTest
     :catalogs:catalog-kafka:test -PtestMode=embedded -PjdbcBackend=h2
     -PskipDockerTests=false -PskipWeb=true --console=plain`
   


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