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

Using default operation logs location cause hive service session testing failed

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: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • None
    • None

    Description

      TestSessionCleanup and TestSessionManagerMetrics tests apply the default operation logs location "ConfVars.HIVE_SERVER2_LOGGING_OPERATION_LOG_LOCATION", it's same OS path, in TestSessionManagerMetrics SessionManager will delete the operation logs directory on testing exit, and in TestSessionCleanup the file count will be checked in operation logs directory, so if these test cases are executed in parrallel, they will impact each other.

      I run Hive tests in my local machine and enable maven parallel mode to run tests with option "-T 4 -DforkCount=4", it will run test class in separeted processes and execute test class in parallel, you can try to run tests several times, this issue should happen.

      Attachments

        1. HIVE-23233.2.patch
          5 kB
          RuiChen
        2. HIVE-23233.1.patch
          4 kB
          RuiChen

        Activity

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

          People

            RuiChen RuiChen Assign to me
            RuiChen RuiChen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment