Skip to content
Snippets Groups Projects
Unverified Commit aa51a7e3 authored by Shylock Hg's avatar Shylock Hg Committed by GitHub
Browse files

The compaction and flush job need space too. (#529)

parent 07bd98a3
No related branches found
No related tags found
No related merge requests found
......@@ -36,9 +36,9 @@ private:
case meta::cpp2::AdminCmd::REBUILD_TAG_INDEX:
case meta::cpp2::AdminCmd::REBUILD_EDGE_INDEX:
case meta::cpp2::AdminCmd::STATS:
return true;
case meta::cpp2::AdminCmd::COMPACT:
case meta::cpp2::AdminCmd::FLUSH:
return true;
case meta::cpp2::AdminCmd::DATA_BALANCE:
case meta::cpp2::AdminCmd::UNKNOWN:
return false;
......
Feature: Submit job space requirements
Scenario: submit job require space
Given an empty graph
When executing query:
"""
SUBMIT JOB COMPACT;
"""
Then a SemanticError should be raised at runtime:
When executing query:
"""
SUBMIT JOB FLUSH;
"""
Then a SemanticError should be raised at runtime:
When executing query:
"""
SUBMIT JOB STATS;
"""
Then a SemanticError should be raised at runtime:
When executing query:
"""
REBUILD TAG INDEX not_exists_index;
"""
Then a SemanticError should be raised at runtime:
When executing query:
"""
REBUILD EDGE INDEX not_exists_index;
"""
Then a SemanticError should be raised at runtime:
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment