Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18371 Create more tests for standalone-metastore HiveMetaStoreClient API
  3. HIVE-18745

Fix MetaStore creation in tests, so multiple MetaStores can be started on the same machine

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Janaki Lahorani fixed the problem, when multiple MetaStore tests are started on the same machine, then they tried to reserve the same port. This caused flakiness in the MetaStore tests run with the ptest framework. See: HIVE-18147

      I reviewed the HIVE-17980, and tried to make sure, that the fix remains in every codepath. I was unsuccessful in it. 

      This Jira aims to go through the MetaStore tests, and make sure all of them is using the  startMetaStoreWithRetry method so the different tests will not cause each other to fail. Also there were clashes not only in port numbers, but warehouse directories as well, so this Jira should fix that also.

        Attachments

        1. HIVE-18745.1.patch
          36 kB
          Peter Vary
        2. HIVE-18745.2.patch
          35 kB
          Peter Vary
        3. HIVE-18745.3.patch
          38 kB
          Peter Vary
        4. HIVE-18745.4.patch
          38 kB
          Peter Vary
        5. HIVE-18745.5.patch
          38 kB
          Peter Vary
        6. HIVE-18745.6.patch
          39 kB
          Peter Vary
        7. HIVE-18745.7.patch
          39 kB
          Peter Vary

          Activity

            People

            • Assignee:
              pvary Peter Vary
              Reporter:
              pvary Peter Vary
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: