Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6280

Unable to apply collation to find and modify commands on load balanced topologies

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Load Balancer

      Use Case

      Attempting to set a collation on a load balanced topology for a find and modify command throws the following error:

      MongoCompatibilityError: Current topology does not support collation
      

      The root cause of this issue is that the driver check's the topology's ServerCapabilities object to determine if collation is supported, but this class depends on the lastHello() received during monitoring, but we never monitor in load balanced mode so ServerCapabilities reports `false` for collation support.

      Other helpers in the driver do not have this issue.

      The best thing to do is probably just remove the restriction and let the server error if collation isn't supported.
       

      User Impact

      • Unsure - This only impacts users using load balancers and find and modify commands with collation. note that collation isn't supported on serverless clusters, so this doesn't impact serverless users.

      Dependencies

      • n/a

      Unknowns

      • n/a

      Acceptance Criteria

      Implementation Requirements

      Testing Requirements

      • Unskip failing unified tests.

      Documentation Requirements

      • n/a

      Follow Up Requirements

      • n/a

            Assignee:
            Unassigned Unassigned
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: