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
458458operation is an index build. The ``msg`` field also indicates the
459459percent of the build that is complete.
460460
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
463463: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`.
104104
105105If you build a large index without the background option, and if doing
106106so causes the database to stop responding,
107- wait for the index to finish building.
107+ do one of the following:
108108
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.
112113
113114.. _faq-index-min-max:
114115
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -80,9 +80,6 @@ Operations
8080You can use the :method:`db.killOp()` in conjunction with the
8181:data:`~currentOp.opid` field to terminate a currently running
8282operation.
83-
84- .. include:: /includes/note-foreground-index-kill-limitation.rst
85-
8683The following JavaScript operations for the
8784:program:`mongo` shell filter the output of
8885specific types of operations:
@@ -101,8 +98,6 @@ depending on the kind of operation and its state.
10198 :method:`db.killOp()` in the :program:`mongo` shell to terminate the
10299 operation.
103100
104- .. include:: /includes/note-foreground-index-kill-limitation.rst
105-
106101.. data:: currentOp.active
107102
108103 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
177177
178178 .. see:: :operator:`$or` and :doc:`/core/geospatial-indexes`.
179179
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-
186180Naming Restrictions
187181~~~~~~~~~~~~~~~~~~~
188182
Original file line number Diff line number Diff line change @@ -154,10 +154,6 @@ db.collection.ensureIndex()
154154 - Non-background indexing operations will block all other
155155 operations on a database.
156156
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-
161157 .. [#] The default index version depends on the version of
162158 :program:`mongod` running when creating the index. Before version
163159 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()
1313 :doc:`/reference/current-op` for full documentation of the output
1414 of :method:`db.currentOp()`.
1515
16- .. include:: /includes/note-foreground-index-kill-limitation.rst
17-
1816 .. 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:
13201320 Avoid using hashed shard keys when the hashed field has non-integral floating
13211321 point values, see :ref:`hashed indexes <hashed-index-warning>` for
13221322 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