You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an HTTP client sends more records in one HTTP request, it could happen that one of the record cannot be sent for any reasons (i.e. not existing partition, ...).
For example, let's consider the following HTTP producer request body:
Where the topic doesn't have partition 1, but just partition 0.
The second record send will fail and the bridge returns the following body in the HTTP response:
The second element is not a partition/offset pair but the error about why the second record was not sent.
Today, this behavior is not reflected in the OpenAPI where the "offesets" array is declared as an array of OffsetRecordSent while it could also be a Error
The only concern I have about this is backward compatibility.
I mean ... if users are using the current OpenApi specification to auto-generate an HTTP client, the proposed change will change such a generation.
It's also true that a client generated by the current OpenApi is wrong, because in case of error on sending a specific record, the client would not be able to handle it because not defined by the spec and not expected.
A correct client would be generated by making the proposed change.
@strimzi/maintainers wdyt?
When an HTTP client sends more records in one HTTP request, it could happen that one of the record cannot be sent for any reasons (i.e. not existing partition, ...).
For example, let's consider the following HTTP producer request body:
Where the topic doesn't have partition 1, but just partition 0.
The second record send will fail and the bridge returns the following body in the HTTP response:
The second element is not a partition/offset pair but the error about why the second record was not sent.
Today, this behavior is not reflected in the OpenAPI where the "offesets" array is declared as an array of
OffsetRecordSent
while it could also be aError
It should be something like:
The text was updated successfully, but these errors were encountered: