diff --git a/src/validator/AdminJobValidator.h b/src/validator/AdminJobValidator.h
index 73b129a2c9b758720cb845c097bb84b5d962a6e5..b2eac0b04f3b23f0fad1004adc26ed57750dd251 100644
--- a/src/validator/AdminJobValidator.h
+++ b/src/validator/AdminJobValidator.h
@@ -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;
diff --git a/tests/tck/features/job/SpaceRequire.feature b/tests/tck/features/job/SpaceRequire.feature
new file mode 100644
index 0000000000000000000000000000000000000000..dbe07b650f9e24e1ce1f6d758f2d126647d50004
--- /dev/null
+++ b/tests/tck/features/job/SpaceRequire.feature
@@ -0,0 +1,29 @@
+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: