Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2024.1] ccmlib/node: check both pending and active tasks when waiting for compactions #616

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

cezarmoise
Copy link
Contributor

Currently, when using wait_for_compactions, only pending tasks are considered. If there are active compaction tasks, the function will return anyway and this causes flakyness in tests, as sometimes the active task finishes before the next operation, but sometimes it doesn't.

  • Rename Node._parse_pending_tasks to Node._parse_tasks
  • Count all tasks, pending and active
  • Allow searching for tasks based on only keyspace
  • Update and refactor test to allow more varied cases

closes: #610
refs: https://github.com/scylladb/scylla-dtest/issues/4702

cherry-picked ee7ebef^..4b1ac16

@cezarmoise cezarmoise requested a review from fruch September 24, 2024 08:51
@cezarmoise cezarmoise self-assigned this Sep 24, 2024
@cezarmoise
Copy link
Contributor Author

PR checks fail with

Error: This request has been automatically failed because it uses a deprecated version of actions/upload-artifact: v2. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/

fruch and others added 3 commits September 24, 2024 14:42
actions/upload-artifact@v2 is deprecated and can't be used anymore
…pactions

- Rename Node._parse_pending_tasks to Node._parse_tasks
- Count all tasks, pending and active
- Allow searching for tasks based on only keyspace
- Update and refactor test to allow more varied cases
@fruch fruch force-pushed the pr-611-next-2024.1 branch from 7fd1a1a to ecdd75c Compare September 24, 2024 11:42
@fruch
Copy link
Contributor

fruch commented Sep 24, 2024

branch-2024.1 was missing a fix to the CI, adding it here.

@fruch
Copy link
Contributor

fruch commented Sep 24, 2024

now it's one broken test, that try to run the latest scylla, and expect it to have JMX

it's a series of change not going to backport, on next backports we should disable that test

@fruch fruch merged commit e1347c6 into scylladb:next-2024.1 Sep 24, 2024
0 of 3 checks passed
@cezarmoise cezarmoise deleted the pr-611-next-2024.1 branch September 24, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants