Add a FIXME about ENOSPC

hier-failure-domains
Vitaliy Filippov 2023-05-13 23:59:20 +03:00
parent e69d459d43
commit 11481170f5
1 changed files with 5 additions and 0 deletions

View File

@ -197,6 +197,11 @@ resume_5:
}
if (op_data->errors > 0)
{
// FIXME: Handle ENOSPC. If one of the subops fail with ENOSPC here,
// next writes to the same object will also fail because they'll try
// to overwrite the same version number which will result in EEXIST.
// To fix it, we should mark the object as degraded for replicas,
// and rollback successful part updates in case of EC.
pg_cancel_write_queue(pg, cur_op, op_data->oid, op_data->errcode);
return;
}