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

Cache status not correctly updated when several CBs are working in parallel #4069

Closed
fgalan opened this issue Feb 22, 2022 · 2 comments
Closed
Labels
Milestone

Comments

@fgalan
Copy link
Member

fgalan commented Feb 22, 2022

Let's consider two CBs using the same DB (typical scenario in HA configurations):

  1. One active csub in DB
  2. Start CB1
  3. Start CB2
  4. Update entity in CB1 -> notif is sent (OK)
  5. Update entity in CB2 -> notif is sent (OK)
  6. csub updated to inactive in CB1
  7. Wait for a csub cache cycle
  8. Update entity in CB1 -> notif is not sent (OK)
  9. Update entity in CB2 -> notif is sent (NOK)

Additional info:

  • If we swap the role of CB1 and CB2 in the above sequence the problem is the same (but in this case CB1 is the one which fails, sending a notification that must not be sent)
  • If has been detected both in 3.5.1 and master
  • The problem doesn't occur if -noCache is used
@fgalan fgalan added the bug label Feb 22, 2022
@fgalan
Copy link
Member Author

fgalan commented Feb 22, 2022

Moreover if we continue the sequence:

  1. csub updated to inactive in CB2
  2. Wait for a csub cache cycle
  3. Update entity in CB2 -> notif is not sent [i.e. CB2 is back to the right behaviour]
  4. Update entity in CB1 -> notif is sent (NOK) [i.e. CB1 previously working right now works wrong]

@fgalan fgalan changed the title Cache status not correctly updated when several CBs are working in paralell Cache status not correctly updated when several CBs are working in parallel Feb 22, 2022
@fgalan fgalan mentioned this issue Feb 22, 2022
3 tasks
@fgalan fgalan added this to the 3.6.0 milestone Feb 25, 2022
@fgalan
Copy link
Member Author

fgalan commented Feb 25, 2022

PR #4070

@fgalan fgalan closed this as completed Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant