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

Explainable Operations should include MaxTimeMS in the explained command

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 5.2.0
    • Affects Version/s: None
    • Component/s: CSOT
    • None
    • Java Drivers
    • Not Needed
    • 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?

      Since CSOT there was a change on how commands are created with regards to MaxTimeMS. This has changed the shape of the commands sent when using explainable operations.

      The maxTimeMS is no longer included in the command being explained but rather is sent on the explain command itself.

      Scenarios to consider:

      1. maxTimeMS is used - it should be included on the command being explained. It shouldn't be set on the explain command sent to the server.
      2. timeoutMS is used - it should be included on both the command being explained and the explain command that is sent to the server.

      Note this is related but different to: JAVA-5579

            Assignee:
            slav.babanin@mongodb.com Slav Babanin
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: