[Issue 10537] Short writes not handled, causing error on commit