File tree Expand file tree Collapse file tree 8 files changed +14
-27
lines changed Expand file tree Collapse file tree 8 files changed +14
-27
lines changed Original file line number Diff line number Diff line change @@ -458,6 +458,6 @@ of the ``query`` field and the ``msg`` field will indicate if the
458
458
operation is an index build. The ``msg`` field also indicates the
459
459
percent of the build that is complete.
460
460
461
- You can only terminate a background index build. If you need to
462
- terminate an ongoing index build, You can use the
461
+ To
462
+ terminate an ongoing index build, use the
463
463
:method:`db.killOp()` method in the :program:`mongo` shell.
Original file line number Diff line number Diff line change @@ -104,11 +104,12 @@ background. See :ref:`index-creation-operations`.
104
104
105
105
If you build a large index without the background option, and if doing
106
106
so causes the database to stop responding,
107
- wait for the index to finish building.
107
+ do one of the following:
108
108
109
- .. FUTURE When SERVER-3067 is fixed, this option also will be available:
110
- Kill the current operation (see :method:`db.killOp()`). The partial
111
- index will be deleted.
109
+ - Wait for the index to finish building.
110
+
111
+ - Kill the current operation (see :method:`db.killOp()`). The partial
112
+ index will be deleted.
112
113
113
114
.. _faq-index-min-max:
114
115
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -80,9 +80,6 @@ Operations
80
80
You can use the :method:`db.killOp()` in conjunction with the
81
81
:data:`~currentOp.opid` field to terminate a currently running
82
82
operation.
83
-
84
- .. include:: /includes/note-foreground-index-kill-limitation.rst
85
-
86
83
The following JavaScript operations for the
87
84
:program:`mongo` shell filter the output of
88
85
specific types of operations:
@@ -101,8 +98,6 @@ depending on the kind of operation and its state.
101
98
:method:`db.killOp()` in the :program:`mongo` shell to terminate the
102
99
operation.
103
100
104
- .. include:: /includes/note-foreground-index-kill-limitation.rst
105
-
106
101
.. data:: currentOp.active
107
102
108
103
A boolean value, that is ``true`` if the operation has started
Original file line number Diff line number Diff line change @@ -177,12 +177,6 @@ Operations
177
177
178
178
.. see:: :operator:`$or` and :doc:`/core/geospatial-indexes`.
179
179
180
- .. _cannot-kill-foreground:
181
- .. limit:: Cannot Kill Foreground Index Build
182
-
183
- You cannot use :method:`db.killOp()` to kill a foreground index
184
- build.
185
-
186
180
Naming Restrictions
187
181
~~~~~~~~~~~~~~~~~~~
188
182
Original file line number Diff line number Diff line change @@ -154,10 +154,6 @@ db.collection.ensureIndex()
154
154
- Non-background indexing operations will block all other
155
155
operations on a database.
156
156
157
- - You cannot stop a foreground index build once it's begun. See the
158
- :ref:`indexes-admin-stop-in-progress-build` for more
159
- information.
160
-
161
157
.. [#] The default index version depends on the version of
162
158
:program:`mongod` running when creating the index. Before version
163
159
2.0, the this value was 0; versions 2.0 and later use version 1.
Original file line number Diff line number Diff line change @@ -13,6 +13,4 @@ db.killOp()
13
13
:doc:`/reference/current-op` for full documentation of the output
14
14
of :method:`db.currentOp()`.
15
15
16
- .. include:: /includes/note-foreground-index-kill-limitation.rst
17
-
18
16
.. include:: /includes/warning-terminating-operations.rst
Original file line number Diff line number Diff line change @@ -1320,3 +1320,10 @@ key. Consider the following properties when using a hashed shard key:
1320
1320
Avoid using hashed shard keys when the hashed field has non-integral floating
1321
1321
point values, see :ref:`hashed indexes <hashed-index-warning>` for
1322
1322
more information.
1323
+
1324
+ ``db.killOp()`` Can Now Kill Foreground Index Builds
1325
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1326
+
1327
+ The :method:`db.killOp()` method will now terminate a foreground index
1328
+ build, in addition to the other operations supported in previous
1329
+ versions.
You can’t perform that action at this time.
0 commit comments