Skip to content

Commit 40687db

Browse files
committed
remove read timeout gridfs csot note
(cherry picked from commit d69535a)
1 parent 8b95df1 commit 40687db

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

source/connect-to-mongo/csot.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -306,14 +306,6 @@ a ``GridFSBucket``:
306306
:dedent:
307307
:emphasize-lines: 3
308308

309-
.. important:: InputStream Timeout Support
310-
311-
When you call the ``uploadFromStream()`` method on a ``GridFSBucket``
312-
that has an operation timeout, timeout breaches might occur because
313-
the ``InputStream`` class lacks inherent read timeout support. This might
314-
extend the operation beyond the specified timeout limit, causing a
315-
timeout exception.
316-
317309
API Documentation
318310
-----------------
319311

source/write/store-large-docs.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@ The code examples in this guide come from the `GridFSTour.java
2929
<{+driver-source-gh+}/blob/master/driver-reactive-streams/src/examples/reactivestreams/gridfs/GridFSTour.java>`__
3030
file in the driver source code GitHub repository.
3131

32-
.. tip:: Timeout Setting
33-
34-
You can use the client-side operation timeout (CSOT) setting to limit
35-
the amount of time in which the server can finish GridFS operations.
36-
To learn more about using this setting with GridFS, see the
37-
:ref:`java-rs-csot-gridfs` section of the Limit Server Execution Time
38-
guide.
39-
4032
Prerequisites
4133
-------------
4234

@@ -103,17 +95,25 @@ create ``GridFSBucket`` instances:
10395
// Create a gridFSBucket using the default bucket name "fs"
10496
GridFSBucket gridFSBucket = GridFSBuckets.create(myDatabase);
10597

98+
.. note::
99+
100+
GridFS automatically creates indexes on the ``files`` and ``chunks``
101+
collections when you upload data to the GridFS bucket.
102+
106103
You can pass a bucket name to the ``GridFSBuckets.create()`` method:
107104

108105
.. code-block:: java
109106

110107
// Create a gridFSBucket with a custom bucket name "files"
111108
GridFSBucket gridFSFilesBucket = GridFSBuckets.create(myDatabase, "files");
112109

113-
.. note::
110+
.. tip:: Timeout Setting
114111

115-
GridFS automatically creates indexes on the ``files`` and ``chunks``
116-
collections when you upload data to the GridFS bucket.
112+
You can use the client-side operation timeout (CSOT) setting to limit
113+
the amount of time in which the server can finish GridFS operations.
114+
To learn more about using this setting with GridFS, see the
115+
:ref:`java-rs-csot-gridfs` section of the Limit Server Execution Time
116+
guide.
117117

118118
Upload to GridFS
119119
----------------

0 commit comments

Comments
 (0)