You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/04/25 03:41:33 UTC
[GitHub] [hadoop] hunshenshi opened a new pull request #770:
HDFS-14456:HAState#prepareToEnterState neednt a lock
hunshenshi opened a new pull request #770: HDFS-14456:HAState#prepareToEnterState neednt a lock
URL: https://github.com/apache/hadoop/pull/770
prepareToEnterState in HAState is called without the context being locked.
But in NameNode#NameNode, prepareToEnterState is after haContext.writeLock()
``` java
try {
haContext.writeLock();
state.prepareToEnterState(haContext);
state.enterState(haContext);
} finally {
haContext.writeUnlock();
}
```
Is it OK?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org