Chunk server: possible fix for append buffer space accounting bug: always use "flush start" if valid instead of the current buffer size, clear buffer before invoking get flush limit method to ensure that flush with the buffer will not be invoked, perform accounting update in set state method before recalculating new global flush limit.