Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix batchget 4002 #277

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ protected ObPayload commonExecute(ObTableClient client, Logger logger,
}
} else {
String logMessage = String.format(
"exhaust retry while meet NeedRefresh Exception, table name: %s, ls id: %d, batch ops refresh table, errorCode: %d",
"exhaust retry while meet NeedRefresh Exception, table name: %s, batch ops refresh table, errorCode: %d",
indexTableName,
((ObTableException) e).getErrorCode()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,6 @@ private void executeWithRetries(ObTableOperationResult[] results, Map.Entry<Long
throw e;
}
}
Thread.sleep(obTableClient.getRuntimeRetryInterval());
}

if (allPartitionsSuccess) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,15 @@ public void partitionExecute(ObTableSingleOpResult[] results,
tableLsOp.setLsId(lsId);
tableLsOp.setReturnOneResult(returnOneResult);
tableLsOp.setNeedAllProp(needAllProp);
tableLsOp.setTableName(tableName);
// On the server side, table group names may include uppercase letters,
// but table names are always in lowercase. In certain cases, batch get
// operations depend on the provided table name for matching. Therefore,
// a conversion is performed here to ensure proper matching.
String argTableName = tableName;
if (entityType == ObTableEntityType.HKV && !obTableClient.isTableGroupName(argTableName)) {
argTableName = tableName.toLowerCase();
}
tableLsOp.setTableName(argTableName);
// fetch the following parameters in first entry for routing
long tableId = 0;
long originPartId = 0;
Expand Down Expand Up @@ -702,7 +710,6 @@ private void executeWithRetries(
throw e;
}
}
Thread.sleep(obTableClient.getRuntimeRetryInterval());
}

if (allPartitionsSuccess) {
Expand Down
Loading