-
Type: Task
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Client Side Encryption, Testing
-
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
- related to
-
NODE-4324 Design: Allow Number Options To Also Accept Int32 and Long
- Backlog