summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2022-08-25 00:51:20 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-25 01:27:47 +0000
commit17e0097a3a7968fe7cc7d557afa157d1579cef64 (patch)
tree2fb5290a3122a3484aab6d13675786bd45c0336a
parent35a3d8f0f2eddfeaad89224e44e7d7d2de60c56f (diff)
downloadmongo-17e0097a3a7968fe7cc7d557afa157d1579cef64.tar.gz
SERVER-68621 Fix internal fields erroneously marked as stable
-rw-r--r--buildscripts/idl/idl_check_compatibility.py12
-rw-r--r--src/mongo/db/ops/write_ops.idl2
-rw-r--r--src/mongo/db/pipeline/aggregate_command.idl2
-rw-r--r--src/mongo/db/repl/hello.idl8
-rw-r--r--src/mongo/db/session/logical_session_id.idl4
5 files changed, 19 insertions, 9 deletions
diff --git a/buildscripts/idl/idl_check_compatibility.py b/buildscripts/idl/idl_check_compatibility.py
index 75824228167..2ee7c7cff25 100644
--- a/buildscripts/idl/idl_check_compatibility.py
+++ b/buildscripts/idl/idl_check_compatibility.py
@@ -223,6 +223,17 @@ IGNORE_STABLE_TO_UNSTABLE_LIST: List[str] = [
# The 'needsMerge' and 'fromMongos' fields of aggregation are sent from mongos to shards for internal use.
'aggregate-param-needsMerge',
'aggregate-param-fromMongos',
+ # Bulk fixes for fields that are strictly internal all along and should thus be marked unstable.
+ 'aggregate-param-$_generateV2ResumeTokens',
+ 'endSessions-param-txnNumber',
+ 'endSessions-param-txnUUID',
+ 'findAndModify-param-stmtId',
+ 'hello-reply-cwwc',
+ 'hello-reply-isImplicitDefaultMajorityWC',
+ 'hello-param-loadBalanced',
+ 'hello-reply-serviceId',
+ 'refreshSessions-param-txnNumber',
+ 'refreshSessions-param-txnUUID',
]
# Once a field is part of the stable API, either by direct addition or by changing it from unstable
@@ -296,7 +307,6 @@ ALLOWED_STABLE_FIELDS_LIST: List[str] = [
'listIndexes-reply-clustered',
'create-param-encryptedFields',
'create-param-bucketRoundingSeconds',
- 'encryptedFields-param-encryptedFields',
'endSessions-param-txnNumber',
'endSessions-param-txnUUID',
'refreshSessions-param-txnNumber',
diff --git a/src/mongo/db/ops/write_ops.idl b/src/mongo/db/ops/write_ops.idl
index bc5c6a9fe79..4ad32c0e151 100644
--- a/src/mongo/db/ops/write_ops.idl
+++ b/src/mongo/db/ops/write_ops.idl
@@ -509,7 +509,7 @@ commands:
description: "The statement number for this findAndModify operation."
type: int
optional: true
- stability: stable
+ stability: internal
bypassDocumentValidation:
description: "Enables the operation to bypass document validation. This lets you
write documents that do not meet the validation requirements."
diff --git a/src/mongo/db/pipeline/aggregate_command.idl b/src/mongo/db/pipeline/aggregate_command.idl
index d2d78a82029..3381bf366a0 100644
--- a/src/mongo/db/pipeline/aggregate_command.idl
+++ b/src/mongo/db/pipeline/aggregate_command.idl
@@ -266,7 +266,7 @@ commands:
description: "Internal parameter to signal whether v2 resume tokens should be generated."
type: optionalBool
cpp_name: generateV2ResumeTokens
- stability: stable
+ stability: internal
encryptionInformation:
description: "Encryption Information schema and other tokens for CRUD commands"
type: EncryptionInformation
diff --git a/src/mongo/db/repl/hello.idl b/src/mongo/db/repl/hello.idl
index 33085b8e74f..9f5fd99addf 100644
--- a/src/mongo/db/repl/hello.idl
+++ b/src/mongo/db/repl/hello.idl
@@ -148,7 +148,7 @@ structs:
serviceId:
type: objectid
optional: true
- stability: stable
+ stability: internal
##
## ReplicationInfo
##
@@ -248,12 +248,12 @@ structs:
# Only populated on shard server.
type: bool
optional: true
- stability: stable
+ stability: internal
cwwc:
# Only populated on shard server.
type: WriteConcern
optional: true
- stability: stable
+ stability: internal
commands:
hello:
@@ -318,4 +318,4 @@ commands:
loadBalanced:
type: bool
optional: true
- stability: stable
+ stability: unstable
diff --git a/src/mongo/db/session/logical_session_id.idl b/src/mongo/db/session/logical_session_id.idl
index 85cf3ba1435..f93e8d6db1d 100644
--- a/src/mongo/db/session/logical_session_id.idl
+++ b/src/mongo/db/session/logical_session_id.idl
@@ -77,12 +77,12 @@ structs:
description: "Used for internal sessions only."
type: TxnNumber
optional: true
- stability: stable
+ stability: unstable
txnUUID:
description: "Used for internal sessions only."
type: uuid
optional: true
- stability: stable
+ stability: unstable
LogicalSessionIdToClient:
description: "A struct representing a LogicalSessionId to external clients"