File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 11# bedrock-edv-storage ChangeLog
22
3+ ## 20.1.1 - 2025-04-dd
4+
5+ ### Fixed
6+ - Gracefully handle case where ` documentCompatibilityVersion ` is set to ` 1 `
7+ and concurrent processes try to remove the old version ` 0 ` index (this
8+ should not cause the application to restart once).
9+
310## 20.1.0 - 2025-04-22
411
512### Added
Original file line number Diff line number Diff line change @@ -530,7 +530,15 @@ export async function _handleDocumentCompatibility({
530530 // then version `0` documents may be concurrently inserted and fail to be
531531 // properly indexed w/o running migration again -- this can lead to
532532 // corruption and should never be allowed to happen
533- await collection . dropIndex ( 'attributes' ) ;
533+ try {
534+ await collection . dropIndex ( 'attributes' ) ;
535+ } catch ( error ) {
536+ if ( error . codeName !== 'IndexNotFound' ) {
537+ logger . error (
538+ 'Failed to drop EDV doc version 0 index; perhaps already dropped; ' +
539+ 'will check again later.' , { error} ) ;
540+ }
541+ }
534542 return ;
535543 }
536544
You can’t perform that action at this time.
0 commit comments