Skip to content

Rename master comment/constant/variable references.#1912

Merged
brianloss merged 7 commits intoapache:mainfrom
brianloss:rename-master-refs
Feb 9, 2021
Merged

Rename master comment/constant/variable references.#1912
brianloss merged 7 commits intoapache:mainfrom
brianloss:rename-master-refs

Conversation

@brianloss
Copy link
Member

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

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
@brianloss brianloss self-assigned this Feb 5, 2021
* 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.
brianloss and others added 3 commits February 8, 2021 16:03
…de/RenameMasterDirInZK.java

Co-authored-by: Keith Turner <kturner@apache.org>
…ateManager.java

Co-authored-by: Keith Turner <kturner@apache.org>
@brianloss brianloss merged commit 09eef7b into apache:main Feb 9, 2021
@brianloss brianloss deleted the rename-master-refs branch February 9, 2021 12:42
@milleruntime
Copy link
Contributor

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.
From jstack:

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)

@brianloss
Copy link
Member Author

Do you know if client code needs to be updated with these changes?

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

@brianloss
Copy link
Member Author

@milleruntime, see the discussion on PR #1907 here.

DomGarguilo pushed a commit to DomGarguilo/accumulo that referenced this pull request Feb 10, 2021
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
@ctubbsii ctubbsii added this to the 2.1.0 milestone Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

Rename accumulo master package

4 participants