Skip to content

Support reading entry fail-fast on unavailable bookie#3446

Closed
gaozhangmin wants to merge 4 commits intoapache:masterfrom
gaozhangmin:skip-unavail-bookie-read
Closed

Support reading entry fail-fast on unavailable bookie#3446
gaozhangmin wants to merge 4 commits intoapache:masterfrom
gaozhangmin:skip-unavail-bookie-read

Conversation

@gaozhangmin
Copy link
Copy Markdown
Contributor

Motivation

During autoRecovery, there were so many Bookie handle is not available errors, it was because replicateWorker would tried to read entry from bookie even if it's already offlined.

We should skip those replica located at unavailable bookie when reading entry.

INFO  org.apache.bookkeeper.client.PendingReadOp - Error: Bookie handle is not available while reading L61530597 E0 from bookie: x.x.x.x:3181

Changes

Before sendReadTo sending request to bookie, we judged if bookie is available or not.

@gaozhangmin gaozhangmin reopened this Aug 11, 2022
@gaozhangmin gaozhangmin reopened this Aug 11, 2022
@gaozhangmin gaozhangmin changed the title Support skipping unavailable bookie when reading entry Support reading entry fail-fast on unavailable bookie Aug 11, 2022
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.

1 participant