diff --git a/ydb/core/tx/columnshard/engines/changes/abstract/compaction_info.cpp b/ydb/core/tx/columnshard/engines/changes/abstract/compaction_info.cpp index 664ef41d4415..334fab3e9887 100644 --- a/ydb/core/tx/columnshard/engines/changes/abstract/compaction_info.cpp +++ b/ydb/core/tx/columnshard/engines/changes/abstract/compaction_info.cpp @@ -5,8 +5,12 @@ namespace NKikimr::NOlap { bool TPlanCompactionInfo::Finish() { - AFL_VERIFY(Count); - return --Count == 0; + if (Count > 0) { + return --Count == 0; + } else { + AFL_VERIFY(false); + return false; + } } } // namespace NKikimr::NOlap