Skip to content

Commit 18b8756

Browse files
committed
Merge branch 'v6.2' of github.com:mongodb/docs-node into v6.2
2 parents be3fa3b + 7af5bb2 commit 18b8756

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

source/faq.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ What Happens to Running Operations if the Client Disconnects?
170170

171171
Starting in {+mdb-server+} version 4.2, the server terminates
172172
running operations such as aggregations and find operations if the
173-
client disconnects. To see a full list of operations affected by this
174-
behavior, see the :manual:`Server version 4.2 release notes
175-
</release-notes/4.2/#client-disconnection>` in the Server manual.
173+
client disconnects.
176174

177175
Other operations, such as write operations, continue to run on the
178176
{+mdb-server+} even if the client disconnects. This behavior can cause data

source/fundamentals/authentication/mechanisms.txt

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,29 @@ The driver checks for your credentials in the following sources in order:
229229

230230
export AWS_WEB_IDENTITY_TOKEN_FILE=<absolute path to file containing your OIDC token>
231231

232-
After you've set the preceding environment variable, specify the ``MONGODB-AWS``
232+
AWS recommends using regional AWS STS endpoints instead of global
233+
endpoints to reduce latency, build-in redundancy, and increase session token validity.
234+
To set the AWS region, set `AWS_REGION <https://docs.aws.amazon.com/sdkref/latest/guide/feature-region.html>`__
235+
and `AWS_STS_REGIONAL_ENDPOINTS <https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html>`__
236+
as environment variables, as shown in the following example:
237+
238+
.. code-block:: bash
239+
240+
export AWS_STS_REGIONAL_ENDPOINTS=regional // Enables regional endpoints
241+
export AWS_REGION=us-east-1 // Sets your AWS region
242+
243+
If both these environment variables aren't set, the default region is
244+
``us-east-1``. For a list of available AWS regions, see the
245+
`Regional Endpoints <https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints>`__
246+
section of the AWS Service Endpoints reference in the AWS documentation.
247+
248+
.. warning:: Consult your SDK's Documentation for Setting an AWS Region
249+
250+
You cannot set your AWS region with environment variables for all SDKs,
251+
as in the above example. See your SDK's specific documentation for
252+
configuring an AWS region.
253+
254+
After you've set the preceding environment variables, specify the ``MONGODB-AWS``
233255
authentication mechanism in your connection string as shown in the following example:
234256

235257
.. literalinclude:: /code-snippets/authentication/aws-env-variable.js

source/fundamentals/connection/connection-options.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ parameters of the connection URI to specify the behavior of the client.
312312
- ``0``
313313
- Specifies the amount of time, in milliseconds, spent attempting to check out a connection
314314
from a server's connection pool before timing out.
315+
316+
``0`` signifies no timeout.
315317

316318
* - **wTimeoutMS**
317319
- non-negative integer

source/fundamentals/transactions.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ the Convenient Transaction API:
201201
To see a fully runnable example that uses this API, see the
202202
:ref:`node-usage-convenient-txn` usage example.
203203

204+
.. sharedinclude:: dbx/transactions-parallelism.rst
205+
204206
.. _nodejs-transaction-settings:
205207

206208
Transaction Options

0 commit comments

Comments
 (0)