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

DeleteAsync and MoveAsync fail if Site.Logger is null, AND ModificationThrottler will hang for all further requests #13

Closed
mikeclist opened this issue Aug 31, 2017 · 5 comments
Assignees
Labels

Comments

@mikeclist
Copy link

  1. These async methods fail if Site.Logger is null
    Site.Logger.Info(this, $"Page {title} has been deleted."); // assumes that Site.Logger is not null
    Site.Logger?.Info(this, $"Page {title} has been deleted."); // should be implemented as shown to the left (2 locations)

  2. If a task fails, the task is not marked as completed.
    The ModificationThrottler for the next task will wait for the previous task to complete.
    As the failed task will never complete, ModificationThrottler will be in an endless hang.

@CXuesong CXuesong self-assigned this Sep 1, 2017
@CXuesong CXuesong added the bug label Sep 1, 2017
@CXuesong
Copy link
Owner

CXuesong commented Sep 1, 2017

Okay this Logger?. thing is really error-prone, so now I consider using Microsoft.Extensions.Logging for logging.

And Oops I forgot to Dispose the returned value of Site.ModificationThrottler.QueueWorkAsync so virtually it will hang regardless of the operation is successful or not.

Will fix them before tomorrow.

@CXuesong
Copy link
Owner

CXuesong commented Sep 1, 2017

Published pre-release: 0.6.0-int2. Hope it solves the problem 😄 The logging interface is kept for now, but may be removed in the future.

@CXuesong
Copy link
Owner

CXuesong commented Sep 5, 2017

I'm going to close the issue for now. If the problem still exists, please re-open it :-)

@CXuesong CXuesong closed this as completed Sep 5, 2017
@mikeclist
Copy link
Author

I must say this was a very fast turn around to incorporate the fix, almost immediately I lodged the comment. Thank you for your high quality project :)

@CXuesong
Copy link
Owner

CXuesong commented Sep 6, 2017

Thanks, Mike. I'm glad you like it!

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

No branches or pull requests

2 participants