Skip to content
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

Error before/on Elsa.Producer.ready? #97

Open
tpitale opened this issue Aug 17, 2021 · 1 comment
Open

Error before/on Elsa.Producer.ready? #97

tpitale opened this issue Aug 17, 2021 · 1 comment

Comments

@tpitale
Copy link

tpitale commented Aug 17, 2021

Elixir.Elsa.DynamicProcessManager: initializer raised exception, retrying: %KeyError{key: :topic_metadata, message: nil, term: %{brokers: [%{host: "localhost", node_id: 1001, port: 9092, rack: ""}], cluster_id: "AVee9UIwRfK0ZV_sVCUcsg", controller_id: 1001, topics: [%{error_code: :no_error, is_internal: false, name: "compact_entitlements", partitions: [%{error_code: :no_error, isr_nodes: [1001], leader_id: 1001, partition_index: 0, replica_nodes: [1001]}, %{error_code: :no_error, isr_nodes: [1001], leader_id: 1001, partition_index: 1, replica_nodes: [1001]}, %{error_code: :no_error, isr_nodes: [1001], leader_id: 1001, partition_index: 2, replica_nodes: [1001]}]}]}}

Trying to call Elsa.Producer.ready?(connection) after having started a supervisor for the topic so I can produce some data:

    {:ok, _} =
      Elsa.Supervisor.start_link(
        connection: connection,
        endpoints: brokers(),
        producer: [
          topic: to_string(topic)
        ]
      )
@tpitale
Copy link
Author

tpitale commented Oct 30, 2021

The issue is the change in brod 3.16 to the map structure returned for topic metadata. It is now just :topics and :partitions and not :topic_metadata and :partition_metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant