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 New Feature
    • Status: Resolved
    • Priority: Minor 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.

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

        Activity

        Hide
        Guillermo Cabrera added a comment -

        Fixes org.apache.hadoop.fs.TestLocalFSFileContextSymlink problems reported by Hadoop

        Show
        Guillermo Cabrera added a comment - Fixes org.apache.hadoop.fs.TestLocalFSFileContextSymlink problems reported by Hadoop
        Hide
        Regis Xu added a comment -

        Thanks Guillermo.

        I just committed a patch that could configure timeout via system property 'org.apache.harmony.file.canonical.path.cache.timeout' and reduce default timeout value to 30 seconds.
        The revision is r1035930, please check if it could resolve your problem.

        Show
        Regis Xu added a comment - Thanks Guillermo. I just committed a patch that could configure timeout via system property 'org.apache.harmony.file.canonical.path.cache.timeout' and reduce default timeout value to 30 seconds. The revision is r1035930, please check if it could resolve your problem.
        Hide
        Hudson added a comment -

        Integrated in Harmony-select-1.5-head-linux-x86_64 #157 (See https://hudson.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/157/)
        Fix for HARMONY-6675: Reducing timeout value in CanonicalPatchCache to fix a file not found error in Hadoop common

        1. make timeout of CanonicalPatchCache configurable via property
        'org.apache.harmony.file.canonical.path.cache.timeout'.
        2. reduce default timeout value to 30 seconds.

        Show
        Hudson added a comment - Integrated in Harmony-select-1.5-head-linux-x86_64 #157 (See https://hudson.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/157/ ) Fix for HARMONY-6675 : Reducing timeout value in CanonicalPatchCache to fix a file not found error in Hadoop common 1. make timeout of CanonicalPatchCache configurable via property 'org.apache.harmony.file.canonical.path.cache.timeout'. 2. reduce default timeout value to 30 seconds.
        Hide
        Hudson added a comment -

        Integrated in Harmony-1.5-head-linux-x86_64 #1010 (See https://hudson.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/1010/)
        Fix for HARMONY-6675: Reducing timeout value in CanonicalPatchCache to fix a file not found error in Hadoop common

        1. make timeout of CanonicalPatchCache configurable via property
        'org.apache.harmony.file.canonical.path.cache.timeout'.
        2. reduce default timeout value to 30 seconds.

        Show
        Hudson added a comment - Integrated in Harmony-1.5-head-linux-x86_64 #1010 (See https://hudson.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/1010/ ) Fix for HARMONY-6675 : Reducing timeout value in CanonicalPatchCache to fix a file not found error in Hadoop common 1. make timeout of CanonicalPatchCache configurable via property 'org.apache.harmony.file.canonical.path.cache.timeout'. 2. reduce default timeout value to 30 seconds.
        Hide
        Hudson added a comment -

        Integrated in Harmony-1.5-head-linux-x86_64 #1011 (See https://hudson.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/1011/)
        Improve patch for HARMONY-6675 at r1035930: remove field 'isEnable' and mark more fileds as 'final'.

        Show
        Hudson added a comment - Integrated in Harmony-1.5-head-linux-x86_64 #1011 (See https://hudson.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/1011/ ) Improve patch for HARMONY-6675 at r1035930: remove field 'isEnable' and mark more fileds as 'final'.
        Hide
        Hudson added a comment -

        Integrated in Harmony-select-1.5-head-linux-x86_64 #158 (See https://hudson.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/158/)
        Improve patch for HARMONY-6675 at r1035930: remove field 'isEnable' and mark more fileds as 'final'.

        Show
        Hudson added a comment - Integrated in Harmony-select-1.5-head-linux-x86_64 #158 (See https://hudson.apache.org/hudson/job/Harmony-select-1.5-head-linux-x86_64/158/ ) Improve patch for HARMONY-6675 at r1035930: remove field 'isEnable' and mark more fileds as 'final'.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development