Fix isJoined return true only after becoming cluster member

patch by yukim; reviewed by tjake for CASANDRA-11007
This commit is contained in:
Yuki Morishita 2016-01-22 10:46:43 -06:00
parent 3c55732fa4
commit 8408c76aff
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2.1.13
* Fix isJoined return true only after becoming cluster member (CASANDRA-11007)
* Fix bad gossip generation seen in long-running clusters (CASSANDRA-10969)
* Avoid NPE when incremental repair fails (CASSANDRA-10909)
* Unmark sstables compacting once they are done in cleanup/scrub/upgradesstables (CASSANDRA-10829)

View File

@ -1038,7 +1038,7 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
public boolean isJoined()
{
return joined && !isSurveyMode;
return tokenMetadata.isMember(FBUtilities.getBroadcastAddress());
}
public void rebuild(String sourceDc)