fluss icon indicating copy to clipboard operation
fluss copied to clipboard

[client] Lookups on a dropped table never return

Open nicolazar opened this issue 1 month ago • 4 comments

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

  1. Create a primary key table, upsert a row, create a lookuper, look the row up (works).
  2. Drop the table.
  3. 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 avatar Oct 18 '26 17:10 nicolazar

@nicolazar can i work on this one?

dstolis avatar Oct 19 '26 07:10 dstolis

@dstolis assigned

polyzos avatar Oct 19 '26 07:10 polyzos

@nicolazar Thanks for surfacing this 👍

polyzos avatar Oct 19 '26 07:10 polyzos

@nicolazar @polyzos could you please take a look?

dstolis avatar Oct 21 '26 08:10 dstolis