fix(replication): flag additional Vault reflection failures

This commit is contained in:
Artem Ovchinnikov committed 2026-10-21 21:39:53 +03:00
1 parent 95c7d6cb69
commit d527fa9764
2 files changed
+28 -1

No files matched your search

@@ -521,6 +521,8 @@ export class ReplicateResultProcessor {
releaser = await this._semaphore.acquire();
await this._applyToDatabase(doc);
} catch (e) {
// An exception during application must not be mistaken for a fully reflected Vault.
this.context.onVaultReflectionFailure?.();
this.log(`Error while processing replication result`, LOG_LEVEL_NOTICE);
this.logError(e);
} finally {
@@ -630,6 +632,7 @@ export class ReplicateResultProcessor {
// Note that this is not a common case.
return true;
} else {
this.context.onVaultReflectionFailure?.();
this.log(
`Failed to get existing document for ${path} (${shortenId(dbDoc._id)}, ${shortenRev(dbDoc._rev)}) `,
LOG_LEVEL_NOTICE