-
Notifications
You must be signed in to change notification settings - Fork 124
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
Get subscription returning empty arrays #520
Comments
I'm seeing this exact same issue as well. |
Are you consuming from the subscription? I get the empty arrays before I consume (probably because the consumer is not intialized at that point). But once I start consuming I get the answer with the right values. (tested with 0.21.4) Not sure if that is intentional or not. @ppatierno might know. |
Yeah, can you verify that you are able to consume by using the consumer endpoint and not the subscription one? Otherwise it could be a bug just on the subscription endpoint. |
I am using the consumers endpoint. I am trying through postman directly. When I debug the kafka-bridge, I see the topic name and partitions correctly, but response doesn't have them. |
I'm not sure I follow this. I didn't used any special steps -> just the curl commands from the docs. |
Ok. I haven't tried curls, but the rest calls using Postman app only, which should give the same results I believe. |
Well, it is only abotu the actual HTTP query -> so any HTTP client should do. |
Hi @scholzj , is this a bug? |
I think it is expected. But @ppatierno might be able to give more authoritative answer. |
Hi @ppatierno , could you confirm the above behaviour is expected? |
When you POST on |
I tried again locally and subscriptions are showed after the consume not right after subscribe because of the underlying native Java Kafka client works as explained before. Going to close this one, if it's still an issue for you feel free to reopen. |
I have setup kafkabridge locally as well as in a kubernetes cluser.
Subscribing to topics is successful with POST API with response code 204.
But listing the topics and subscription details using GET API always returns empty arrays.
response is
During debugging, the log reflects correct values in listSubscriptions method.
<idgeEndpoint:214> [oop-thread-2] Listing subscribed topics [SinkTopicSubscription(topic=mytopic1,partition=null,offset=null), SinkTopicSubscription(topic=mytopic2,partition=null,offset=null)]
But the API response is always empty.
The text was updated successfully, but these errors were encountered: