Siyao Meng created HDDS-17120:
---------------------------------

             Summary: DBCheckpointServlet keeps a stale DBStore after OM 
installs a checkpoint
                 Key: HDDS-17120
                 URL: https://issues.apache.org/jira/browse/HDDS-17120
             Project: Apache Ozone
          Issue Type: Bug
          Components: Ozone Manager
            Reporter: Siyao Meng


DBCheckpointServlet caches the DBStore in initialize() on its first request 
(DBCheckpointServlet.java:88). After a follower OM installs a checkpoint, 
reloadOMState replaces the metadata manager and its store, but 
OMDBCheckpointServlet and OMDBCheckpointServletInodeBasedXfer still call 
getDbStore() (e.g. OMDBCheckpointServlet.java:281, 286), so they likely get the 
old, closed store while the lock and snapshot directory come from the new one. 
SCM restarts its metadata store during snapshot install in a similar way.

Found by code reading; not reproduced yet.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to