[ 
https://issues.apache.org/jira/browse/SPARK-27797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Filipe Oliveira resolved SPARK-27797.
-------------------------------------
    Resolution: Duplicate

Resolved by https://issues.apache.org/jira/browse/SPARK-31646

> Shuffle service metric "registeredConnections" not tracked correctly
> --------------------------------------------------------------------
>
>                 Key: SPARK-27797
>                 URL: https://issues.apache.org/jira/browse/SPARK-27797
>             Project: Spark
>          Issue Type: Bug
>          Components: Shuffle, Spark Core
>    Affects Versions: 3.0.0
>            Reporter: Marcelo Masiero Vanzin
>            Priority: Minor
>
> In {{ExternalShuffleBlockHandler}}:
> {code}
>     // Number of registered connections to the shuffle service
>     private Counter registeredConnections = new Counter();
>     public ShuffleMetrics() {
>       ...
>       allMetrics.put("numRegisteredConnections", registeredConnections);
>     }
> {code}
> But the counter that's actually updated is in {{TransportContext}}. The call 
> site is in {{TransportChannelHandler}}:
> {code}
>   @Override
>   public void channelRegistered(ChannelHandlerContext ctx) throws Exception {
>     transportContext.getRegisteredConnections().inc();
>     super.channelRegistered(ctx);
>   }
>   @Override
>   public void channelUnregistered(ChannelHandlerContext ctx) throws Exception 
> {
>     transportContext.getRegisteredConnections().dec();
>     super.channelUnregistered(ctx);
>   }
> {code}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to