Skip to content

Commit 7c47e53

Browse files
committed
DOCS-15368 - Clarify UUID changes (#402)
(cherry picked from commit b30dc6e)
1 parent 7ec554a commit 7c47e53

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

source/upgrade.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ Version 4.0 Breaking Changes
8989
UUID values must explicitly specify which representation to use. You can
9090
specify the representation in the ``uuidRepresentation`` property of
9191
``MongoClientSettings``.
92+
93+
The UUID representation that you specify strictly controls how the driver
94+
decodes UUIDs. In previous versions of the driver, if you specified the
95+
``JAVA_LEGACY`` representation, the driver would decode binary objects
96+
of subtypes 3 and 4 as UUIDs. In version 4.0, the ``JAVA_LEGACY``
97+
representation works only with subtype 3.
98+
99+
For a list of members in the ``UuidRepresentation`` enum, see the
100+
`API documentation. <https://http://mongodb.github.io/mongo-java-driver/4.0/apidocs/bson/org/bson/UuidRepresentation.html>`__
101+
92102
- The connection pool no longer restricts the number of wait queue threads
93103
or asynchronous tasks that require a connection to MongoDB. The
94104
application should throttle requests as necessary rather than depend on

0 commit comments

Comments
 (0)