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

Daniel Templeton updated HDFS-9176:
-----------------------------------
    Attachment: HDFS-9176.001.patch

Doh.  If you look carefully at these log lines, you'll see the issue:

{noformat}
2015-10-05 15:22:33,725 [pool-53-thread-1] WARN  datanode.DirectoryScanner 
(DirectoryScanner.java:shutdown(527)) - DirectoryScanner: shutdown has been 
called, but periodic scanner not started
2015-10-05 15:22:33,726 [Thread-911] INFO  datanode.TestDirectoryScanner 
(TestDirectoryScanner.java:testThrottling(675)) - Scanner took 3609189682ms to 
shutdown
{noformat}

Notice that the shutdown() method is called in the same second as the assert 
fails, and yet the assert says that the shutdown took a very long time.  The 
issue is that the assert is occasionally happening before the interrupter 
thread updates the timestamp.

The attached patch should resolve the issue.

> TestDirectoryScanner#testThrottling often fails.
> ------------------------------------------------
>
>                 Key: HDFS-9176
>                 URL: https://issues.apache.org/jira/browse/HDFS-9176
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 2.8.0
>            Reporter: Yi Liu
>            Assignee: Daniel Templeton
>            Priority: Minor
>         Attachments: HDFS-9176.001.patch
>
>
> https://builds.apache.org/job/PreCommit-HDFS-Build/12736/testReport/
> https://builds.apache.org/job/PreCommit-HADOOP-Build/7732/testReport/



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

Reply via email to