Skip to content

Add read failed log for ledger checker.#4010

Merged
StevenLuMT merged 2 commits intoapache:masterfrom
horizonzy:add-debug-log-for-ledger-checker
Jul 7, 2023
Merged

Add read failed log for ledger checker.#4010
StevenLuMT merged 2 commits intoapache:masterfrom
horizonzy:add-debug-log-for-ledger-checker

Conversation

@horizonzy
Copy link
Member

Descriptions of the changes in this PR:
The ledger checker will try to read entries from the bookie. If the read failed, mark the ledger as under-replicated.

For users, they didn't know the reason why the ledger mark as under-replicated. Is it because the entry is missing, the ledger does not exist, or because the bookie is under heavy load and the read request times out?

So here we add debug log for ledger checker. If read failed, log the error code.

@horizonzy
Copy link
Member Author

rerun failure checks

@zymap zymap requested review from eolivelli and hangc0276 July 3, 2023 02:17
@zymap zymap added this to the 4.17.0 milestone Jul 3, 2023
Copy link
Member

@StevenLuMT StevenLuMT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for modifying the fifth parameter of bookieClient.readEntry?
I couldn't see it's motivation in this PR

@horizonzy
Copy link
Member Author

What is the reason for modifying the fifth parameter of bookieClient.readEntry? I couldn't see it's motivation in this PR

In the callback, we need to print the bookie. So we need the bookie as the ctx.

@wenbingshen
Copy link
Member

What is the reason for modifying the fifth parameter of bookieClient.readEntry? I couldn't see it's motivation in this PR

In the callback, we need to print the bookie. So we need the bookie as the ctx.

@StevenLuMT Can you help take a look at this comment? Thanks.

Copy link
Member

@StevenLuMT StevenLuMT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StevenLuMT StevenLuMT merged commit fb0d3d6 into apache:master Jul 7, 2023
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Add read failed log for ledger checker.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments