[Case](wal) Add wal group commit sink case with low disk space fault injection (#29731)

This commit is contained in:
abmdocrt
2024-01-11 11:37:28 +08:00
committed by yiguolei
parent 8c0b046ad4
commit c9a949130b
3 changed files with 67 additions and 0 deletions

View File

@ -521,6 +521,7 @@ Status LoadBlockQueue::close_wal() {
}
bool LoadBlockQueue::has_enough_wal_disk_space(size_t pre_allocated) {
DBUG_EXECUTE_IF("LoadBlockQueue.has_enough_wal_disk_space.low_space", { return false; });
auto* wal_mgr = ExecEnv::GetInstance()->wal_mgr();
size_t available_bytes = 0;
{