Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
When BackupNode is enabled, Checkpointer#doCheckpoint() will start to work.
When the image file needs to be reloaded, there is a call link, for example:
FSImage#reloadFromImageFile()>FSNamesystem#clear()>FSDirectory#reset().
In FSDirectory#reset(), the write lock needs to be acquired in advance, for example:
void reset() {
writeLock();
try
finally
{ writeUnlock(); } }
However, no write lock has been acquired before this.
You will get an exception message at this time, for example:
java.lang.AssertionError: Should hold namesystem write lock
Attachments
Issue Links
- links to