-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Querying
-
Fully Compatible
-
Query Execution 2021-07-12, Query Execution 2021-07-26, QE 2021-08-09, QE 2021-08-23, QE 2021-09-06
The serialization format for sort keys changed between 4.2 and 4.4. In order to ensure that this did not disrupt the upgrade or downgrade process between 4.2 and 4.4, we introduced a new use44SortKeys flag on the aggregate command, as well as a similar _use44SortKeys flag on the find command.
These flags are no longer necessary in 4.6, since a 4.6 node does not need to remain compatible with 4.2. Most of the relevant code related to the 4.2/4.4 upgrade will be deleted under related ticket SERVER-43361. However, a 4.6 node still needs to be able to accept find and agg commands with the use44SortKeys flag. During upgrade, a 4.4 mongos or mongod might send this flag to a 4.6 mongod. Therefore, a 4.6 will tolerate the presence of the flag, but can completely ignore its value.
In 4.7 development, we can finally remove all remaining traces of use44SortKeys, since a 4.8 node should never receive a command with this flag set.
- depends on
-
SERVER-56366 Update FCV constants in server code base following 5.0 branch
- Closed
- is related to
-
SERVER-43361 Remove compatibility for 4.2 $sortKey format
- Closed