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

Y24-016 Validate that the TOL consumer can handle Traction API being unavailable #70

Closed
sdjmchattie opened this issue Mar 8, 2024 · 2 comments · Fixed by #74 or #76
Closed

Y24-016 Validate that the TOL consumer can handle Traction API being unavailable #70

sdjmchattie opened this issue Mar 8, 2024 · 2 comments · Fixed by #74 or #76
Assignees

Comments

@sdjmchattie
Copy link
Contributor

Description
Recent review of the code base for tol-lab-share would indicate that it probably doesn't handle Traction's API being unavailable very well. In this case, the message probably gets read from the broker, causes a failure while writing to Traction API, then the consumer will trigger a reconnection but will not necessarily wait up to 30 seconds before doing so. If this is happening, the consumer may rapid fire read from the queue and try to process the message very quickly and fill up logs.

We should simulate a fault on the Traction API in a dev environment to confirm the actual behaviour and use the TransientRabbitError exception to do time limited reconnections if the fault manifests.

Who the primary contacts are for this work
Stuart McHattie

@sdjmchattie
Copy link
Contributor Author

We also need to handle HTTP Response Code 502 which comes back if nginx cannot forward our request to a valid Traction API.

@sdjmchattie
Copy link
Contributor Author

Result of UAT testing:

Consumer went into 30 second loops while Traction API was unavailable and the messages stayed in the queue. Once Traction Service was re-enabled, the next loop consumed the messages and they ended up in Traction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant