Skip to content

Commit 270c8b6

Browse files
steverenChris Cho
authored andcommitted
DOCSP-10068: [Guides] clarify source cluster requirements (#150)
1 parent b2b3460 commit 270c8b6

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

source/includes/iterate_all.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,24 +67,23 @@
6767
- id: java-sync
6868
content: |
6969
70-
You can implement a ``com.mongodb.Block`` to print the results
71-
of the iteration
70+
You can implement a ``java.util.function.Consumer`` to print the
71+
results of the iteration
7272
7373
.. code-block:: java
7474
75-
Block<Document> printBlock = new Block<Document>() {
76-
@Override
77-
public void apply(final Document document) {
78-
System.out.println(document.toJson());
75+
Consumer<Document> printConsumer = new Consumer<Document>() {
76+
public void accept(final Document doc) {
77+
System.out.println(doc.toJson());
7978
}
8079
};
8180
8281
Then iterate the cursor for documents, passing the
83-
``printBlock`` as a parameter.
82+
``printConsumer`` as a parameter.
8483
8584
.. code-block:: java
8685
87-
findIterable.forEach(printBlock);
86+
findIterable.forEach(printConsumer);
8887
8988
- id: nodejs
9089
content: |

source/includes/migration-pr-compose.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818

1919
If your deployment is currently a standalone instance, you must first
2020
:manual:`convert it to a replica set </tutorial/convert-standalone-to-replica-set>`.
21-
Live migration of data from sharded clusters is not supported.
21+
22+
Live migration of data from sharded clusters is not supported. Your destination
23+
cluster may be sharded, but your source cluster must be an unsharded replica
24+
set.
2225

2326
* (Optional) Enabled authentication on your source deployment.
2427

0 commit comments

Comments
 (0)