Skip to content

Commit 95d8727

Browse files
committed
[OBKV] add hbase admin ddl errcode
1 parent 92c70e6 commit 95d8727

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/main/java/com/alipay/oceanbase/rpc/ObTableClient.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

src/main/java/com/alipay/oceanbase/rpc/protocol/payload/ResultCodes.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)