Skip to content

kt group usability #122

@sdahlbac

Description

@sdahlbac

I might be missing something but do I really need to specify both -topic and -group in order to get reasonable results?

I.e.

kt group -topic prod_m3_13_4.service_assignment.updates -group prod_fieldops_13_4_work_order_tx
found 3 brokers
found 1 groups
found 1 topics
found partitions=[0 1 2] for topic=prod_m3_13_4.service_assignment.updates
{
  "name": "prod_fieldops_13_4_work_order_tx",
  "topic": "prod_m3_13_4.service_assignment.updates",
  "offsets": [
    {
      "partition": 0,
      "offset": 2176982,
      "lag": 0
    },
    {
      "partition": 2,
      "offset": 2172919,
      "lag": 0
    },
    {
      "partition": 1,
      "offset": 2167544,
      "lag": 0
    }
  ]
}

but if I omit e.g. the -group it seems like its doing a cross-join of topics and group and returning a bunch of bogus combinations, e.g. (kt group -topic prod_m3_13_4.service_assignment.updates)

{
  "name": "prod_fieldops_13_4_individual_meter_transaction_history_tx",
  "topic": "prod_m3_13_4.service_assignment.updates",
  "offsets": [
    {
      "partition": 0,
      "offset": null,
      "lag": null
    },
    {
      "partition": 1,
      "offset": null,
      "lag": null
    },
    {
      "partition": 2,
      "offset": null,
      "lag": null
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions