File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/main/java/com/alipay/oceanbase/rpc Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,11 @@ public void init() throws Exception {
144144 } catch (Throwable t ) {
145145 BOOT .warn ("failed to init ObTableClient" , t );
146146 RUNTIME .warn ("failed to init ObTableClient" , t );
147- throw new RuntimeException (t );
147+ if (t instanceof ObTableException ) {
148+ throw t ;
149+ } else {
150+ throw new RuntimeException (t );
151+ }
148152 } finally {
149153 BOOT .info ("init ObTableClient successfully" );
150154 statusLock .unlock ();
Original file line number Diff line number Diff line change @@ -744,6 +744,9 @@ public enum ResultCodes {
744744 OB_KV_CHECK_FAILED (-10518 ), //
745745 OB_KV_TABLE_NOT_DISABLED (-10519 ), //
746746 OB_KV_TABLE_NOT_ENABLED (-10520 ), //
747+ OB_KV_HBASE_NAMESPACE_NOT_FOUND (-10521 ), //
748+ OB_KV_HBASE_TABLE_EXISTS (-10522 ), //
749+ OB_KV_HBASE_TABLE_NOT_EXISTS (-10523 ), //
747750 OB_KV_ODP_TIMEOUT (-10650 ), //
748751 OB_ERR_KV_ROUTE_ENTRY_EXPIRE (-10653 );
749752
You can’t perform that action at this time.
0 commit comments