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 1
1
# bedrock-edv-storage ChangeLog
2
2
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
+
3
10
## 20.1.0 - 2025-04-22
4
11
5
12
### Added
Original file line number Diff line number Diff line change @@ -530,7 +530,15 @@ export async function _handleDocumentCompatibility({
530
530
// then version `0` documents may be concurrently inserted and fail to be
531
531
// properly indexed w/o running migration again -- this can lead to
532
532
// 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
+ }
534
542
return ;
535
543
}
536
544
You can’t perform that action at this time.
0 commit comments