You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@fluss.apache.org by GitBox <gi...@apache.org> on 2026/09/04 09:23:23 UTC

[GH] (fluss/dev-resharding-phase1): Workflow run "Rust Build and Tests" is working again!

The GitHub Actions job "Rust Build and Tests" on fluss.git/dev-resharding-phase1 has succeeded.
Run started by GitHub user platinumhamburg (triggered by platinumhamburg).

Head commit for run:
1c05bf58f8ab09ebe410bb6eeea77ce5a7ffee64 / 白鵺 <oc...@alibaba-inc.com>
[client] Centralize the missing-bucket-count fallback into one policy

The policy "a per-partition/per-table bucket count is missing: fall back to
the table-level count only when the table was never rescaled (bucketCountEpoch
== 0), otherwise fail loud" was duplicated across three code paths and one of
them was wrong: the lookup path silently fell back, so after a rescale a
primary-key/prefix lookup would route to the wrong bucket and return an empty
or wrong result with no error (a read/write inconsistency, since writes route
to the new bucket).

Introduce ClientRpcMessageUtils.fallbackBucketCountOrFail as the single source
of truth and delegate all four sites to it:
  - AbstractLookuper (bug fix: silent -> fail loud on epoch > 0);
  - WriterClient partitioned branch;
  - WriterClient non-partitioned branch (previously a silent table-level
    fallback that is safe only while non-partitioned tables cannot be
    rescaled; delegating makes it correct in advance for when they can);
  - FlussAdmin listPartitionInfos.

The lookup paths deliver the resulting StaleMetadataException as a failed
future, consistent with the historical-lookup path, rather than throwing it
synchronously from the async lookup() method. A PrimaryKeyLookuperTest case
proves that a rescaled partition with a missing per-partition count fails loud
via a failed future (not a silent wrong bucket, not a synchronous throw).

Also drops the now-redundant tableLevelNumBuckets parameter from
resolvePartitionBucketCount.

Report URL: https://github.com/apache/fluss/actions/runs/33857453322

With regards,
GitHub Actions via GitBox