Endless loop on StorageFailure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
taskflow |
Fix Released
|
Undecided
|
Ann Taraday |
Bug Description
If an error occures with writing atom detail in database(
persistence backend) flow execution enters an endless loop
throwing errors and retrying to save details.
020-07-31 12:33:46.780 28095 ERROR taskflow.storage Traceback (most recent call last):
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
ate_atom_details
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage self._update_
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
date_atom_details
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage .values(
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage return meth(self, multiparams, params)
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage return connection.
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage distilled_params,
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage e, util.text_
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage sqlalchemy_
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage raise exception
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage context = constructor(
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage for key in compiled_params
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage for key in compiled_params
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage return impl_processor(
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/local/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage value = six.text_
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/lib/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage return _default_
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/lib/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage chunks = self.iterencode(o, _one_shot=True)
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/lib/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage return _iterencode(o, 0)
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage File "/usr/lib/
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage o.__class_
2020-07-31 12:33:46.780 28095 ERROR taskflow.storage sqlalchemy.
Also if task was set to create some resources - it may spawn them endlessly.
Changed in taskflow: | |
assignee: | nobody → Ann Taraday (akamyshnikova) |
Reviewed: https:/ /review. opendev. org/744156 /git.openstack. org/cgit/ openstack/ taskflow/ commit/ ?id=c32454213e5 aa1b6cda770f56d def18f06c2c3c2
Committed: https:/
Submitter: Zuul
Branch: master
commit c32454213e5aa1b 6cda770f56ddef1 8f06c2c3c2
Author: Ann Taraday <email address hidden>
Date: Fri Jul 31 16:58:23 2020 +0400
Avoid endless loop on StorageFailure
If an error occures with writing atom detail in database(
persistence backend) flow execution enters an endless loop
throwing errors and retrying to save details.
Avoid this situation and log exception message.
Change-Id: Ic6b0a78d20124c c027468ecc6aeff 189c25d1a8a
Closes-bug: 1889773