dlmarion commented on code in PR #5383:
URL: https://github.com/apache/accumulo/pull/5383#discussion_r2018900062
##########
server/base/src/main/java/org/apache/accumulo/server/AbstractServer.java:
##########
@@ -91,6 +92,20 @@ protected AbstractServer(ServerId.Type serverType,
ConfigOpts opts,
ClusterConfigParser.validateGroupNames(List.of(resourceGroup));
SecurityUtil.serverLogin(siteConfig);
context = serverContextFactory.apply(siteConfig);
+
+ final String upgradePrepNode = Constants.ZPREPARE_FOR_UPGRADE;
+ try {
+ if (context.getZooSession().asReader().exists(upgradePrepNode)) {
+ throw new IllegalStateException(
+ "Instance has been prepared for upgrade, no servers can be
started."
+ + " To undo this state and abort upgrade preparations delete
the zookeeper node: "
+ + upgradePrepNode + " for instance: " +
context.getInstanceID());
Review Comment:
Updated error message to include full path in 36e4fda
--
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]