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

fuse dfs - uid persists when switching between ticket caches

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 3.2.0
    • Component/s: fuse-dfs
    • Labels:
      None
    • Environment:

      Linux xxxxxx.xx.xx.xxx 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

       

    • Release Note:
      FUSE lib now recognize the change of the Kerberos ticket cache path if it was changed between two file system access in the same local user session via the KRB5CCNAME environment variable.

      Description

      The symptoms of this issue are the same as described in HDFS-3608 except the workaround that was applied (detect changes in UID ticket cache) doesn't resolve the issue when multiple ticket caches are in use by the same user.

      Our use case requires that a job scheduler running as a specific uid obtain separate kerberos sessions per job and that each of these sessions use a separate cache. When switching sessions this way, no change is made to the original ticket cache so the cached filesystem instance doesn't get regenerated.

       

      $ export KRB5CCNAME=/tmp/krb5cc_session1

      $ kinit user_a@domain

      $ touch /fuse_mount/tmp/testfile1

      $ ls -l /fuse_mount/tmp/testfile1

       -rwxrwxr-x 1 user_a user_a 0 Mar 21 13:37 /fuse_mount/tmp/testfile1

      $ export KRB5CCNAME=/tmp/krb5cc_session2

      $ kinit user_b@domain

      $ touch /fuse_mount/tmp/testfile2

      $ ls -l /fuse_mount/tmp/testfile2

       -rwxrwxr-x 1 user_a user_a 0 Mar 21 13:37 /fuse_mount/tmp/testfile2

          expected owner to be user_b **

        Attachments

        1. catter.sh
          0.2 kB
          Istvan Fajth
        2. catter2.sh
          0.2 kB
          Istvan Fajth
        3. HDFS-13322.001.patch
          2 kB
          Istvan Fajth
        4. HDFS-13322.002.patch
          2 kB
          Istvan Fajth
        5. HDFS-13322.003.patch
          2 kB
          Istvan Fajth
        6. perftest_new_behaviour_10k_different_1KB.txt
          3 kB
          Istvan Fajth
        7. perftest_new_behaviour_1B.txt
          3 kB
          Istvan Fajth
        8. perftest_new_behaviour_1KB.txt
          3 kB
          Istvan Fajth
        9. perftest_new_behaviour_1MB.txt
          3 kB
          Istvan Fajth
        10. perftest_old_behaviour_10k_different_1KB.txt
          3 kB
          Istvan Fajth
        11. perftest_old_behaviour_1B.txt
          3 kB
          Istvan Fajth
        12. perftest_old_behaviour_1KB.txt
          3 kB
          Istvan Fajth
        13. perftest_old_behaviour_1MB.txt
          3 kB
          Istvan Fajth
        14. test_after_patch.out
          0.3 kB
          Istvan Fajth
        15. test_before_patch.out
          0.3 kB
          Istvan Fajth
        16. TestFuse.java
          0.6 kB
          Istvan Fajth
        17. TestFuse2.java
          0.6 kB
          Istvan Fajth
        18. testHDFS-13322.sh
          0.6 kB
          Istvan Fajth

          Issue Links

            Activity

              People

              • Assignee:
                pifta Istvan Fajth
                Reporter:
                wolfosis Alex Volskiy
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: