Batch SDK - AttemptContainerDetail - wrongly defined, reason instead of statusReason #3029
Labels
bug
This issue is a bug.
p2
This is a standard priority issue
response-requested
Waiting on additional info or feedback. Will move to "closing-soon" in 5 days.
Describe the bug
Hello,
We are redirecting AWS Batch events to an SQS queue.
Within the message we can find the job detail (
JobDetail
), nested inside can be found one or moreAttemptContainerDetail
, somehow in the message the reason is serialized asstatusReason
, while the Java object field is defined asreason
(getter isgetReason
), hence it isn't serialized properly.Is it expected?
Expected Behavior
I'd either except EventBridge to properly serialize the JobDetail object.
Or change the
JobDetail
object definition, to match the one used inEventBridge
.Current Behavior
Applicative code define: AttemptContainerDetail#reason
While EventBridge define: AttemptContainerDetail#statusReason
Reproduction Steps
Just compare event from AWS Batch to the applicative code on Github
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
1.12.512
JDK version used
17
Operating System and version
Linux/X86_64
The text was updated successfully, but these errors were encountered: