You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Jie Yao (Jira)" <ji...@apache.org> on 2022/08/12 04:03:00 UTC
[jira] [Created] (HDDS-7123) container scan should hold the container read lock
Jie Yao created HDDS-7123:
-----------------------------
Summary: container scan should hold the container read lock
Key: HDDS-7123
URL: https://issues.apache.org/jira/browse/HDDS-7123
Project: Apache Ozone
Issue Type: Bug
Reporter: Jie Yao
now, when scanning container, datanode does not hold a lock. when the blockDeletingService works, it will first deletes the block file in container directory and then delete the metadata in rocksdb. when container scanner works , it will first read the metadata from DB, and then check the block file in container directory. the two background service runs concurrently for now. there may be a case that when blockDeletingService deletes the block file from container directory but not delete the metadata from rocksdb, container scanner read the metadata from rocksdb and then fail to find the block file in container directory, and then mark the container replica unhealthy
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org