Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit 7ad9066

Browse files
committed
DOCSP-48355-treat-non-known-cancellations-fatal
1 parent ea4d675 commit 7ad9066

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/reference/mongosync/mongosync-behavior.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,15 @@ error occurs, the ``mongosync`` log may contain the word "error' but
372372
``mongosync`` is still able to complete the sync. In the case that a
373373
sync does not complete, ``mongosync`` writes a fatal log entry.
374374

375+
``mongosync`` only exits with an info level log when it sees a normal
376+
cancellation and crashes with a fatal level log for all other cases.
377+
378+
The known normal cancellations are:
379+
380+
- If the user calls ``pause``
381+
- If a test calls ``cancel`` as part of normal operation
382+
- If ``mongosync`` encounters signals from the ``sigChan`` in ``cmd``/``mongosync``/``main.go``
383+
375384
.. _c2c-mongosync-ddl:
376385

377386
Data Definition Language (DDL) Operations

0 commit comments

Comments
 (0)