Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6675

Reducing timeout value in CanonicalPatchCache to fix a file not found error in Hadoop common

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0M16
    • Component/s: None
    • Labels:
      None
    • Environment:
      SLE v. 11, Apache Harmony 6

      Description

      Testing Harmony Select (r1022137) with Hadoop common, we ran across the following error:

      java.lang.RuntimeException: Error while running command to get file permissions : org.apache.hadoop.util.Shell$ExitCodeException: /bin/ls: /tmp/test1/file: No such file or directory

      Charles Lee (Apache Harmony developer) provided us with the following answer:

      "For all the test case failures in org.apache.hadoop.fs.TestLocalFSFileContextSymlink, the root cause is we have a CanonicalPathCache under the File, so the file canonical path will be wrong if the test case highly stressed, (I remember the cache time is set to 10 minute)."

      His patch to fix this issue has been attached.

        Attachments

        1. HARMONY.-6675.diff
          1 kB
          Guillermo Cabrera

          Activity

            People

            • Assignee:
              regis_xu Regis Xu
              Reporter:
              gcabrer Guillermo Cabrera
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: