> On Dec. 18, 2014, 5:54 a.m., Sijie Guo wrote: > > bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieShell.java, > > line 1194 > > <https://reviews.apache.org/r/28835/diff/2/?file=792807#file792807line1194> > > > > The bookieId option is really weird. A much clear option would specify > > new bookieId, rather use 'ip' or 'hostname'. > > > > -1 on the option > > Rakesh R wrote: > Followed same pattern of cookie updates. Make 'hostname' and 'ip' as > constants, so the user could only specify "updatebookie -bookieId hostname" > or "updatebookie -bookieId ip". Does this makes sense to you? > > Sijie Guo wrote: > not at all. the cases to change bookie id are not just switching bookie > id between ip and hostname. it also could be the case you need to change ip > address.
Thanks Sijie for this usecase. Can we suggest users to change the 'ipaddress_1' to 'hostname', instead of changing 'ipaddress_1' to another 'ipaddress_2'. Considering that the hostname would not be changed frequently comparing to the ipaddress change. Do you agree with me? After seeing this comment, if this is a real world usecase then I feel the same is applicable to Cookie also ? - Rakesh ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28835/#review65458 ----------------------------------------------------------- On Dec. 21, 2014, 5:52 p.m., Rakesh R wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28835/ > ----------------------------------------------------------- > > (Updated Dec. 21, 2014, 5:52 p.m.) > > > Review request for bookkeeper, fpj, Ivan Kelly, and Sijie Guo. > > > Bugs: BOKKEEPER-634 > https://issues.apache.org/jira/browse/BOKKEEPER-634 > > > Repository: bookkeeper-git > > > Description > ------- > > admin tool for changing the bookie's identifier to IP/hostname > > > Diffs > ----- > > > bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieShell.java > a1e4639 > > bookkeeper-server/src/main/java/org/apache/bookkeeper/client/UpdateLedgerOp.java > PRE-CREATION > > bookkeeper-server/src/test/java/org/apache/bookkeeper/client/UpdateLedgerOpTest.java > PRE-CREATION > > Diff: https://reviews.apache.org/r/28835/diff/ > > > Testing > ------- > > Added few tests > > > Thanks, > > Rakesh R > >
