Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[log] Add journal file path that caused failure in multi-journal config #3623

Merged
merged 1 commit into from Nov 9, 2022

Conversation

rdhabalia
Copy link
Contributor

Motivation

Right now, if bookie fails to replay the journal then it logs journal-txn-id but it doesn't log journal dir path. It will be useful if bookie prints journal path along with journal-dir in case if user is using multi-journal directories so, user can troubleshoot the issue and fix it correctly.

2022-11-07T18:29:07,205+0000 [main] ERROR org.apache.bookkeeper.bookie.Bookie - Exception while replaying journals, shutting down
java.io.IOException: Recovery log 1667603421612 is missing
        at org.apache.bookkeeper.bookie.Bookie.replay(Bookie.java:932) ~[org.apache.bookkeeper-bookkeeper-server-4.12.jar:4.12]
        at org.apache.bookkeeper.bookie.Bookie.readJournal(Bookie.java:911) ~[org.apache.bookkeeper-bookkeeper-server-4.12.jar]

Changes

Add journal dir file path in journal replay failure.

@hangc0276 hangc0276 merged commit 8357e4b into apache:master Nov 9, 2022
@hangc0276
Copy link
Contributor

This Pr can not be cherry-picked to branch-4.14, and I will push another PR to branch-4.14

hangc0276 added a commit to hangc0276/bookkeeper that referenced this pull request Nov 14, 2022
hangc0276 added a commit that referenced this pull request Nov 16, 2022
### Motivation
#3623 is hard to be cherry-picked to branch-4.14, push another PR for it.

### Changes
cherry-pick PR #3623 to branch-4.14
nicoloboschi pushed a commit to datastax/bookkeeper that referenced this pull request Jan 11, 2023
### Motivation
apache#3623 is hard to be cherry-picked to branch-4.14, push another PR for it.

### Changes
cherry-pick PR apache#3623 to branch-4.14

(cherry picked from commit 03947ad)
yaalsn pushed a commit to yaalsn/bookkeeper that referenced this pull request Jan 30, 2023
…ig (apache#3623)

### Motivation

Right now, if bookie fails to replay the journal then it logs journal-txn-id but it doesn't log journal dir path. It will be useful if bookie prints journal path along with journal-dir in case if user is using multi-journal directories so, user can troubleshoot the issue and fix it correctly.

```
2022-11-07T18:29:07,205+0000 [main] ERROR org.apache.bookkeeper.bookie.Bookie - Exception while replaying journals, shutting down
java.io.IOException: Recovery log 1667603421612 is missing
        at org.apache.bookkeeper.bookie.Bookie.replay(Bookie.java:932) ~[org.apache.bookkeeper-bookkeeper-server-4.12.jar:4.12]
        at org.apache.bookkeeper.bookie.Bookie.readJournal(Bookie.java:911) ~[org.apache.bookkeeper-bookkeeper-server-4.12.jar]
```

### Changes

Add journal dir file path in journal replay failure.
zymap pushed a commit that referenced this pull request Feb 16, 2023
…ig (#3623)

### Motivation

Right now, if bookie fails to replay the journal then it logs journal-txn-id but it doesn't log journal dir path. It will be useful if bookie prints journal path along with journal-dir in case if user is using multi-journal directories so, user can troubleshoot the issue and fix it correctly.

```
2022-11-07T18:29:07,205+0000 [main] ERROR org.apache.bookkeeper.bookie.Bookie - Exception while replaying journals, shutting down
java.io.IOException: Recovery log 1667603421612 is missing
        at org.apache.bookkeeper.bookie.Bookie.replay(Bookie.java:932) ~[org.apache.bookkeeper-bookkeeper-server-4.12.jar:4.12]
        at org.apache.bookkeeper.bookie.Bookie.readJournal(Bookie.java:911) ~[org.apache.bookkeeper-bookkeeper-server-4.12.jar]
```

### Changes

Add journal dir file path in journal replay failure.

(cherry picked from commit 8357e4b)
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.

None yet

6 participants