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
I have defined a Kafka cluster in localstack using your documentation, I have created 2 topics and I have deployed 2 lambda's. Lambda 1 has as event source topic 1 and lambda 2 has as event source lambda 2.
If I send in a event via topic 1, lambda 1 is triggered but this doesn't work for topic2/lambda2, nothing happens (though the topic registers the event just fine).
If I first create the event mapping between lambda 2 and topic 2, then it works for lambda 2 but not for lambda 1. So the order of event mapping is crucial.
Expected Behavior
I expect that topic 1 triggers lambda 1 and topic 2 triggers lambda 2
We have noticed in the localstack container output that the message regarding. the polling thread only appears during the creation of the first mapping and not during the second:
Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.
Is there an existing issue for this?
Current Behavior
I have defined a Kafka cluster in localstack using your documentation, I have created 2 topics and I have deployed 2 lambda's. Lambda 1 has as event source topic 1 and lambda 2 has as event source lambda 2.
If I send in a event via topic 1, lambda 1 is triggered but this doesn't work for topic2/lambda2, nothing happens (though the topic registers the event just fine).
If I first create the event mapping between lambda 2 and topic 2, then it works for lambda 2 but not for lambda 1. So the order of event mapping is crucial.
Expected Behavior
I expect that topic 1 triggers lambda 1 and topic 2 triggers lambda 2
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
docker-compose.yml:
brokernodegroupinfo.json:
Environment
Anything else?
We have noticed in the localstack container output that the message regarding. the polling thread only appears during the creation of the first mapping and not during the second:
localstack_product_master_consumer | 2024-04-30T07:45:30.130 DEBUG --- [ asgi_gw_6] l.s.l.e.kafka_event_source : Starting Kafka message polling thread for Lambda API
localstack_product_master_consumer | 2024-04-30T07:45:30.596 WARN --- [ Thread-120] kafka.coordinator.consumer : group_id is None: disabling auto-commit.
localstack_product_master_consumer | 2024-04-30T07:45:31.707 INFO --- [ asgi_gw_6] localstack.request.aws : AWS lambda.CreateEventSourceMapping => 202
localstack_product_master_consumer | 2024-04-30T07:46:02.988 INFO --- [ asgi_gw_2] localstack.request.aws : AWS lambda.CreateEventSourceMapping => 202
The text was updated successfully, but these errors were encountered: