You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Jinrui Zhang (Jira)" <ji...@apache.org> on 2023/05/06 11:18:00 UTC

[jira] [Assigned] (IOTDB-5843) Write operation won't be rejected even if the NodeStatus is ReadOnly

     [ https://issues.apache.org/jira/browse/IOTDB-5843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jinrui Zhang reassigned IOTDB-5843:
-----------------------------------

    Assignee: Song Ziyang

> Write operation won't be rejected even if the NodeStatus is ReadOnly
> --------------------------------------------------------------------
>
>                 Key: IOTDB-5843
>                 URL: https://issues.apache.org/jira/browse/IOTDB-5843
>             Project: Apache IoTDB
>          Issue Type: Bug
>            Reporter: Jinrui Zhang
>            Assignee: Song Ziyang
>            Priority: Major
>         Attachments: image-2023-05-06-19-15-45-109.png
>
>
> *Description:*
>  # Ctrl + C to stop a running DataNode
>  # `show cluster` shows that the DataNode is ReadOnly
>  # the write towards this DataNode won't be rejected
> *Analysis:*
> When using Ctrl+C to stop a DataNode, the shutdownhook will be invoked. And, inside the shutdown hook, the DataNode is setting to status `Stopping` and `Readonly`. 
> Because of the change of PR [https://github.com/apache/iotdb/pull/9274/files,]  the isReadOnly() will return false in DataRegionStatemachine, which won't reject the write operations.
> !image-2023-05-06-19-15-45-109.png|width=550,height=182!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)