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

cover command err rc >= 124 like in scale-up #124

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

ja9fuchs
Copy link
Contributor

@ja9fuchs ja9fuchs commented Jun 5, 2024

As discussed in SUSE/SAPHanaSR#248.

Similar to the classic scale-up SAPHanaTopology code, this change includes coverage of RCs >=124 in the sht_monitor_clone function only.

This prevents the role attributes from being updated in case of command errors, which otherwise leads to invalid role values and causes a failover.

  • Replaced one -eq 124 with -ge 124.
  • Updated the log messages to a more generic error, not only timeout.
  • Added the RC to the log messages.
  • Replaced != 124 with -lt 124 to exclude the same range of 124+.

Copy link
Member

@fmherschel fmherschel left a comment

Choose a reason for hiding this comment

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

Looks good for me, thanks!

@fmherschel fmherschel merged commit b77e008 into SUSE:master Jun 6, 2024
1 check passed
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