Apache9 commented on PR #6800:
URL: https://github.com/apache/hbase/pull/6800#issuecomment-2727254265
> 2025-03-15T02:16:51,266 ERROR
[RS_REGION_REPLICA_FLUSH_OPS-regionserver/data01:16020-1]
regionserver.HRegionServer: ***** ABORTING region server
data01,16020,1742003804245: ServerAborting because an exception was thrown *****
org.apache.hadoop.hbase.TableNotFoundException: test_ns:test_tn
at java.lang.Thread.getStackTrace(Thread.java:1619) ~[?:?]
at
org.apache.hadoop.hbase.util.FutureUtils.setStackTrace(FutureUtils.java:144)
~[hbase-common-3.0.0-beta-2-SNAPSHOT.jar:3.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hbase.util.FutureUtils.rethrow(FutureUtils.java:163)
~[hbase-common-3.0.0-beta-2-SNAPSHOT.jar:3.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hbase.util.FutureUtils.get(FutureUtils.java:186)
~[hbase-common-3.0.0-beta-2-SNAPSHOT.jar:3.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hbase.regionserver.handler.RegionReplicaFlushHandler.triggerFlushInPrimaryRegion(RegionReplicaFlushHandler.java:119)
~[hbase-server-3.0.0-beta-2-SNAPSHOT.jar:3.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hbase.regionserver.handler.RegionReplicaFlushHandler.process(RegionReplicaFlushHandler.java:66)
~[hbase-server-3.0.0-beta-2-SNAPSHOT.jar:3.0.0-beta-2-SNAPSHOT]
at
org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:104)
~[hbase-server-3.0.0-beta-2-SNAPSHOT.jar:3.0.0-beta-2-SNAPSHOT]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
~[?:?]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
~[?:?]
at java.lang.Thread.run(Thread.java:840) ~[?:?]
at --------Future.get--------(Unknown Source) ~[?:?]
This is line 119 of RegionReplicaFLushHandler
https://github.com/apache/hbase/blob/c2af2b3c0de938f2c2d094860f33e31177d197ea/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/handler/RegionReplicaFlushHandler.java#L119
So the problem is that we get a TableNotFoundException while checking
whether table is disabled, where we should quit the loop but we just throw this
exception out and cause problem.
This PR catched the exception of admin.isTableDisabled, if it is
TableNotFoundException, we just quit, otherwise we will still retry, instead of
aborting the region server.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]