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

Coerce `Int32` batchSize to number for `getMore with encryption` FLE prose test

    • Not Needed

      Use Case

      The node driver does not support BSON wrapper types for numeric options for many driver APIs. For example, the following does not attach a batch size of 10:

      collection.find({}, { batchSize: new Int32(10) })
      

      Users are unlikely to be doing this because we've never supported this behavior. However, some spec tests specify numeric options in strict EJSON, which we parse with `relaxed: false`. We might see failures because we attempt to use the boxed BSON types but the driver doesn't support them. `getMore with encryption` is an example of this issue.

      As far as I know, `getMore with encryption` is the only place this is an issue for now. NODE-4324 will allow users to specify numeric options using Int32 or Longs, but until then we can just work around this issue for any tests that this affects.

      User Impact

      n/a

      Dependencies

      n/a

      Unknowns

      n/a

      Acceptance Criteria

      Implementation Requirements

      • functional reqs, potential snafus to avoid, performance targets, etc

      Testing Requirements

      • unit test, spec test sync, etc

      Documentation Requirements

      • DOCSP ticket, API docs, etc

      Follow Up Requirements

      • additional tickets to file, required releases, etc

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

              Created:
              Updated: