Skip to content

[improve][conf] Change the default value of readOnlyModeOnAnyDiskFullEnabled to true#4520

Merged
StevenLuMT merged 3 commits into
apache:masterfrom
liangyepianzhou:readOnlyModeOnAnyDiskFullEnabled=true
Dec 2, 2024
Merged

[improve][conf] Change the default value of readOnlyModeOnAnyDiskFullEnabled to true#4520
StevenLuMT merged 3 commits into
apache:masterfrom
liangyepianzhou:readOnlyModeOnAnyDiskFullEnabled=true

Conversation

@liangyepianzhou

@liangyepianzhou liangyepianzhou commented Oct 31, 2024

Copy link
Copy Markdown
Contributor

Motivation

The #3212 import a feature: convert bookie to read-only mode when any ledger disks is full.
In our practice, we found that when the bookie disk is full, if it is not changed to Read Only mode, a large number of messages will fail to be written to the ledger disk. And because the bookie status is still available at this time, no alarm is given to the maintenance personnel, resulting in slow access for the maintenance personnel.

That feature has been in place for some time. It is safe to enable it default.

PS: It was mentioned in the PR discussion that an email discussion should be submitted, but no follow-up was done. [0]
[0] - https://github.com/apache/bookkeeper/pull/3212/files#r857122376

Changes

Change the default value of readOnlyModeOnAnyDiskFullEnabled to true

@eolivelli

Copy link
Copy Markdown
Contributor

I agree with this change but I cannot find the discussion on the mailing list

@liangyepianzhou

Copy link
Copy Markdown
Contributor Author

I agree with this change but I cannot find the discussion on the mailing list

Thank you for your support. I apologize for not starting the discussion on the mailing list earlier due to my busy schedule. I have just sent out the discussion email, and you can find it here: https://lists.apache.org/thread/cvspxb4d1ryy4wo1j2k5r1qr9fcjsd42

@StevenLuMT
StevenLuMT requested a review from hangc0276 November 18, 2024 00:13

@StevenLuMT StevenLuMT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@hezhangjian

Copy link
Copy Markdown
Member

@lhotari currently, is there any labels to track release note updates?

@lhotari lhotari added the release/important-notice This change should be mentioned in release notes. label Nov 27, 2024

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@lhotari

lhotari commented Nov 27, 2024

Copy link
Copy Markdown
Member

@lhotari currently, is there any labels to track release note updates?

@shoothzj good point. I added a label release/important-notice for that purpose. It's something that exists in Pulsar too.

@StevenLuMT

StevenLuMT commented Nov 28, 2024

Copy link
Copy Markdown
Member
image

https://github.com/apache/bookkeeper/actions/runs/11605956158/job/33595453553?pr=4520
please update the testcase : org.apache.bookkeeper.bookie.LedgerDirsManagerTest

Comment thread conf/bk_server.conf Outdated
@@ -182,7 +182,7 @@ extraServerComponents=
# to read-only mode and serve only read requests. When all disks recovered,
# the bookie will be converted to read-write mode.Otherwise it will obey the `readOnlyModeEnabled` behavior.
# By default this will be disabled.

@StevenLuMT StevenLuMT Nov 30, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

By default this will be enable.

@StevenLuMT
StevenLuMT merged commit b372e90 into apache:master Dec 2, 2024
@hangc0276 hangc0276 added this to the 4.18.0 milestone May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config release/important-notice This change should be mentioned in release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants