[rust] Writes to a missing partition retry forever and block other new partitions
Search before asking
- [x] I searched in the issues and found nothing similar.
Fluss version
1.0.0 (latest release)
Please describe the bug 🐞
Description
A write to a partition that doesn't exist never completes. The sender refreshes metadata, gets PartitionNotExists, logs it (client/write/sender.rs, "Partition does not exist during metadata update, continuing") and retries. Because unknown partitions are refreshed in one request and the server fails the whole request if one is missing, writes to other new partitions on the same connection hang too.
Java avoids this: since #1002 the client creates the partition on first write (client.writer.dynamic-create-partition.enabled, default true), and with that off the write fails with PartitionNotExistException. #4726 is the same retry-forever problem on the Java side for expired auto partitions; its per-partition refresh is what the Rust core needs too.
Reproduce
Partitioned table (e.g. by region), no partitions created; upsert or append a row for region = "EU" and wait: it never returns. The skipped Elixir test "a write to a missing partition fails without blocking other writes" (admin_test.exs) covers it.
Expected
Dynamic partition creation as in Java, or at least PartitionNotExists returned to the caller, without blocking other partitions.
Solution
No response
Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!