Skip to content
Open
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 @@ -286,7 +286,8 @@ private <Response> Response executeWithMetrics(String methodName, Function<MetaS
public Future<Cloud.GetVersionResponse> getVisibleVersionAsync(Cloud.GetVersionRequest request)
throws RpcException {
long startTime = System.currentTimeMillis();
String methodName = "getVersion";
String methodName = request.hasIsTableVersion() && request.getIsTableVersion() ? "getTableVersion"
: "getPartitionVersion";
MetaServiceClient client = null;

if (MetricRepo.isInit && Config.isCloudMode()) {
Expand Down Expand Up @@ -341,7 +342,9 @@ public void onFailure(Throwable t) {
}

public Cloud.GetVersionResponse getVersion(Cloud.GetVersionRequest request) throws RpcException {
return executeWithMetrics("getVersion", (client) -> client.getVersion(request));
String methodName = request.hasIsTableVersion() && request.getIsTableVersion() ? "getTableVersion"
: "getPartitionVersion";
return executeWithMetrics(methodName, (client) -> client.getVersion(request));
}

public Cloud.CreateTabletsResponse createTablets(Cloud.CreateTabletsRequest request) throws RpcException {
Expand Down
Loading