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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.11.0
    • Affects Version/s: 2.8.1
    • Component/s: None
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: