Skip to content

Commit 4f6e56c

Browse files
committed
Merge branch 'main' into REP-5218-transactions
2 parents fec0128 + d733363 commit 4f6e56c

File tree

8 files changed

+352
-180
lines changed

8 files changed

+352
-180
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ Any collection metadata mismatches will occur in a task with the type '`verifyCo
257257
258258
In this case, '`failed_docs`' contains all the meta data mismatches, in this case an index named '`x_1`'.
259259
260+
# Resumability
261+
262+
The migration-verifier periodically persists its change stream’s resume token so that, in the event of a catastrophic failure (e.g., memory exhaustion), when restarted the verifier will receive any change events that happened while the verifier was down.
263+
260264
# Performance
261265
262266
The migration-verifier optimizes for the case where a migration’s initial sync is completed **and** change events are relatively infrequent. If you start verification before initial sync finishes, or if the source cluster is too busy, the verification may freeze.

internal/logger/logger.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414
const (
1515
// DefaultLogLevel is the default log level
1616
DefaultLogLevel = zerolog.InfoLevel
17+
18+
LogFileName = "migration-verifier.log"
1719
)
1820

1921
// DefaultLogWriter is the default log io.Writer implementor
@@ -90,7 +92,7 @@ func NewRotatingWriter(dirPath string) (io.Writer, error) {
9092
}
9193

9294
return &lumberjack.Logger{
93-
Filename: path.Join(dirPath, "mongosync.log"),
95+
Filename: path.Join(dirPath, LogFileName),
9496
}, nil
9597
}
9698

0 commit comments

Comments
 (0)