try again error detection needs refactoring

Bug #1814110 reported by Achilleas Anagnostopoulos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

The fix (https://github.com/juju/worker/pull/10) for https://bugs.launchpad.net/juju/+bug/1812980 detects "try again" errors by scanning the contents of the error messages. This approach works but can easily break in the future if the message gets updated.

A much better approach would be to refactor juju/errors with a typed TryAgain error and a IsTryAgain helper that the worker can use.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.