[
https://issues.apache.org/jira/browse/HDDS-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hanisha Koneru updated HDDS-267:
--------------------------------
Description:
During container update and close, the .container file on disk is modified. We
should make sure that the in-memory state and the on-disk state for a container
are consistent.
A write lock is obtained before updating the container data during close or
update operations.
During update operation, if the on-disk update of .container file fails, then
the container metadata is in-memory is also reset to the old value.
During close operation, if the on-disk update of .container file fails, then
the in-memory containerState is set to CLOSING so that no new operations are
permitted.
was:
During container update and close, the .container file on disk is modified. We
should make sure that the in-memory state and the on-disk state for a container
are consistent.
During update operation, if the on-disk update of .container file fails, then
the container metadata is in-memory is also reset to the old value.
During close operation, if the on-disk update of .container file fails, then
the in-memory containerState is set to CLOSING so that no new operations are
permitted.
> Handle consistency issues during container update/close
> -------------------------------------------------------
>
> Key: HDDS-267
> URL: https://issues.apache.org/jira/browse/HDDS-267
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Reporter: Hanisha Koneru
> Assignee: Hanisha Koneru
> Priority: Major
> Attachments: HDDS-267.001.patch
>
>
> During container update and close, the .container file on disk is modified.
> We should make sure that the in-memory state and the on-disk state for a
> container are consistent.
> A write lock is obtained before updating the container data during close or
> update operations.
> During update operation, if the on-disk update of .container file fails, then
> the container metadata is in-memory is also reset to the old value.
> During close operation, if the on-disk update of .container file fails, then
> the in-memory containerState is set to CLOSING so that no new operations are
> permitted.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]