Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13883

WebHCat leaves token crc file never gets deleted

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.1, 1.2.0, 1.2.1, 2.0.1
    • 2.3.0
    • WebHCat
    • None

    Description

      In one of our long run environment, there are thousands of /tmp/.templeton*.tmp.crc files,

      omm@szxciitslx17645:/> ll /tmp/.templeton*.tmp.crc
      ...
      rw-rr- 1 omm wheel 12 May 26 18:15 /tmp/.templeton6676048390600607654.tmp.crc
      rw-rr- 1 omm wheel 12 May 26 18:14 /tmp/.templeton2733383617337556503.tmp.crc
      rw-rr- 1 omm wheel 12 May 26 18:12 /tmp/.templeton2183121761801669064.tmp.crc
      rw-rr- 1 omm wheel 12 May 26 18:11 /tmp/.templeton2689764046140543879.tmp.crc
      ...

      omm@szxciitslx17645:/> ll /tmp/.templeton*.tmp.crc | wc -l
      17986

      It's created by webhcat, https://github.com/apache/hive/blob/master/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/SecureProxySupport.java#L193 and never gets deleted https://github.com/apache/hive/blob/master/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/SecureProxySupport.java#L110

      Attachments

        1. HIVE-13883.patch
          1 kB
          Niklaus Xiao
        2. HIVE-13883.2.patch
          1 kB
          Niklaus Xiao
        3. HIVE-13883.3.patch
          1 kB
          Niklaus Xiao

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            niklaus.xiao Niklaus Xiao Assign to me
            niklaus.xiao Niklaus Xiao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment