-
Notifications
You must be signed in to change notification settings - Fork 304
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
DAOS-16878 pool: Reduce unexpected DER_NO_SERVICEs #15665
base: master
Are you sure you want to change the base?
Conversation
Ticket title is 'LRZ: Pool Service not accessible' |
Test stage Build on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15665/3/execution/node/347/log |
Test stage Build RPM on EL 9 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15665/3/execution/node/332/log |
Test stage Build RPM on Leap 15.5 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15665/3/execution/node/322/log |
Test stage Build RPM on EL 8 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15665/3/execution/node/386/log |
Test stage Build DEB on Ubuntu 20.04 completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15665/3/execution/node/329/log |
Test stage Build on Leap 15.5 with Intel-C and TARGET_PREFIX completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15665/3/execution/node/509/log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a look at the PR in draft form, looks good since PS step_up/step_down will no longer manipulate the contents of pool_svc_failed_list. So with this PR the only possible up but errored svc->ps_error value could be -DER_DF_INCOMPT?
New NLT issue: https://daosio.atlassian.net/browse/DAOS-16926 |
@kccain, yes, only
|
I restarted the Jenkins pipeline due to a pipeline-lib bug fix |
Thanks, @daltonbohning. |
Restart a system and inject a
Killing the PS leader to trigger another step up without injecting faults:
Killing the PS leader again to trigger yet another step up with a
Destroying an up-but-with-error pool also works. |
It has been observed that pool_svc_step_up_cb may encounter a -DER_NOTLEADER and pass it to ds_pool_failed_add. This error is a replica error and may be transient; it doesn't indicate that the PS is unavailable. This patch addresses the observed scenario by replacing the ds_pool_failed_add call from pool_svc_step_up_cb with a special up-but-with-error mode for the PS, which can only serve requests by returning an error. - Add pool_svc.ps_error for indicating the special up-but-with-error mode. Check and return it in pool_svc_lookup_leader. Handle it specially in callers of pool_svc_lookup. - Use this new mode only for a conservative set of errors. Including an error by mistake is worse than missing an error. - Add pool UUIDs to a few log messages to make future debugging easier. The ds_pool_failed_add mechanism should be used for replica errors only. And, such errors should not immediately stop PS clients from trying other replicas. This issue is relatively tricky and will not be addressed by the current patch. Features: pool Skip-nlt: true Signed-off-by: Li Wei <[email protected]> Required-githooks: true
Test stage Functional Hardware Large completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15665/8/execution/node/1389/log |
Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-15665/8/execution/node/1373/log |
The Functional Hardware Large/Medium failures are all non-PR tests pulled in by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable.
It has been observed that pool_svc_step_up_cb may encounter a
-DER_NOTLEADER and pass it to ds_pool_failed_add. This error is a
replica error and may be transient; it doesn't indicate that the PS is
unavailable. This patch addresses the observed scenario by replacing the
ds_pool_failed_add call from pool_svc_step_up_cb with a special
up-but-with-error mode for the PS, which can only serve requests by
returning an error.
Add pool_svc.ps_error for indicating the special up-but-with-error
mode. Check and return it in pool_svc_lookup_leader. Handle it
specially in callers of pool_svc_lookup.
Use this new mode only for a conservative set of errors. Including
an error by mistake is worse than missing an error.
Add pool UUIDs to a few log messages to make future debugging
easier.
The ds_pool_failed_add mechanism should be used for replica errors only.
And, such errors should not immediately stop PS clients from trying
other replicas. This issue is relatively tricky and will not be
addressed by the current patch.
Features: pool
Skip-nlt: true
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: