Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2822

StartTransaction doesn't throw an exception when connected to Standalone nodes

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 2.11.0
    • 2.8.1
    • None
    • None

    Description

      The driver does not throw an exception on StartTransaction when connecting to a Standalone or Unknown node. This is connected to CSHARP-2561 where the check was introduced.

      However, the check misses these two scenarios. This results in an exception being thrown at a later stage when transaction operations are being executed. 

      Note 2020-04-20: It is not necessary to check for Unknown because in that case the server is also disconnected and we filter out disconnected servers before checking server type.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            tomasz.masternak@gmail.com Tomasz Masternak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: