-
Notifications
You must be signed in to change notification settings - Fork 30
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
TaskQueue appears to be spinning on same task #342
Comments
This behavior has been ongoing for a number of days (at least 4) |
This occurs when a label update events are processed and the dataset is not found in the data. This can occur in 2 situations, when a dataSet has just been created and is not yet visible in the AlertingServiceImpl.onLabelsUpdated() transaction. It can also occur if a user clicks "Re-transform datasets" multiple times in the Run view and creates a race condition. The behaviour at the moment is to retry updating dataset labels every 1000ms. For a new data upload, this will eventually succeed, for the retransform case, the dataset has been deleted, so horreum get stuck in a loop, expecting a dataset that has already been deleted |
With regards to the two situations you describe. For the first situation, I would assume that would not cause it to go in a never ending loop or? |
@stalep yes, the loop is probably there to capture the first scenario. Wrt 2nd scenario, we should fix the race cond. but it does not hurt to limit the number of retries and log a warning if an endless loop is detected |
Describe the bug
Log is full of messages TaskQueue messages, spanning multiple hours;
I would not expect to see this behavior.
The text was updated successfully, but these errors were encountered: