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

PidFilePatternConverter not rolling log according to their pid

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

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Logging
    • None

    Description

      We can use pid in th filePattern:

      appender.DRFA.filePattern = ${sys:hive.log.dir}/${sys:hive.log.file}.%d

      {yyyy-MM-dd}

      .%pid

      But when its time roll the logs at the end of the RollingAppender just renames hive.log by applying the pattern described above and keeps logs that are not related to the process this log was named by. The issue is that all processes are writing to the same log and we cannot separate them by pid.

      Attachments

        1. HIVE-17477.6.patch
          13 kB
          Bohdan Chupika
        2. HIVE-17477.5.patch
          13 kB
          Bohdan Chupika
        3. HIVE-17477.4.patch
          13 kB
          Bohdan Chupika
        4. HIVE-17477.3.patch
          13 kB
          Bohdan Chupika
        5. HIVE-17477.2.patch
          13 kB
          Bohdan Chupika
        6. HIVE-17477.1.patch
          13 kB
          Bohdan Chupika

        Issue Links

        Activity

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

          People

            bchupika Bohdan Chupika Assign to me
            allgoodok Vlad Gudikov

            Dates

              Created:
              Updated:

              Slack

                Issue deployment