> On Dec. 21, 2013, 12:18 a.m., Josh Elser wrote: > > src/core/src/main/java/org/apache/accumulo/core/client/ZooKeeperInstance.java, > > line 234 > > <https://reviews.apache.org/r/16427/diff/1/?file=401735#file401735line234> > > > > Not sure if there's something in ZooKeeperInstance that you can use, > > but it's excessive to take the instance ID, to find the instance name. > > Perhaps you can add a protected constructor that you can provide the > > instance name and ID since you know you calculated them correctly.
Turns out, there is! How did I never see ZooKeeperInstance(UUID, String) consturctor before? - Mike ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/16427/#review30769 ----------------------------------------------------------- On Dec. 20, 2013, 9:52 p.m., Mike Drob wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/16427/ > ----------------------------------------------------------- > > (Updated Dec. 20, 2013, 9:52 p.m.) > > > Review request for accumulo. > > > Bugs: ACCUMULO-2076 > https://issues.apache.org/jira/browse/ACCUMULO-2076 > > > Repository: accumulo > > > Description > ------- > > Writing client code for retrieving zookeeper and instance information is both > tedious and error prone. It would be great to remove this boiler-plate burden > from users. > > > Diffs > ----- > > > src/core/src/main/java/org/apache/accumulo/core/client/ZooKeeperInstance.java > fcadd384cc150b8422c3f5c33970c26efe142132 > > Diff: https://reviews.apache.org/r/16427/diff/ > > > Testing > ------- > > None, yet. :) > > > Thanks, > > Mike Drob > >
