Improve usage of multitenancySupport in sharding_catalog_manager_add_shard_test test

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2024-12-09
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The ThreadSanitizer reports the potential data race involving the gMultitenancySupport variable in BF-35848.
      The test 

      TEST_F(AddShardTest, StandaloneMultitenantPullSuccess) {

      sets the global variable gMultitenancySupport to true . The data race happens when getOrGenerateSampleId is called from a different thread while the test is running. 

       

            Assignee:
            Igor Praznik
            Reporter:
            Igor Praznik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: