You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Steven Rand (JIRA)" <ji...@apache.org> on 2019/05/22 05:40:00 UTC
[jira] [Commented] (SPARK-27797) Shuffle service metric
"registeredConnections" not tracked correctly
[ https://issues.apache.org/jira/browse/SPARK-27797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16845535#comment-16845535 ]
Steven Rand commented on SPARK-27797:
-------------------------------------
I think it might be okay -- ExternalShuffleService.start() does:
{code}
blockHandler.getAllMetrics.getMetrics.put("numRegisteredConnections",
server.getRegisteredConnections)
{code}
Which I think makes the result correct (though in any case, agreed that the structure is confusing).
> 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
> Affects Versions: 3.0.0
> Reporter: Marcelo 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org