Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3505

DirectoryScanner does not join all threads in shutdown

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      DirectoryScanner does not join all the threads it spawned during DirectoryScanner#shutdown.

      This can lead to rare failures in TestDirectoryScanner when some threads linger past their designated expiration date and cause interference between different test runs.

      The fix is to call ExecutorService#awaitTermination.

      1. HDFS-3505.001.patch
        1 kB
        Colin Patrick McCabe

        Activity

        Colin Patrick McCabe created issue -
        Colin Patrick McCabe made changes -
        Field Original Value New Value
        Affects Version/s 2.0.0-alpha [ 12320353 ]
        Target Version/s 2.0.0-alpha [ 12320353 ]
        Colin Patrick McCabe made changes -
        Attachment HDFS-3505.001.patch [ 12530879 ]
        Colin Patrick McCabe made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Eli Collins made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Target Version/s 2.0.0-alpha [ 12320353 ]
        Fix Version/s 2.0.1-alpha [ 12321440 ]
        Resolution Fixed [ 1 ]
        Arun C Murthy made changes -
        Fix Version/s 2.0.2-alpha [ 12322472 ]
        Fix Version/s 2.1.0-alpha [ 12321440 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Colin Patrick McCabe
            Reporter:
            Colin Patrick McCabe
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development