You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "ruanhui (Jira)" <ji...@apache.org> on 2023/09/13 02:23:00 UTC

[jira] [Created] (HBASE-28080) correct span name in AbstractRpcBasedConnectionRegistry#getActiveMaster

ruanhui created HBASE-28080:
-------------------------------

             Summary: correct span name in AbstractRpcBasedConnectionRegistry#getActiveMaster
                 Key: HBASE-28080
                 URL: https://issues.apache.org/jira/browse/HBASE-28080
             Project: HBase
          Issue Type: Bug
          Components: Client
    Affects Versions: 3.0.0-alpha-4
            Reporter: ruanhui
            Assignee: ruanhui
             Fix For: 4.0.0-alpha-1


It looks like that the span name does not correspond to what is actually done.
 
public CompletableFuture<ServerName> getActiveMaster() {
return tracedFuture(
() -> this
.<GetActiveMasterResponse> call(
(c, s, d) -> s.getActiveMaster(c, GetActiveMasterRequest.getDefaultInstance(), d),
GetActiveMasterResponse::hasServerName, "getActiveMaster()")
.thenApply(resp -> ProtobufUtil.toServerName(resp.getServerName())),
getClass().getSimpleName() + ".getClusterId");
}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)