You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2022/07/07 21:30:00 UTC

[jira] [Commented] (HDFS-12696) BlockPoolManager#startAll is called twice during DataNode startup

    [ https://issues.apache.org/jira/browse/HDFS-12696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17563988#comment-17563988 ] 

Ayush Saxena commented on HDFS-12696:
-------------------------------------

[~nanda] Just observed you transitioned this to Patch-Available state yesterday. Unfortunately we don't run Jenkins now for patches.
And I have one more bad news, Guess this got duped and fixed in HDFS-15448

> BlockPoolManager#startAll is called twice during DataNode startup
> -----------------------------------------------------------------
>
>                 Key: HDFS-12696
>                 URL: https://issues.apache.org/jira/browse/HDFS-12696
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: datanode
>            Reporter: Nandakumar
>            Assignee: Nandakumar
>            Priority: Minor
>         Attachments: HDFS-12696.000.patch
>
>
> As part of Datanode startup, {{BlockPoolManager#startAll}} which starts all {{BPServiceActor}} threads is called twice.
> First in {{Datanode}} constructor, {{Datanode#startDataNode}} is called which does {{BlockPoolManager#refreshNamenodes}} inside which we do {{startAll}}
> And as part of {{Datanode#runDatanodeDaemon}} we again call {{BlockPoolManager#startAll}}.
> Since {{BPServiceActor}} checks if {{bpThread}} is already running, before starting them again, the second call is ignored.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org