You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "caozj1011 (via GitHub)" <gi...@apache.org> on 2023/09/06 09:10:45 UTC

[GitHub] [iotdb] caozj1011 opened a new pull request, #11060: [To rel/1.2] fix datanode status is ReadOnly because the disk is full

caozj1011 opened a new pull request, #11060:
URL: https://github.com/apache/iotdb/pull/11060

   When the system Disk availability is insufficient, the heartbeat mechanism sets the system status to `ReadOnly(DiskFull)`, and the DataNode itself sets the system status to `ReadOnly` or `ReadOnly(DiskFull)` when it allocates a new directory. These two states make the user feel confused as to why the different states occur. This fix is that the unified system state is `ReadOnly(DiskFull)` when disk availability is low.
   
   ## Test
   
   ### Test method
   1. Start a cluster of any size
   2. Keep writing data until the disk availability is below the configured `disk_space_warning_threshold`
   3. Start the CLI and run `show cluster` to check whether the node status is `ReadOnly(DiskFull)`. The expected result is `ReadOnly(DiskFull)`
   
   ### Before this change
   **Description:** 
   When the disk availability is insufficient and `DirectoryStrategy` is `SequenceStrategy`, the system state may be `ReadOnly` or `ReadOnly(DiskFull)`
   **Snapshot:**
   <img width="780" alt="image" src="https://github.com/apache/iotdb/assets/34238279/76c9c008-499d-402d-b982-7d09aec27a19">
   
   
   ### After this change
   **Description:**
   When the disk availability is insufficient and `DirectoryStrategy` is `SequenceStrategy`, the system state must be `ReadOnly(DiskFull)`
   **Snapshot:**
   <img width="882" alt="image" src="https://github.com/apache/iotdb/assets/34238279/b268e9a9-b3eb-43ec-8ade-dc867e1b8de6">
   
   
   


-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] xingtanzjr merged pull request #11060: [To rel/1.2] fix datanode status is ReadOnly because the disk is full

Posted by "xingtanzjr (via GitHub)" <gi...@apache.org>.
xingtanzjr merged PR #11060:
URL: https://github.com/apache/iotdb/pull/11060


-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org