Skip to content

Commit

Permalink
alter stress: move indexes and projections to separate scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
strtgbb committed May 7, 2024
1 parent 17a7bd3 commit 9f841e1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/run-alter-stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ on:
type: choice
options:
- safe
- add-remove-replicas
- full-disk
- network-faults
- insert-faults
- indexes and projections
- add remove replicas
- full disk
- network faults
- insert faults
storage_provider:
description: "Storage Provider to use (default: minio)"
type: choice
Expand Down
2 changes: 1 addition & 1 deletion alter/stress/tests/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ def drop_random_index(self):
node = get_random_node_for_table(table_name=table_name)

with And("waiting for any other mutations on that index to finish"):
wait_for_mutations_to_finish(node=node, command_like=index_name)
wait_for_mutations_to_finish(node=node, command_like=index_name, timeout=300)

with And("dropping the index"):
r = node.query(
Expand Down
22 changes: 20 additions & 2 deletions alter/stress/tests/stress_alter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

def build_action_list(
columns=True,
projections=True,
indexes=True,
projections=False,
indexes=False,
restarts=False,
network_restarts=False,
add_remove_replicas=False,
Expand Down Expand Up @@ -274,6 +274,24 @@ def safe(self):
)


@TestScenario
def indexes_and_projections(self):
"""
Perform only actions using indexes and projections.
Column actions are disabled to avoid mutation timeouts.
"""

alter_combinations(
actions=build_action_list(
columns=False,
projections=True,
indexes=True,
),
limit=None if self.context.stress else 20,
)


@TestScenario
def insert_faults(self):
"""
Expand Down

0 comments on commit 9f841e1

Please sign in to comment.