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

Fix test TestHiveMetaStore.testJDOPersistanceManagerCleanup

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: Standalone Metastore
    • Labels:
      None

      Description

      TestHiveMetaStore#testJDOPersistanceManagerCleanup tests whether the JDO persistence manager cache cleanup was performed correctly when a HiveMetaStoreClient executes an API call, and closes. It does this by ensuring that the cache object count before the API call, and after closing, are the same. However, there are some assumptions that are not always correct, and can cause flakiness.

      For example, lingering resources could be present from previous tests or from setup depending on how PTest runs it, and can cause the object count to sometimes be incorrect. We should rewrite this test to account for this flakiness that can occur.

        Attachments

        1. HIVE-21480.patch
          5 kB
          Morio Ramdenbourg
        2. HIVE-21480.1.patch
          5 kB
          Morio Ramdenbourg

          Issue Links

            Activity

              People

              • Assignee:
                mramdenbourg Morio Ramdenbourg
                Reporter:
                mramdenbourg Morio Ramdenbourg
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: