dlmarion commented on code in PR #6126:
URL: https://github.com/apache/accumulo/pull/6126#discussion_r2817900540
##########
server/base/src/main/java/org/apache/accumulo/server/util/ZooKeeperMain.java:
##########
@@ -63,19 +63,16 @@ public String description() {
}
@Override
- public void execute(final String[] args) throws Exception {
- Opts opts = new Opts();
- opts.parseArgs(ZooKeeperMain.class.getName(), args);
- try (var context = new ServerContext(SiteConfiguration.auto())) {
- if (opts.servers == null) {
- opts.servers = context.getZooKeepers();
- }
- System.out.println("The accumulo instance id is " +
context.getInstanceID());
- if (!opts.servers.contains("/")) {
- opts.servers += ZooUtil.getRoot(context.getInstanceID());
- }
- org.apache.zookeeper.ZooKeeperMain
- .main(new String[] {"-server", opts.servers, "-timeout", "" +
(opts.timeout * 1000)});
+ public void execute(JCommander cl, ZKOpts opts) throws Exception {
Review Comment:
Fixed in #6130
--
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]