Skip to content

Commit 581e75c

Browse files
author
Bob Grabar
committed
DOCS-1130 remove limitation on killop
1 parent e390361 commit 581e75c

File tree

8 files changed

+14
-27
lines changed

8 files changed

+14
-27
lines changed

source/administration/indexes.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,6 @@ of the ``query`` field and the ``msg`` field will indicate if the
458458
operation is an index build. The ``msg`` field also indicates the
459459
percent 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.

source/faq/indexes.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ background. See :ref:`index-creation-operations`.
104104

105105
If you build a large index without the background option, and if doing
106106
so 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

source/includes/note-foreground-index-kill-limitation.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

source/reference/current-op.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ Operations
8080
You can use the :method:`db.killOp()` in conjunction with the
8181
:data:`~currentOp.opid` field to terminate a currently running
8282
operation.
83-
84-
.. include:: /includes/note-foreground-index-kill-limitation.rst
85-
8683
The following JavaScript operations for the
8784
:program:`mongo` shell filter the output of
8885
specific 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

source/reference/limits.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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-
186180
Naming Restrictions
187181
~~~~~~~~~~~~~~~~~~~
188182

source/reference/method/db.collection.ensureIndex.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

source/reference/method/db.killOp.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

source/release-notes/2.4.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)