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

NFS: readdir/readdirplus return null directory attribute on failure

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      NFS readdir and readdirplus operations return a null directory attribute on some failure paths. This causes clients to get a 'Stale file handle' error which can only be fixed by unmounting and remounting the share.

      The issue can be reproduced by running 'ls' against a large directory which is being actively modified, triggering the 'cookie mismatch' failure path.

              } else {
                LOG.error("cookieverf mismatch. request cookieverf: " + cookieVerf
                    + " dir cookieverf: " + dirStatus.getModificationTime());
                return new READDIRPLUS3Response(Nfs3Status.NFS3ERR_BAD_COOKIE);
              }
      

      Thanks to brandonli for catching the issue.

      Attachments

        1. HDFS-7733.01.patch
          1 kB
          Arpit Agarwal

        Activity

          People

            arp Arpit Agarwal
            arp Arpit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: