-
Notifications
You must be signed in to change notification settings - Fork 223
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
ListenBucketNotificationsAsync usage #649
Comments
Interestingly when enabling trace logs via |
Looks like some timing issue. Working on it |
I cannot reproduce the issue here with my local setup. |
I reproduced the issue. Example:
Please give it a try and let us know. You may close the issue if it works. |
Did you have a chance to check it out? |
Closing... |
Having same issue. onCompleted is executed almost immediately after observable.Subscribe.
ResponseWriter is |
Thank you @codemnk |
@codemnk , To investigate the void async lambda function issue in our code and a possible for it, I first created a new wrapper function that encapsulates the response writer and calls and waits on it with
and added a new response writer,
Then I called
However, when I run both old and the new code, I don’t see any behavior differences and when the execution stops prematurely. So, I think the problem is not the void async lambda. The subscriber’s OnNext action is interrupted and the interrupt comes from the observable created by After our team discussed the issue, the decision is that waiting for the subscriber rx action is the easiest solution or the workaround at this point.
I’ll still be looking into this part of the code and logic to see what can be done. Please don't hesitate to discuss. You are more than welcome to give us your opinion. |
Thanks to @codemnk for providing a new scenario where void as lambda function may cause an issue for bucket notifications and for all his guidance, references, tips and the fix suggestion. |
Hi,
I'm running locally a MinIO instance and implemented the
ListenBucketNotifications
like it is described hereI'm uploading a file via the MinIO console but the
onNext
Action does not kick in due toonCompleted
is already executed.Actually
ListenBucketNotificationsAsync
is intended to get informed in caseEventType
isEventType.ObjectCreatedAll
, isn't it?Did I missed something or is there another way to get informed when a file is uploaded?
Thanks in advance.
The text was updated successfully, but these errors were encountered: