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

Masatake Iwasaki updated HADOOP-12609:
--------------------------------------
    Attachment: HADOOP-12609.001.patch

{code}
     Timer timer = new Timer();
     DecayTask task = new DecayTask(this, timer);
     timer.scheduleAtFixedRate(task, 0, this.decayPeriodMillis);
{code}
In the constructor of DecayRpcScheduler, DecayTask is scheduled without initial 
delay. This makes {{testAccumulate}} and {{testPriority}} non-deterministic. 
Calling {{decayCurrentCounts}} immediately after initialization should have no 
practical meanings.

Attached 001 sets the initial delay to {{decayPeriodMillis}}.


> Fix intermittent failure of TestDecayRpcScheduler
> -------------------------------------------------
>
>                 Key: HADOOP-12609
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12609
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: ipc, test
>            Reporter: Masatake Iwasaki
>            Assignee: Masatake Iwasaki
>            Priority: Minor
>         Attachments: HADOOP-12609.001.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to