This is an automated email from the ASF dual-hosted git repository.

jmark99 pushed a commit to branch elasticity
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/elasticity by this push:
     new 0e82f76e90 Add IllegalStateException to TabletMetadata class (#4213)
0e82f76e90 is described below

commit 0e82f76e900246eff889c22268945ed961164094
Author: Mark Owens <jmar...@apache.org>
AuthorDate: Fri Feb 2 05:46:31 2024 -0500

    Add IllegalStateException to TabletMetadata class (#4213)
    
    Add an IllegalStateException to the TabletMetadata class in instances where 
an unexpected TabletColumnFamily qualifier is used.
---
 .../java/org/apache/accumulo/core/metadata/schema/TabletMetadata.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/core/src/main/java/org/apache/accumulo/core/metadata/schema/TabletMetadata.java
 
b/core/src/main/java/org/apache/accumulo/core/metadata/schema/TabletMetadata.java
index 22066b0cff..460a52e22b 100644
--- 
a/core/src/main/java/org/apache/accumulo/core/metadata/schema/TabletMetadata.java
+++ 
b/core/src/main/java/org/apache/accumulo/core/metadata/schema/TabletMetadata.java
@@ -459,6 +459,8 @@ public class TabletMetadata {
             case REQUESTED_QUAL:
               te.onDemandHostingRequested = true;
               break;
+            default:
+              throw new IllegalStateException("Unexpected TabletColumnFamily 
qualifier: " + qual);
           }
           break;
         case ServerColumnFamily.STR_NAME:

Reply via email to