fix bugs in regard to parameters:run_compaction and secondary_storage_path