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

Improve reliability of dual-channel-replication pause resume tests #835

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

naglera
Copy link
Contributor

@naglera naglera commented Jul 28, 2024

Update the dual channel-replication tests to wait for the pause to begin before attempting to unpause.

proc wait_and_resume_process idx {
set pid [srv $idx pid]
wait_for_log_messages $idx {"*Process is about to stop.*"} 0 2000 1
exec kill -SIGCONT $pid
Copy link
Member

@ranshid ranshid Jul 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the sake of modularity, can we call resume_process here instead (I know it is basically doing just that)

Signed-off-by: naglera <[email protected]>
Copy link

codecov bot commented Jul 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.22%. Comparing base (e32518d) to head (0ca3a95).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #835      +/-   ##
============================================
+ Coverage     70.20%   70.22%   +0.01%     
============================================
  Files           112      112              
  Lines         61462    61462              
============================================
+ Hits          43152    43164      +12     
+ Misses        18310    18298      -12     

see 13 files with indirect coverage changes

@madolson madolson changed the title Stabilize dual-channel-replication pause resume tests Improve reliability of dual-channel-replication pause resume tests Jul 28, 2024
@madolson madolson merged commit 9211aed into valkey-io:unstable Jul 28, 2024
46 checks passed
@ranshid
Copy link
Member

ranshid commented Jul 29, 2024

Actually rethinking this is not a full protected against races since the print to log happen BEFORE the sigstop. Maybe we need to wait for process state to be 'T'?

mapleFU pushed a commit to mapleFU/valkey that referenced this pull request Aug 22, 2024
…alkey-io#835)

Update the dual channel-replication tests to wait for the pause to begin
before attempting to unpause.

---------

Signed-off-by: naglera <[email protected]>
Signed-off-by: mwish <[email protected]>
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.

3 participants