dcapwell commented on code in PR #2261:
URL: https://github.com/apache/cassandra/pull/2261#discussion_r1164462861


##########
src/java/org/apache/cassandra/service/StorageService.java:
##########
@@ -5083,8 +5083,11 @@ private List<DecoratedKey> 
keySamples(Iterable<ColumnFamilyStore> cfses, Range<T
      */
     private void startLeaving()
     {
-        
Gossiper.instance.addLocalApplicationState(ApplicationState.STATUS_WITH_PORT, 
valueFactory.leaving(getLocalTokens()));
-        Gossiper.instance.addLocalApplicationState(ApplicationState.STATUS, 
valueFactory.leaving(getLocalTokens()));
+        DatabaseDescriptor.getSeverityDuringDecommission()
+                          .ifPresent(severity ->
+                                     
Gossiper.instance.addLocalApplicationState(ApplicationState.SEVERITY, 
valueFactory.severity(severity)));

Review Comment:
   pushed a commit fixing this.  see 
https://github.com/apache/cassandra/pull/2261/commits/f99bd8b1ef940ed2cdafc7b8af91e6ab1173937e
   
   `setSeverity` is part of the `MBean` so I can not touch.  I also can not 
have a static method with the same name, so I created a new `addSeverity` 
static function, and have `setSeverity` and this logic call it



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to