Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5289

Race condition in TestRetryCacheWithHA#testCreateSymlink causes spurious test failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1-beta
    • 2.2.0
    • test
    • None
    • Reviewed

    Description

      The code to check if the operation has been completed on the active NN can potentially execute before the thread actually doing the operation has run. In this case the checking code will retry the check if the result of the check is null. However, the test operation does not in fact return null, instead throwing an exception if the file doesn't exist yet. We need to catch the exception and retry.

      Attachments

        1. HDFS-5289.patch
          2 kB
          Aaron Myers

        Activity

          People

            atm Aaron Myers
            atm Aaron Myers
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: