You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Failed to seek to the persisted position of ID tracker mappings: {err}"
433
-
))
434
-
})?;
435
-
}else{
436
-
returnErr(OperationError::service_error(format!(
437
-
"Mutable ID tracker mappings file size is less than persisted mappings size, cannot append new mappings (file size: {file_len}, persisted mappings size: {file_start_appending})",
438
-
)));
429
+
match file_len.cmp(&file_start_appending){
430
+
// File size is what we expect, continue normally
431
+
Ordering::Equal => {}
432
+
// File is larger than expected, previous flush might not have completed properly
433
+
// May happen if system is out of disk space and the file cannot be grown
434
+
// Try to truncate to what we expect to clean up but ignore if we fail, then seek to the
"Failed to seek to the persisted position of ID tracker mappings: {err}",
447
+
))
448
+
})?;
449
+
}
450
+
// File is smaller than expected, indicates a bug we cannot recover from
451
+
Ordering::Less => {
452
+
returnErr(OperationError::service_error(format!(
453
+
"Mutable ID tracker mappings file size is less than persisted mappings size, cannot append new mappings (file size: {file_len}, persisted mappings size: {file_start_appending})",
0 commit comments