Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17239

ViewFs#getDelegationTokens should include fallback fs tokens as well.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • viewfs
    • None

    Description

       

      getDelegationTokens API is using getMountPoints API and return tokens by iterating over.

      But getMountPoints will not include fallbackfs. So, it will miss the tokens from fallback fs.

      @Override
      public List<Token<?>> getDelegationTokens(String renewer) throws IOException {
       List<InodeTree.MountPoint<AbstractFileSystem>> mountPoints = 
       fsState.getMountPoints();
       int initialListSize = 0;
       for (InodeTree.MountPoint<AbstractFileSystem> im : mountPoints) {
       initialListSize += im.target.targetDirLinkList.length; 
       }
       List<Token<?>> result = new ArrayList<Token<?>>(initialListSize);
       for ( int i = 0; i < mountPoints.size(); ++i ) {
       List<Token<?>> tokens = 
       mountPoints.get(i).target.targetFileSystem.getDelegationTokens(renewer);
       if (tokens != null) {
       result.addAll(tokens);
       }
       }
       return result;
      }
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            umamaheswararao Uma Maheswara Rao G
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: