elsa icon indicating copy to clipboard operation
elsa copied to clipboard

Error before/on Elsa.Producer.ready?

Open tpitale opened this issue 3 years ago • 1 comments

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 avatar Aug 17 '21 16:08 tpitale

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.

tpitale avatar Oct 30 '21 02:10 tpitale