Skip to content

DOCS-519 mongoimport stopOnError option #226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 13, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions source/reference/mongoimport.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,8 @@ Options

.. versionadded:: 2.2

Forces :program:`mongoimport` to cease operation following after
encountering the first error rather than continuing to import
despite errors.
Forces :program:`mongoimport` to stop importing at first error rather
than continuing to import despite errors.

.. option:: --jsonArray

Expand Down
9 changes: 5 additions & 4 deletions source/release-notes/2.2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,11 @@ information:
Write Concern Support for ``mongoimport`` and ``mongorestore``
``````````````````````````````````````````````````````````````

With the :option:`--stopOnError <mongoimport --stopOnError>`,
:program:`mongoimport` provides support for :ref:`write concern
<write-concern>`. Now if the import process encounters an error (e.g. network,
write error, etc), :program:`mongoimport` will
:program:`mongoimport` now provides an option to stop import
if the import process encounters an error (e.g. network,
write error, etc).
The :option:`--stopOnError <mongoimport --stopOnError>` option
will
produce an error rather than silently continue importing data. See
:issue:`SERVER-3937` for more information.

Expand Down