-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Not Applicable
-
None
-
Storage Engines - Persistence
-
SE Persistence backlog
-
None
While creating a regression test for WT-16974, I have uncovered a potential bug with interaction between sweep server and calculation of checkpoint size.
The assertion error is as follows:
/*
* For disaggregated storage, save the total bytes to the checkpoint size field. Track
* the delta between this checkpoint and the previous one, this delta will be applied to
* the database level size once the checkpoint succeeds.
*/
if (F_ISSET(btree, WT_BTREE_DISAGGREGATED)) {
WT_ASSERT(session, ckpt->size == __wt_atomic_load_uint64(&btree->bytes_total));
session->ckpt.ckpt_size_delta += (int64_t)ckpt->size - (int64_t)prev_ckpt_size;
}
I have attached reproducer for this issue.