accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Drob" <md...@mdrob.com>
Subject Re: Review Request 16427: ACCUMULO-2076 add Instance builder based on classpath resources
Date Thu, 26 Dec 2013 18:29:29 GMT


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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message