Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-5043

Database not being dropped using reactor-bom 2022

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Unknown Unknown
    • None
    • None
    • None
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

    Description

      Summary

      The database cannot be dropped via mongodb-driver-core 4.9.1 and reactor-bom 2022.0.8 (and before) while it works with reactor-bom 2020.0.x. The subscription's methods are not called and the database is not dropped.

      It works fine with any version of reactor-bom 2020 like the current one 2020.0.33.

      Tested via Spring Boot 3.1.1, Testcontainers 1.18.3, Java 20.0.1, MongoDB container "mongo:6.0" (= should be standalone).

       

      How to Reproduce

      Example project: github demo project

      You can switch the reactor-bom version via enabling a property overriding the version defined by Spring.

      2022.0.x will run into a timeout via Awaitility.
      2020.0.x will succeed in dropping the database. The test will succeed.

       

      Additional Background

      -

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            c.ahlers@gmx.net Christoph Ahlers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: