bucket: if write failed completely, i.e. there are no success groups, run over all bucket groups and add them write-error-pain
bucket: when there is backend error in stats, update pain accordingly