add test major compaction with error.