From 976c7ea2ef49798044152c72d85dfff8abee9e8f Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Tue, 9 Oct 2018 22:46:26 -0700 Subject: [PATCH] Revert "HBASE-21271 [amv2] Don't throw UnsupportedOperationException when rollback called on Assign/Unassign; spiral of death" This reverts commit c96ecbde670ad16e4a9a580c2257ea8efdf91da6. --- .../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 fb6090de849..9f1dd3863c5 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. - LOG.warn("Unhandled state {}; no rollback for assignment! Doing NOTHING!" + - " May need manual intervention. TODO: IS THIS WORKING? {}", - transitionState, this); + throw new UnsupportedOperationException("Unhandled state " + transitionState + + "; there is no rollback for assignment unless we cancel the operation by " + + "dropping/disabling the table"); } protected abstract boolean isRollbackSupported(final RegionTransitionState state);