From c96ecbde670ad16e4a9a580c2257ea8efdf91da6 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 4 Oct 2018 16:03:39 -0700 Subject: [PATCH] HBASE-21271 [amv2] Don't throw UnsupportedOperationException when rollback called on Assign/Unassign; spiral of death --- .../hbase/master/assignment/RegionTransitionProcedure.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionTransitionProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionTransitionProcedure.java index 9f1dd3863c5..fb6090de849 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionTransitionProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionTransitionProcedure.java @@ -424,9 +424,9 @@ public abstract class RegionTransitionProcedure // There is no rollback for assignment unless we cancel the operation by // dropping/disabling the table. - throw new UnsupportedOperationException("Unhandled state " + transitionState + - "; there is no rollback for assignment unless we cancel the operation by " + - "dropping/disabling the table"); + LOG.warn("Unhandled state {}; no rollback for assignment! Doing NOTHING!" + + " May need manual intervention. TODO: IS THIS WORKING? {}", + transitionState, this); } protected abstract boolean isRollbackSupported(final RegionTransitionState state);