dcapwell commented on code in PR #2261:
URL: https://github.com/apache/cassandra/pull/2261#discussion_r1164459773
##########
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:
at first I didn't do it as
`org.apache.cassandra.locator.DynamicEndpointSnitch#setSeverity` is a method
and not function (tied to the current snitch). I could always make it static.
To avoid copy/paste ill make it static and delegate to 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]