Fix conflict with consecutive tests creating and dropping search indexes

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • None
    • PHP Drivers
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      Document that the process of creating and removing search indexes is async, and you can't create new search indexes while an index with the same name in the same namespace is being dropped.

      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      Using an prefix is useful, but not working PHPORM-433. Just wait for the index to be dropped at the end of the test that drop an index.

      3. Which versions of the driver/connector does this apply to?

      MongoDB Atlas, Laravel-MongoDB 5.2+

      Show
      1. What would you like to communicate to the user about this feature? Document that the process of creating and removing search indexes is async, and you can't create new search indexes while an index with the same name in the same namespace is being dropped. 2. Would you like the user to see examples of the syntax and/or executable code and its output? Using an prefix is useful, but not working PHPORM-433 . Just wait for the index to be dropped at the end of the test that drop an index. 3. Which versions of the driver/connector does this apply to? MongoDB Atlas, Laravel-MongoDB 5.2+
    • None
    • None
    • None
    • None
    • None
    • None

      Tests creating and dropping search indexes can conflict with each-other because this operations are asynchronous. The solution is to use a distinct collection names for each test.

            Assignee:
            Jérôme Tamarelle
            Reporter:
            Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: