Skip to content

Zilla unable to produce to Kafka when removing the north/south cache blocks #1353

@suman-gh-user

Description

@suman-gh-user

Hi Team,

As zilla uses cache layer to cache all the messages from Kafka in order to be available to consume from Zilla. We are using the REST Proxy use case and we just only want to produce to Kafka using Zilla REST proxy but don't want consume through Zilla so we don't want to cache those messages in the Zilla container. But, removing the cache blocks from zilla.yaml config is not working it's failing to produce to kafka.

Steps to reproduce the behaviour:

  1. Remove the north & south cache block from zilla.yaml
  2. Deploy zilla and try to produce.

Zilla.yaml

name: Zilla-CC

bindings:
  north_tcp_server:
    type: tcp
    kind: server
    options:
      host: 0.0.0.0
      port:
        - 7114
    routes:
      - when:
          - port: 7114
        exit: north_http_server
  north_http_server:
    type: http
    kind: server
    routes:
      - when:
          - headers:
              :scheme: http
              :authority: localhost:7114
        exit: north_http_kafka_mapping
  north_http_kafka_mapping:
    type: http-kafka
    kind: proxy
    routes:
      - when:
          - method: POST
            path: /items
        exit: north_kafka_cache_client        
        with:
          capability: produce
          topic: item-snapshots
          key: ${idempotencyKey}
  north_kafka_cache_client:
    type: kafka
    kind: cache_client
    exit: south_kafka_cache_server
  south_kafka_cache_server:
    type: kafka
    kind: cache_server
    options:
      bootstrap:
        - item-snapshots
    exit: south_kafka_client
  south_kafka_client:
    type: kafka
    kind: client
    options:
      servers:
        - ${{env.KAFKA_BOOTSTRAP_SERVER}}
      sasl:
        mechanism: plain
        username: ${{env.SASL_USERNAME}}
        password: ${{env.SASL_PASSWORD}}
    exit: south_tls_client
  south_tls_client:
    type: tls
    kind: client 
    exit: south_tcp_client 
  south_tcp_client:
    type: tcp
    kind: client
telemetry:
  exporters:
    stdout_logs_exporter:
      type: stdout

Zilla Logs:

[client] item-snapshots META
[client] item-snapshots DESCRIBE
[client] item-snapshots[2] PRODUCE aborted (58 bytes)
[client] item-snapshots[5] PRODUCE aborted (58 bytes)
[client] item-snapshots[0] PRODUCE aborted (58 bytes)
[client] item-snapshots DESCRIBE
[client] item-snapshots META

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions