On Fri, Apr 15, 2011 at 14:29, Lars George <[email protected]> wrote:
> Hi,
>
> From AssignmentManager.java in trunk:
>
>
>  boolean setOfflineInZooKeeper(final RegionState state) {
>    if (!state.isClosed() && !state.isOffline()) {
>        new RuntimeException("Unexpected state trying to OFFLINE; " + state);
>      this.master.abort("Unexpected state trying to OFFLINE; " + state,
>        new IllegalStateException());
>      return false;
>    }
>
> That first "new RuntimeException..." is a left over I presume?

Indeed, looks like two error handlings (throw vs. log+false) had been
added at the same time and the latter seems the more consistent
handling.
see
http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java?r1=1003329&r2=1003330&;

  Bernd

Reply via email to