Skip to content

Commit e521b1b

Browse files
authored
fix client type odp mode (#323)
1 parent 4b01611 commit e521b1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,9 @@ private void initMetadata() throws Exception {
433433

434434
if (odpMode) {
435435
try {
436+
ObTableClientType clientType = runningMode == RunningMode.HBASE ? ObTableClientType.JAVA_HBASE_CLIENT : ObTableClientType.JAVA_TABLE_CLIENT;
436437
odpTable = new ObTable.Builder(odpAddr, odpPort) //
437-
.setLoginInfo(tenantName, fullUserName, password, database, getClientType(runningMode)) //
438+
.setLoginInfo(tenantName, fullUserName, password, database, clientType) //
438439
.setProperties(getProperties()).setConfigs(TableConfigs).build();
439440
} catch (Exception e) {
440441
logger

0 commit comments

Comments
 (0)