swamirishi commented on code in PR #1218:
URL: https://github.com/apache/ratis/pull/1218#discussion_r1962444054
##########
ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java:
##########
@@ -481,14 +481,20 @@ void groupRemove(boolean deleteDirectory, boolean
renameDirectory) {
/* Shutdown is triggered here inorder to avoid any locked files. */
state.getStateMachineUpdater().setRemoving();
close();
+ if (state.getStateMachineUpdater().getError() != null) {
+ LOG.error("{}: groupRemove failed: {}. Falling back to directory
rename.",
+ getGroup().getGroupId(), getMemberId(),
state.getStateMachineUpdater().getError());
+ deleteDirectory = false;
+ renameDirectory = true;
Review Comment:
removed it. WIll create a follow up jira for this.
--
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]