Skip to content

[rust] Bound waits for remote storage credentials - #5410

Open
slfan1989 wants to merge 1 commit into
apache:mainfrom
slfan1989:fluss-5409
Open

slfan1989 wants to merge 1 commit into
apache:mainfrom
slfan1989:fluss-5409

Conversation

@slfan1989

Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #5409

KV snapshot reads and remote log downloads can wait indefinitely for storage credentials when token acquisition keeps failing. The background token manager logs the failure, but the waiting reader never receives it.

Brief change log

  • Return non-retriable token errors to readers waiting for credentials.
  • Limit each token RPC to 15 seconds and each credential wait to 60 seconds. Keep background retries so later reads can recover.
  • Return credential errors directly from remote log downloads. Keep the existing retry behavior for file download failures.

Tests

  • Verified that a token error from a mock TabletServer reaches the waiting reader.
  • Verified that credential waits time out, later reads can recover, and a credential failure releases the remote log download permit.

API and Format

No.

Documentation

No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rust] Remote reads can hang when storage token acquisition fails

1 participant