Sega76 commented on a change in pull request #8294:
URL: https://github.com/apache/ignite/pull/8294#discussion_r528549493
##########
File path: modules/ducktests/tests/ignitetest/services/utils/control_utility.py
##########
@@ -127,6 +131,71 @@ def tx_kill(self, **kwargs):
res = self.__parse_tx_list(output)
return res if res else output
+ def validate_indexes(self, check_assert: bool = None):
+ """
+ Validate indexes.
+ """
+ data = self.__run("--cache validate_indexes")
+
+ if check_assert is not None:
+ assert (('no issues found.' in data) == check_assert), data
+
+ def idle_verify(self, check_assert: bool = None):
+ """
+ Idle verify.
+ """
+ data = self.__run("--cache idle_verify")
+
+ if check_assert is not None:
+ assert (('idle_verify check has finished, no conflicts have been
found.' in data) == check_assert), data
+
+ def idle_verify_dump(self, node=None, return_path: bool = False):
+ """
+ Idle verify dump.
+ """
+ data = self.__run("--cache idle_verify --dump", node=node)
+
+ if return_path & ('VisorIdleVerifyDumpTask successfully' in data):
+ match = re.search(r'/.*.txt', data)
+ return match[0]
+
+ return data
+
+ def snapshot_create(self, snapshot_name: str, sync_mode: bool = True,
time_out: int = 60):
Review comment:
fixed
##########
File path: modules/ducktests/tests/ignitetest/services/utils/control_utility.py
##########
@@ -127,6 +131,71 @@ def tx_kill(self, **kwargs):
res = self.__parse_tx_list(output)
return res if res else output
+ def validate_indexes(self, check_assert: bool = None):
+ """
+ Validate indexes.
+ """
+ data = self.__run("--cache validate_indexes")
+
+ if check_assert is not None:
+ assert (('no issues found.' in data) == check_assert), data
+
+ def idle_verify(self, check_assert: bool = None):
+ """
+ Idle verify.
+ """
+ data = self.__run("--cache idle_verify")
+
+ if check_assert is not None:
+ assert (('idle_verify check has finished, no conflicts have been
found.' in data) == check_assert), data
+
+ def idle_verify_dump(self, node=None, return_path: bool = False):
+ """
+ Idle verify dump.
+ """
+ data = self.__run("--cache idle_verify --dump", node=node)
+
+ if return_path & ('VisorIdleVerifyDumpTask successfully' in data):
+ match = re.search(r'/.*.txt', data)
+ return match[0]
+
+ return data
+
+ def snapshot_create(self, snapshot_name: str, sync_mode: bool = True,
time_out: int = 60):
+ """
+ Create snapshot.
+ """
+ res = self.__run(f"--snapshot create {snapshot_name}")
+
+ self.logger.info(res)
Review comment:
fixed
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]