Skip to content

Commit

Permalink
HBASE-24426 : Provide regionName in warning during failure to move re…
Browse files Browse the repository at this point in the history
…gion from CLOSING to CLOSED (apache#1772)

Signed-off-by: Anoop Sam John <anoopsamjohn@apache.org>
Signed-off-by: Jan Hentschel <jan.hentschel@ultratendency.com>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
(cherry picked from commit 9a0a24f)

Change-Id: I7037e5b6d7dff7ab620897ce76dabd69478d1cd5
  • Loading branch information
virajjasani committed May 25, 2020
1 parent 014dcc4 commit 20f8395
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ public boolean visit(Result result) throws IOException {
MetaTableAccessor.updateRegionState(this.connection, hrl.getRegion(),
RegionState.State.CLOSED);
} catch (IOException ioe) {
LOG.warn("Failed moving {} from CLOSING to CLOSED", ioe);
LOG.warn("Failed moving {} from CLOSING to CLOSED",
hrl.getRegion().getRegionNameAsString(), ioe);
}
} else if (rs.isOpening() || rs.isOpened()) {
this.reassigns.add(hrl.getRegion());
Expand Down

0 comments on commit 20f8395

Please sign in to comment.