EdColeman commented on code in PR #2569:
URL: https://github.com/apache/accumulo/pull/2569#discussion_r858685156
##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -260,6 +261,18 @@ synchronized void setManagerState(ManagerState newState) {
ThreadPools.watchNonCriticalScheduledTask(future);
}
+ if (oldState != newState && (newState == ManagerState.HAVE_LOCK)) {
+ try {
+ log.info("Starting property conversion");
+ var context = getContext();
+ ConfigPropertyUpgrader configUpgrader = new ConfigPropertyUpgrader();
+ configUpgrader.doUpgrade(context.getInstanceID(),
context.getZooReaderWriter());
Review Comment:
The manager is the only one that should run the full upgrade code - the
tservers will only auto-create and upgrade the system property node if it is
not present.
--
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]