Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

xcute: Save sent tasks before they are processed #2101

Conversation

AymericDu
Copy link
Member

SUMMARY

Save sent tasks before they are processed.

In some cases, the task was processed before updating the list of sent tasks.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • xcute
SDS VERSION
openio 5.7.1.dev8

if exc is not None:
self.logger.warn(
'[job_id=%s] Job has not been updated '
'with the sent tasks: %s', job_id, exc)
'[job_id=%s] Job could not updated '
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could not update (without the 'd').

old_last_sent)
if exc is not None:
self.logger.warn(
'[job_id=%s] Job could not aborted '
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could not abort.


_, exc = self.handle_backend_errors(self.backend.free, job_id)
if exc is not None:
self.logger.warn(
'[job_id=%s] Job has not been freed: %s', job_id, exc)
'[job_id=%s] Job could not freed: %s', job_id, exc)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could not be freed.

@AymericDu AymericDu force-pushed the xcute-save-sent-tasks-before-they-are-processed branch from 2198629 to e0ceebb Compare December 14, 2020 15:54

_, exc = self.handle_backend_errors(self.backend.free, job_id)
if exc is not None:
self.logger.warn(
'[job_id=%s] Job has not been freed: %s', job_id, exc)
'[job_id=%s] Job not be freed: %s', job_id, exc)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Job has not been freed" was correct. "Job not freed" would be correct. "Job not be freed" sounds funny.

In some cases, the task was processed
before updating the list of sent tasks
@AymericDu AymericDu force-pushed the xcute-save-sent-tasks-before-they-are-processed branch from e0ceebb to cb207f9 Compare December 14, 2020 17:38
@codecov-io
Copy link

Codecov Report

Merging #2101 (cb207f9) into 5.x (9c50d0e) will increase coverage by 0.80%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##              5.x    #2101      +/-   ##
==========================================
+ Coverage   78.67%   79.47%   +0.80%     
==========================================
  Files         379      394      +15     
  Lines       73787    75442    +1655     
  Branches     6995     6994       -1     
==========================================
+ Hits        58045    59950    +1905     
+ Misses      15641    15247     -394     
- Partials      101      245     +144     
Impacted Files Coverage Δ
tests/functional/content/test_service_id.py 79.29% <0.00%> (-5.91%) ⬇️
oio/blob/auditor.py 58.29% <0.00%> (-1.71%) ⬇️
meta1v2/meta1_server.c 69.68% <0.00%> (-1.63%) ⬇️
rawx-lib/src/attr_handler.c 69.05% <0.00%> (-0.95%) ⬇️
meta2v2/meta2_filters_extract.c 82.68% <0.00%> (-0.78%) ⬇️
sqliterepo/cache.c 84.84% <0.00%> (-0.47%) ⬇️
tests/functional/api/test_rdir.py 97.12% <0.00%> (-0.36%) ⬇️
proxy/metacd_http.c 91.44% <0.00%> (-0.30%) ⬇️
rawx/chunkrepo.go 61.12% <0.00%> (ø)
rawx/logger.go 64.71% <0.00%> (ø)
... and 80 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c50d0e...cb207f9. Read the comment docs.

@AymericDu AymericDu merged commit 94c0926 into open-io:5.x Dec 24, 2020
@AymericDu AymericDu deleted the xcute-save-sent-tasks-before-they-are-processed branch December 24, 2020 08:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants