Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50542

Catalog Cache is not cleaned on ShardingTestFixture

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      1. Executes a test that extends ShardingTestFixture
      2. Make a catalog cache request that takes too long
      3. Finish the test before the request at 2 finish

      Show
      1. Executes a test that extends ShardingTestFixture 2. Make a catalog cache request that takes too long 3. Finish the test before the request at 2 finish
    • Sprint:
      Sharding 2020-09-07
    • Linked BF Score:
      0

      Description

      After the changes on SERVER-49975 a new executor pool is being created within the catalog cache. Additionally the destructor on ShardingTestFixture is not cleaning up the catalog cache previously created on the constructor.

      If the service context is destroyed and there is a pending refresh, this invariant will be hit on the service context destructor, because all operations should be finished by that point. We could cleanup the grid like ShardingMongodTestFixture or simply make sure the catalog cache executor is shutdown and joined on the ShardingTestFixture destructor.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tommaso.tocci Tommaso Tocci
              Reporter:
              marcos.grillo Marcos José Grillo Ramirez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: