ENG-4536 Fix elastic scanner compaction handling.