Skip to content

Commit a541ef0

Browse files
author
Chris Cho
authored
020724 fix indentation (#520)
* 020724: fix RST indentation
1 parent 8a643e1 commit a541ef0

File tree

2 files changed

+76
-86
lines changed

2 files changed

+76
-86
lines changed

source/connection-troubleshooting.txt

Lines changed: 58 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,7 @@ Connection Troubleshooting
2323

2424
.. note::
2525

26-
This page addresses only connection issues. If you encounter other
27-
issues with MongoDB or the driver, visit the following resources:
28-
29-
- The :ref:`Issues & Help <java-issues-and-help>` topic for
30-
information about reporting bugs, contributing to the driver, and
31-
finding more resources
32-
- The `MongoDB Community Forums <{+communityForums+}>`__ for
33-
questions, discussions, or general technical support
34-
- The :ref:`Frequently Asked Questions (FAQ) <java-faq>` section for
35-
common questions and corresponding answers about the
36-
{+driver-short+}
26+
Test
3727

3828
.. replacement:: server-selection-timeout-error
3929

@@ -60,109 +50,109 @@ Connection Troubleshooting
6050

6151
.. _java-authentication-error:
6252

63-
.. replacement:: scram-failure-error
53+
.. replacement:: scram-failure-error
6454

65-
.. code-block:: none
66-
:copyable: false
55+
.. code-block:: none
56+
:copyable: false
6757

68-
Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
58+
Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
6959

70-
.. replacement:: check-credentials-formatting-anchor
60+
.. replacement:: check-credentials-formatting-anchor
7161

72-
.. _java-connection-string-auth:
62+
.. _java-connection-string-auth:
7363

74-
.. replacement:: learn-more-connection-string-admonition
64+
.. replacement:: learn-more-connection-string-admonition
7565

76-
.. tip::
66+
.. tip::
7767

78-
For more information about using connection strings,
79-
see :ref:`Connection URI <connection-uri>` in the Connection Guide.
68+
For more information about using connection strings,
69+
see :ref:`Connection URI <connection-uri>` in the Connection Guide.
8070

81-
.. replacement:: verify-authentication-database-anchor
71+
.. replacement:: verify-authentication-database-anchor
8272

83-
.. _java-verify-auth-db:
73+
.. _java-verify-auth-db:
8474

85-
.. replacement:: authsource-param-code-block
75+
.. replacement:: authsource-param-code-block
8676

87-
.. code-block:: java
88-
:copyable: false
77+
.. code-block:: java
78+
:copyable: false
8979

90-
String uri = "mongodb://<username>:<password>@<hostname>:<port>/?authSource=users&authMechanism=SCRAM-SHA-256";
91-
MongoClient mongoClient = MongoClients.create(uri);
80+
String uri = "mongodb://<username>:<password>@<hostname>:<port>/?authSource=users&authMechanism=SCRAM-SHA-256";
81+
MongoClient mongoClient = MongoClients.create(uri);
9282

93-
.. replacement:: credentials-provider-alternative-method-description
83+
.. replacement:: credentials-provider-alternative-method-description
9484

95-
If you construct a client by using a ``MongoCredential``, the builder method
96-
corresponds to the authentication mechanism. The following code shows the builder
97-
method for the ``SCRAM-SHA-256`` authentication mechanism:
85+
If you construct a client by using a ``MongoCredential``, the builder method
86+
corresponds to the authentication mechanism. The following code shows the builder
87+
method for the ``SCRAM-SHA-256`` authentication mechanism:
9888

99-
.. code-block:: java
100-
:copyable: false
89+
.. code-block:: java
90+
:copyable: false
10191

102-
MongoCredential credential = MongoCredential.createScramSha256Credential("<username>", "<authenticationDb>", "<password>");
92+
MongoCredential credential = MongoCredential.createScramSha256Credential("<username>", "<authenticationDb>", "<password>");
10393

10494

105-
.. replacement:: authentication-guide-reference
95+
.. replacement:: authentication-guide-reference
10696

107-
To learn more about specifying authentication mechanisms, see the :ref:`authentication-mechanisms` and
108-
:ref:`enterprise-authentication-mechanisms` guides.
97+
To learn more about specifying authentication mechanisms, see the :ref:`authentication-mechanisms` and
98+
:ref:`enterprise-authentication-mechanisms` guides.
10999

110-
.. replacement:: verify-authentication-mechanism-anchor
100+
.. replacement:: verify-authentication-mechanism-anchor
111101

112-
.. _java-verify-auth-mechanism:
102+
.. _java-verify-auth-mechanism:
113103

114-
.. replacement:: authsource-param-code-block
104+
.. replacement:: authsource-param-code-block
115105

116-
.. code-block:: java
117-
:copyable: false
106+
.. code-block:: java
107+
:copyable: false
118108

119-
MongoClient mongoClient = MongoClients.create("mongodb://<username>:<password>@<hostname>:<port>/?authSource=users");
109+
MongoClient mongoClient = MongoClients.create("mongodb://<username>:<password>@<hostname>:<port>/?authSource=users");
120110

121-
.. replacement:: dns-resolution-anchor
111+
.. replacement:: dns-resolution-anchor
122112

123-
.. _java-dns-resolution-error:
113+
.. _java-dns-resolution-error:
124114

125-
.. replacement:: dns-error-message
115+
.. replacement:: dns-error-message
126116

127-
.. code-block:: none
128-
:copyable: false
117+
.. code-block:: none
118+
:copyable: false
129119

130-
com.mongodb.MongoSocketWriteException: Exception sending message
120+
com.mongodb.MongoSocketWriteException: Exception sending message
131121

132-
.. replacement:: check-the-number-of-connections-anchor
122+
.. replacement:: check-the-number-of-connections-anchor
133123

134-
.. _java-connection-num-connections:
124+
.. _java-connection-num-connections:
135125

136-
.. replacement:: mongo-client-class
126+
.. replacement:: mongo-client-class
137127

138-
``MongoClient``
128+
``MongoClient``
139129

140-
.. replacement:: max-pool-size-param
130+
.. replacement:: max-pool-size-param
141131

142-
``maxPoolSize``
132+
``maxPoolSize``
143133

144-
.. replacement:: max-pool-size-default
134+
.. replacement:: max-pool-size-default
145135

146-
``100``
136+
``100``
147137

148-
.. replacement:: max-idle-time-param
138+
.. replacement:: max-idle-time-param
149139

150-
``maxIdleTimeMS``
140+
``maxIdleTimeMS``
151141

152-
.. replacement:: connection-pools-learn-more
142+
.. replacement:: connection-pools-learn-more
153143

154-
To learn more about how connection pooling works in the driver, see
155-
:ref:`java-faq-connection-pool` in the FAQ.
144+
To learn more about how connection pooling works in the driver, see
145+
:ref:`java-faq-connection-pool` in the FAQ.
156146

157-
.. replacement:: scram-failure-error
147+
.. replacement:: scram-failure-error
158148

159-
.. code-block::
149+
.. code-block::
160150

161-
Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
151+
Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
162152

163-
.. replacement:: check-credentials-formatting-anchor
153+
.. replacement:: check-credentials-formatting-anchor
164154

165-
.. _java-troubleshooting-connection-string-auth:
155+
.. _java-troubleshooting-connection-string-auth:
166156

167157
.. _java-connection-certificate:
168158

source/upgrade.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Version 5.0 Breaking Changes
6262
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6363

6464
- This driver version introduces the following changes to the ``ConnectionId`` class:
65-
65+
6666
- The ``ConnectionId`` constructor now accepts a value of type ``long`` as its second
6767
parameter instead of type ``int``. Similarly, the constructor now accepts a value of
6868
type ``Long`` as its third parameter instead of type ``Integer``. Because this change breaks
@@ -80,7 +80,7 @@ Version 5.0 Breaking Changes
8080
- The following record annotations from the
8181
``org.bson.codecs.record.annotations`` package are replaced with
8282
annotations of the same name from the ``org.bson.codecs.pojo.annotations`` package:
83-
83+
8484
- ``BsonId``
8585
- ``BsonProperty``
8686
- ``BsonRepresentation``
@@ -106,8 +106,8 @@ Version 5.0 Breaking Changes
106106
``VectorSearchOptions`` type, as shown in the following code:
107107

108108
.. code-block:: java
109-
110-
VectorSearchOptions opts = vectorSearchOptions().filter(eq("x", 8));
109+
110+
VectorSearchOptions opts = vectorSearchOptions().filter(eq("x", 8));
111111

112112
.. _java-breaking-changes-v5.0-observables:
113113

@@ -116,9 +116,9 @@ Version 5.0 Breaking Changes
116116
class. This means the ``org.reactivestreams.Publisher[Void]`` type no longer
117117
converts automatically to ``org.mongodb.scala.SingleObservable[Void]``. The
118118
API also exposes ``org.mongodb.scala.Observable[Unit]`` instead of
119-
``org.mongodb.scala.Observable[Void]``.
120-
121-
.. After the 5.0 Scala API docs are released, this line will be uncommented.
119+
``org.mongodb.scala.Observable[Void]``.
120+
121+
.. After the 5.0 Scala API docs are released, this line will be uncommented.
122122
For more information, see the `Observable trait documentation <https://mongodb.github.io/mongo-java-driver/5.0/apidocs/mongo-scala-driver/org/mongodb/scala/Observable.html>`__.
123123

124124
- This driver changes how ``ClusterSettings`` computes
@@ -132,20 +132,20 @@ Version 5.0 Breaking Changes
132132

133133
.. code-block:: java
134134

135-
ClusterSettings.builder()
136-
.applyConnectionString(new ConnectionString("mongodb://127.0.0.1:27017/?replicaSet=replset"))
137-
.build()
138-
.getMode()
135+
ClusterSettings.builder()
136+
.applyConnectionString(new ConnectionString("mongodb://127.0.0.1:27017/?replicaSet=replset"))
137+
.build()
138+
.getMode()
139139

140140
.. code-block:: java
141141

142-
ClusterSettings.builder()
143-
.hosts(Collections.singletonList(
144-
new ServerAddress("127.0.0.1", 27017)
145-
))
146-
.requiredReplicaSetName("replset")
147-
.build()
148-
.getMode()
142+
ClusterSettings.builder()
143+
.hosts(Collections.singletonList(
144+
new ServerAddress("127.0.0.1", 27017)
145+
))
146+
.requiredReplicaSetName("replset")
147+
.build()
148+
.getMode()
149149

150150
- This driver changes how ``BsonDecimal128`` values respond to method calls, by
151151
responding in the same way as ``Decimal128`` values. In particular,

0 commit comments

Comments
 (0)