-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Putting an event on an nonexistent EventBridge event bus returns a success #2657
Comments
Thanks for opening an issue. I think I would agree that this is a service issue. Let me put this in front of the EventBridge team. |
Do you have any request IDs that would help the service team investigate? It should be on the response context. You can also see them in the wire log when settings the client's |
The service team was able to reproduce using the CLI. I will update this thread when a fix has been planned. |
Thank you. |
Service team has identified 3 possible avenues. A fix requires a behavior change. For transparency, the options are:
The service team wants to collect some metrics of how many customers have this issue before they make a decision. Are you currently blocked by this or anything? Or was it just a bug that you encountered and can be avoided? |
I'm not currently blocked by this. As I was exploring the SDK, I noticed this behavior. Is it possible to return a failed entry count when an event is placed on an event bus, but doesn't match any of the rules? |
I also just came across this behavior, though in the .NET Sdk. I'm not too opinionated on how it gets resolved on the service side, but the current behavior is a serious violation of the "principle of least surprise", to say the least. Any information on if/when this behavior change is going to get worked into the service and what the change will be? |
The service team has not prioritized a change. I can revive that internal ticket citing another customer ran into the issue and perhaps they will further prioritize it. |
@mullermp Using the go v2 SDK and have the same issue. If I don't get a failure when the bus I'm publishing to does not exist, how can I guarantee that any of my events are getting published? I feel like I can't trust eventbridge as a service. This is a pretty serious issue. |
My vote would be to raise something like |
@mullermp We are encountering this issue on a large implementation. We have concerns that our API client code is returning false-positive success and there's no way to detect failure and retry/alarm. Can you ask the service team to consider the following approach? I believe this would put the EventBridge API closer in line with the SNS API:
This ensures support for existing client batch behavior while adding support for client-side failure handling. |
I've forwarded that feedback to the service team. I'm sorry that I cannot do much else as I am not an owner of the event bridge service.. Please also add your frustrations here: aws/aws-sdk#186 I'm also going to close this ticket in favor of the one in aws-sdk since this issue applies generally and not to the Ruby SDK - I do want to make sure all feedback lands there instead of spread across multiple repos. |
|
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
I'm using the SDK to put events on an event bus that I've created. When I instantiate the EventBridge client, I can get a list of all available event buses in my account. I noticed an issue that EventBridge isn't reporting errors that I would expect it to report. For example, I changed the event bus name to one that didn't show up in the list of event buses I pulled. When I executed the
put_events
method for a nonexistent event bus, I received a success message and no error. I looked at the source code for theput_events
command and I couldn't find any issues with it. I think this is probably an error on the AWS api. Receiving a success response when I know my event fell off the radar seems like buggy behavior.Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-eventbridge
Version of Ruby, OS environment
-paste the output of ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]
To Reproduce (observed behavior)
Expected behavior
I expect to see an error when EventBridge doesn't put the event on an event bus.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: