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

ListenBucketNotificationsAsync only listens for the last event #851

Open
poganytamas opened this issue Aug 25, 2023 · 0 comments
Open

ListenBucketNotificationsAsync only listens for the last event #851

poganytamas opened this issue Aug 25, 2023 · 0 comments

Comments

@poganytamas
Copy link

I am using Minio 5.0. When I try to subscribe to bucket events with ListenBucketNotificationsAsync it only works for the last type of event.
Example:
var events = new List<EventType> { EventType.ObjectRemovedAll, EventType.ObjectCreatedPut, EventType.ObjectCreatedCopy }; var listenArgs = new ListenBucketNotificationsArgs() .WithBucket(_bucketName) .WithEvents(events); var listenObservable = _minIoClient.ListenBucketNotificationsAsync(listenArgs); _listenSubscription = listenObservable.Subscribe( notification => {.....

This piece of code only listens to ObjectCreatedCopy. Other events, like ObjectCreatedPut gots ignored. If I remove ObjectCreatedCopy so that the ObjectCreatedPut is the last event in the list, then the same code captures ObjectCreatedPut events (but not ObjectRemoved events)

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

No branches or pull requests

1 participant