-
Notifications
You must be signed in to change notification settings - Fork 121
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
feat: added a new text embedded format #836
feat: added a new text embedded format #836
Conversation
Signed-off-by: Antonio Pedro <[email protected]>
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
Signed-off-by: António Pedro <[email protected]>
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSinkBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
src/main/java/io/strimzi/kafka/bridge/http/HttpSourceBridgeEndpoint.java
Outdated
Show resolved
Hide resolved
Signed-off-by: António Pedro <[email protected]>
@antonio-pedro99 why are you suggesting changes reviewing your own PR instead of just making the changes in the PR itself? All these suggestions spam our inbox :-P |
my bad, sorry for that. IntelliJ IDEA doing its job :) |
Signed-off-by: Antonio Pedro <[email protected]>
…dro99/strimzi-kafka-bridge into add-string-emb-format
@ppatierno I think this is the first step! |
@antonio-pedro99 are you still working on this? I see it's draft and actually the converter does nothing :-) @scholzj I am not sure we want to target this for 0.27.0. |
Yes, I am still on it. Will push some changes by the end of this week. |
Hard to say, the converted does nothing right now :-) |
Some buildings are failing exactly because of what I said above. I added some tests. |
src/main/java/io/strimzi/kafka/bridge/http/converter/HttpTextMessageConverter.java
Outdated
Show resolved
Hide resolved
I am not sure from where you are getting the |
@antonio-pedro99 you also need to update the openapiv2.json file. It's the old Swagger 2.0 format but we still support it. |
@antonio-pedro99 I think I have got the cause you are getting |
Exactly what I was thinking over the weekend. |
Another thing I could observe is that not all the output has unescaped backslashes. [
{
"topic": "bridge-quickstart-topic",
"key": "my-key",
"value": "This is some text again",
"partition": 0,
"offset": 0
},
{
"topic": "bridge-quickstart-topic",
"key": null,
"value": "Hellow rold",
"partition": 0,
"offset": 1
},
{
"topic": "bridge-quickstart-topic",
"key": "\"my-key\"",
"value": "\"sales-lead-0001\"",
"partition": 0,
"offset": 2
},
{
"topic": "bridge-quickstart-topic",
"key": null,
"value": "\"sales-lead-0003\"",
"partition": 0,
"offset": 3
},
{
"topic": "bridge-quickstart-topic",
"key": "my-key",
"value": "This is some text again",
"partition": 0,
"offset": 4
}
] |
Signed-off-by: Paolo Patierno <[email protected]>
Again it depends how you send the messages by producing with text format or JSON format. If you have a reproducer that would be helpful otherwise I don't see any reasons for them, it's not happening on my side. |
Fr, it is not happing no longer from my side as well. The same thing is happing with the ConsumerIT.java. While adding tests for the new embedded format, I was producing message like this String sentBody = "Simple message as string";
basicKafkaClient.sendJsonMessagesPlain(topic, 1, sentBody, 0, true); And then try to read as I am trying to use now And also, I observed that there is no test for the binary format, and I am supposing it is because you weren't able to produce a binary message. Found this instead.
|
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: António Pedro <[email protected]>
Signed-off-by: António Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
Signed-off-by: Antonio Pedro <[email protected]>
…dro99/strimzi-kafka-bridge into add-string-emb-format
This PR adds a new text embedded format.
This would fix #739