Mmuzaf commented on code in PR #2046:
URL: https://github.com/apache/cassandra/pull/2046#discussion_r1058009539


##########
src/java/org/apache/cassandra/service/StorageService.java:
##########
@@ -959,17 +972,20 @@ private void prepareToJoin() throws ConfigurationException
 
             if (SystemKeyspace.wasDecommissioned())
             {
-                if (Boolean.getBoolean("cassandra.override_decommission"))
+                if (OVERRIDE_DECOMMISSION.getBoolean())
                 {
                     logger.warn("This node was decommissioned, but overriding 
by operator request.");
                     
SystemKeyspace.setBootstrapState(SystemKeyspace.BootstrapState.COMPLETED);
                 }
                 else
-                    throw new ConfigurationException("This node was 
decommissioned and will not rejoin the ring unless 
cassandra.override_decommission=true has been set, or all existing data is 
removed and the node is bootstrapped again");
+                {
+                    throw new ConfigurationException("This node was 
decommissioned and will not rejoin the ring unless " + 
OVERRIDE_DECOMMISSION.getKey() +
+                                                     "=true has been set, or 
all existing data is removed and the node is bootstrapped again");
+                }
             }
 
             if (DatabaseDescriptor.getReplaceTokens().size() > 0 || 
DatabaseDescriptor.getReplaceNode() != null)
-                throw new RuntimeException("Replace method removed; use 
cassandra.replace_address instead");
+                throw new RuntimeException("Replace method removed; use " + 
REPLACE_ADDRESS.getKey() + " instead");

Review Comment:
   Fixed.



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