583 call compact callback when done

Http adapater now waits for compaction to finish.