rundood5 opened a new issue, #11575: URL: https://github.com/apache/rocketmq/issues/11575
### Before Creating the Bug Report - [x] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). - [x] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate. - [x] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. ### Runtime platform environment Windows 11 (10.0.26200). One host running 1 NameServer + 1 Broker (ASYNC_MASTER), broker built from source on the same commit. Reproduced with the commitlog volume at 96% usage. ### RocketMQ version branch: develop (5.5.1), built from source with Maven. No distribution package involved. ### JDK Version OpenJDK 17.0.21 (Eclipse Temurin), Maven 3.9.9. ### Describe the Bug When the commitlog volume goes above the disk threshold, the broker marks the message store read-only and producers fail with `CODE: 14 DESC: service not available now`. The logs do not explain why: - `broker.log` prints only the raw bit value: `message store is not writeable, so putMessage is forbidden 16`. `16` is `RunningFlags.DISK_FULL_BIT = 1 << 4`, and nothing in the log says so. - `store.log` prints the measured ratio but not the effective threshold, so an operator cannot tell how far the volume is from the limit. - `diskSpaceWarningLevelRatio` is silently clamped to `[0.35, 0.90]`: configuring `0.97` neither fails nor warns, and `diskMaxUsedSpaceRatio` does not take part in this check at all, so an operator may believe a value is in effect when it is not. The first disk check runs 60 seconds after the store starts, which makes the failure look intermittent: a freshly started broker accepts writes for about a minute and then rejects them. ### Steps to Reproduce 1. Use a volume above 90% usage and start a single master broker (`brokerRole=ASYNC_MASTER`, default `diskSpaceWarningLevelRatio`). 2. Wait about 60 seconds after the broker boots, so the first disk check has run. 3. Send one message (producer on any topic). The send fails with `CODE: 14`. 4. `broker.log` contains `... message store is not writeable, so putMessage is forbidden 16`, while `mqadmin clusterList -n 127.0.0.1:9876` reports `#SPACE 0.95`. ### What Did You Expect to See? - The warning should print readable flag names (e.g. `DISK_FULL`) instead of a bare `16`. - `store.log` should include the effective threshold next to the measured ratio. - A configured `diskSpaceWarningLevelRatio` outside the allowed range should produce a warning instead of being silently replaced. ### What Did You See Instead? Only `... forbidden 16` is logged. Nothing points to disk usage, and setting `diskSpaceWarningLevelRatio=0.97` (or `diskMaxUsedSpaceRatio=97`) changes nothing without any warning, which makes the failure look like a client or network problem. ### Additional Context Patch ready in #11559 (do not merge before review): adds `RunningFlags#getFlagBitsString()`, logs both the numeric value and the names, warns once when the ratio is clamped, and appends the effective threshold to the disk-full message. Source references (5.5.1): - `MessageStoreConfig.java:159` — `diskSpaceWarningLevelRatio = 90` - `DefaultMessageStore.java:2318-2333` — clamp to `[0.35, 0.90]` - `DefaultMessageStore.java:2448` — marks disk full when the ratio exceeds the warning level - `DefaultMessageStore.java:1939` — the clean task first runs 60s after startup - `HookUtils.java:79` — prints the raw `getFlagBits()` - `RunningFlags.java:29` — `DISK_FULL_BIT = 1 << 4` (i.e. 16) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
