Rename master comment/constant/variable references.#1912
Rename master comment/constant/variable references.#1912brianloss merged 7 commits intoapache:mainfrom brianloss:rename-master-refs
Conversation
This change renames reference to master in comments, variable names, constants, etc. to manager. In some deprecated classes whose purpose is to maintain compatibility until the next major release, the references were not renamed. fixes #1642
* Change the constant defining the zookeeper dir where manager lock, tick, and goal state info are stored from masters to managers. * Add a utility to rename the existing masters dir in ZK from masters to managers. * Attempt renaming from SetGoalState, but also allow an admin to invoke directly if desired.
server/base/src/main/java/org/apache/accumulo/server/log/WalStateManager.java
Outdated
Show resolved
Hide resolved
server/manager/src/main/java/org/apache/accumulo/manager/upgrade/RenameMasterDirInZK.java
Outdated
Show resolved
Hide resolved
server/manager/src/main/java/org/apache/accumulo/manager/upgrade/RenameMasterDirInZK.java
Outdated
Show resolved
Hide resolved
server/manager/src/main/java/org/apache/accumulo/manager/upgrade/RenameMasterDirInZK.java
Outdated
Show resolved
Hide resolved
…de/RenameMasterDirInZK.java Co-authored-by: Keith Turner <kturner@apache.org>
…ateManager.java Co-authored-by: Keith Turner <kturner@apache.org>
server/manager/src/main/java/org/apache/accumulo/manager/upgrade/RenameMasterDirInZK.java
Show resolved
Hide resolved
|
Hey @brianloss - Do you know if client code needs to be updated with these changes? I just tried a fresh setup in Uno with these changes included and my client is hanging on a table create. I thought the old client would work but that might not be the case. at org.apache.accumulo.fate.util.UtilWaitThread.sleepUninterruptibly(UtilWaitThread.java:57)
at org.apache.accumulo.core.clientImpl.MasterClient.getConnectionWithRetry(MasterClient.java:52)
at org.apache.accumulo.core.clientImpl.TableOperationsImpl.beginFateOperation(TableOperationsImpl.java:258)
at org.apache.accumulo.core.clientImpl.TableOperationsImpl.doFateOperation(TableOperationsImpl.java:365)
at org.apache.accumulo.core.clientImpl.TableOperationsImpl.doFateOperation(TableOperationsImpl.java:355)
at org.apache.accumulo.core.clientImpl.TableOperationsImpl.doTableFateOperation(TableOperationsImpl.java:1694)
at org.apache.accumulo.core.clientImpl.TableOperationsImpl.create(TableOperationsImpl.java:246)
at org.apache.accumulo.core.clientImpl.TableOperationsImpl.create(TableOperationsImpl.java:216)
at org.apache.accumulo.testing.randomwalk.multitable.CreateTable.visit(CreateTable.java:48)
at org.apache.accumulo.testing.randomwalk.Module.visit(Module.java:237)
at org.apache.accumulo.testing.randomwalk.Framework.run(Framework.java:48)
at org.apache.accumulo.testing.randomwalk.Framework.main(Framework.java:92)
|
@milleruntime with renaming the MasterClient class, yes, that means client code needs to be updated. I called out the incompatibility in my PR for the release notes. Before making the known breaking change, I had tried running a 2.0 client against a 2.1 server (or maybe I tested the reverse, now I don't recall for certain) and while the client came up, a scan against the metadata table hung. So I figured we already weren't compatible. |
|
@milleruntime, see the discussion on PR #1907 here. |
This change renames reference to master in comments, variable names, constants, etc. to manager. In some deprecated classes whose purpose is to maintain compatibility until the next major release, the references were not renamed. * Change the constant defining the zookeeper dir where manager lock, tick, and goal state info are stored from masters to managers. * Add a utility to rename the existing masters dir in ZK from masters to managers. * Attempt renaming from SetGoalState, but also allow an admin to invoke directly if desired. fixes apache#1642
This change renames reference to master in comments, variable names,
constants, etc. to manager. In some deprecated classes whose purpose is
to maintain compatibility until the next major release, the references
were not renamed.
fixes #1642