Skip to content

#408 Removed use of deprecated ClientConfiguration#412

Merged
mikewalch merged 6 commits intoapache:masterfrom
mikewalch:408-clientconf
Apr 4, 2018
Merged

#408 Removed use of deprecated ClientConfiguration#412
mikewalch merged 6 commits intoapache:masterfrom
mikewalch:408-clientconf

Conversation

@mikewalch
Copy link
Copy Markdown
Member

@mikewalch mikewalch commented Mar 30, 2018

Still might do a little more work on this. I am putting this up for review and to have Jenkins run ITs

* @return Zookeeper connection information for Accumulo instance
*/
String getZookeepers();
String getZooKeepers();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capital K?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's how we have referenced them in the past and how Apache ZooKeeper spells it. I can switch back but @ctubbsii might disagree :-)

Copy link
Copy Markdown
Member

@ctubbsii ctubbsii Apr 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's public API, we should follow upstream naming conventions. Internally, it doesn't really matter, other than as best practice for developing the habit of using the trademark properly, and perhaps also for consistency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best for another PR

} else if (key.equals(ClientProperty.SASL_KERBEROS_SERVER_PRIMARY.getKey())) {
config.setProperty(ClientConfiguration.ClientProperty.KERBEROS_SERVER_PRIMARY, val);
} else {
config.setProperty(key, val);
Copy link
Copy Markdown
Contributor

@milleruntime milleruntime Apr 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switch case might be cleaner for these big if statements.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think they both are kind of ugly. I would prefer to keep it as is.


@Override
public String getZookeepers() {
public String getZooKeepers() {
Copy link
Copy Markdown
Contributor

@milleruntime milleruntime Apr 2, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a consistent way to refer to "zookeepers"? Camel case or one word?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I would prefer Zookeeper, ZooKeeper is how the project refers to itself.

Copy link
Copy Markdown
Contributor

@keith-turner keith-turner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed while reviewing this that MiniAccumuloCluster has a public API method that returns ClientConfiguration. This method should be deprecated.

@mikewalch
Copy link
Copy Markdown
Member Author

I pushed another commit ef0c46b to fix issues with the shell. Can you take a look at it?

@mikewalch
Copy link
Copy Markdown
Member Author

I refactored ClientConfConverter in 04576f1. I am ready to merge if everyone approves.

@milleruntime
Copy link
Copy Markdown
Contributor

👍

@mikewalch mikewalch merged commit ea4ffe2 into apache:master Apr 4, 2018
@mikewalch mikewalch deleted the 408-clientconf branch April 4, 2018 18:57
@jmark99 jmark99 mentioned this pull request Apr 14, 2018
@ctubbsii ctubbsii added this to the 2.0.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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants