You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "gyang94 (via GitHub)" <gi...@apache.org> on 2026/10/19 08:07:31 UTC
[PR] [test] Wait for auto partitions in Flink catalog test [fluss]
gyang94 opened a new pull request, #4730:
URL: https://github.com/apache/fluss/pull/4730
### Purpose
Fixes #4697.
`FlinkCatalogTest.testCreateTable` creates an auto-partitioned table, but its teardown can drop the table while the initial automatic partitions are still being created. The unfinished partition creation can recreate an empty ZooKeeper table node. A later catalog test, including `testListMaterializedTables`, then fails when reading the empty table metadata.
The shorter Netty shutdown introduced by #4645 exposes this timing dependency.
### Brief change log
Wait for the initial auto-created partitions with the existing `FlussClusterExtension.waitUntilPartitionAllReady` helper immediately after creating the auto-partitioned table. This also covers the inherited Flink 2.2 and 2.3 catalog tests.
### Tests
Validated locally with Java 11:
```sh
mvn -B -o \
-pl fluss-flink/fluss-flink-common,fluss-flink/fluss-flink-2.2,fluss-flink/fluss-flink-2.3 -am \
-Dtest=FlinkCatalogTest,Flink22CatalogTest,Flink23CatalogTest \
-Dsurefire.failIfNoSpecifiedTests=false verify
```
- All three targeted catalog suites passed. Existing multi-version exclusions remained in effect for the full suites.
- Repeated `testCreateTable` followed by `testListMaterializedTables` five times in each of the three catalog test classes, with method-name ordering: all 30 test executions passed, with none skipped.
- Checkstyle, Spotless, and Apache RAT checks passed during the targeted reactor verification.
- One additional repeat attempt stalled during Flink 2.3 cluster initialization, before either test method ran. A thread dump showed ZooKeeper connection retries in `FlussClusterExtension.beforeAll`; that attempt was interrupted and is not counted as a pass. The replacement run with diagnostic logging passed.
### API and Format
No API or storage format changes.
### Documentation
No user-facing documentation changes.
### Generative AI
Authored with OpenAI Codex (GPT-6).
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [test] Wait for auto partitions in Flink catalog test [fluss]
Posted by "swuferhong (via GitHub) via issues" <is...@fluss.apache.org>.
swuferhong closed pull request #4730: [test] Wait for auto partitions in Flink catalog test
URL: https://github.com/apache/fluss/pull/4730
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org