A bad tablet is always be chosen to do compaction, and failed again and again, which may block compaction of other tablets. Add a BE config 'min_compaction_failure_interval_ms' to avoid choosing bad tablet again at a certain interval, so that other tablets have chance to do the compaction. Also fix a bug that using avg() function on varchar column return unexpected exception.