-
Notifications
You must be signed in to change notification settings - Fork 302
Streams get flagged for re-partitioning even when unnecessary. #412
Comments
@Tim-Willard, Unlike the |
@sobychacko Looking specifically at the second map call I listed, I don't understand what it is accomplishing. The I guess what I'm asking is: if you replace line 55 with |
@Tim-Willard Sorry for responding late. The |
@sobychacko The issue I'm encountering is predominantly one of performance. If I want to (for example) join 3 streams together and store the result in a KTable to query, that should only generate 1 internal topic. These Its not something that can't be worked around, but for a simple process like the above the binder is introducing more overhead than the actual work being done (in terms of network traffic and stored messages), and I don't see why it is required. Nothing that I know about Kafka Streams suggests why the |
@Tim-Willard We will keep this issue open for tracking this as it pertains to performance. Will give you an update soon. |
@Tim-Willard Apologies again for the long delay in fixing the issue. It is fixed now upstream. |
I believe #357 was not completely solved with the changes made on sobychacko@d141ad3. I am noticing similar problems to that issue while using release 2.1.0.M1, which contains the fix.
I believe this is being caused by one of two remaining
map
calls.Either here:
https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/blob/31bb86b002a7afc5b144f610c5545a51fa23a99c/spring-cloud-stream-binder-kafka-streams/src/main/java/org/springframework/cloud/stream/binder/kafka/streams/KStreamStreamListenerResultAdapter.java#L41
or (more likely) the one here:
https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/blob/31bb86b002a7afc5b144f610c5545a51fa23a99c/spring-cloud-stream-binder-kafka-streams/src/main/java/org/springframework/cloud/stream/binder/kafka/streams/KStreamStreamListenerParameterAdapter.java#L55
The text was updated successfully, but these errors were encountered: