[client] Lookups on a dropped table never return
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 lookup on a table that was dropped after the lookuper was created never completes: neither an error nor a timeout are returned to the client.
This is because when the bucket leader can't be found, the lookup is re-enqueued without counting the retry, so lookup.max-retries never applies. The same happens in both the Java client and the Rust SDK.
Writes do not have this problem - it was solved in https://github.com/apache/fluss/issues/4136: the Rust write sender checks whether the table is gone and fails pending batches with TableNotExist as expected.
Reproduce
- Create a primary key table, upsert a row, create a lookuper, look the row up (works).
- Drop the table.
- Look the row up again: the call never returns.
For reference, see the skipped Elixir test "returns an error after the table is dropped" in bindings/elixir/test/integration/lookup_test.exs (#4704).
Solution
No response
Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
@nicolazar can i work on this one?
@dstolis assigned
@nicolazar Thanks for surfacing this 👍
@nicolazar @polyzos could you please take a look?