Skip to content

pybind/rados: notify callback reconnect#47668

Merged
neha-ojha merged 1 commit intoceph:mainfrom
NitzanMordhai:wip-nitzan-test-rados-watch-notify-callbacks
Sep 14, 2022
Merged

pybind/rados: notify callback reconnect#47668
neha-ojha merged 1 commit intoceph:mainfrom
NitzanMordhai:wip-nitzan-test-rados-watch-notify-callbacks

Conversation

@NitzanMordhai
Copy link
Contributor

@NitzanMordhai NitzanMordhai commented Aug 18, 2022

when testing with socket injection, reconnect won't call error callback
for each reconnect, the callback will be called.
changing the callback count of notify by the data and increass only
when the data is changed, if the data is the same, we probably reconnecting
due to socket injection.

Fixes: https://tracker.ceph.com/issues/45721
Signed-off-by: Nitzan Mordechai nmordec@redhat.com

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@github-actions github-actions bot added the tests label Aug 18, 2022
when testing with socket injection, reconnect won't call error callback
for each reconnect, the callback will be called.
changing the callback count of notify by the data and increass only
when the data is changed, if the data is the same, we probably reconnecting
due to socket injection.

Fixes: https://tracker.ceph.com/issues/45721
Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-test-rados-watch-notify-callbacks branch from c72279f to 583b903 Compare August 18, 2022 11:43
@ljflores
Copy link
Member

ljflores commented Sep 6, 2022

@NitzanMordhai to test, we could try running a test like http://pulpito.front.sepia.ceph.com/yuriw-2022-08-22_16:21:19-rados-wip-yuri8-testing-2022-08-22-0646-distro-default-smithi/6985089/ 50-100 times to verify instead of running against the whole rados suite.

@NitzanMordhai
Copy link
Contributor Author

@NitzanMordhai to test, we could try running a test like http://pulpito.front.sepia.ceph.com/yuriw-2022-08-22_16:21:19-rados-wip-yuri8-testing-2022-08-22-0646-distro-default-smithi/6985089/ 50-100 times to verify instead of running against the whole rados suite.

@ljflores good idea, will do it

@NitzanMordhai
Copy link
Contributor Author

@neha-ojha
Copy link
Member

@ljflores http://pulpito.front.sepia.ceph.com/nmordech-2022-09-08_10:55:54-rados:basic-wip-nitzan-test-rados-watch-notify-callbacks-distro-default-smithi/ 150 jobs scheduled, 11 failed with not related error

@NitzanMordhai do we need any more testing for this PR?

@NitzanMordhai
Copy link
Contributor Author

@NitzanMordhai do we need any more testing for this PR?

@neha-ojha i think that my run is enough to prove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants