Cloud

rpk cluster txn describe-producers

Describe transactional producers to partitions.

This command describes partitions that active transactional producers are producing to. For more information on the producer ID and epoch columns, see rpk cluster txn --help.

The last timestamp corresponds to the timestamp of the last record that was written by the client. The transaction start offset corresponds to the offset that the transaction is began at. All consumers configured to read only committed records cannot read past the transaction start offset.

The output includes a few advanced fields that can be used for sanity checking: the last sequence is the last sequence number that the producer has written, and the coordinator epoch is the epoch of the broker that is being written to. The last sequence should always go up and then wrap back to 0 at MaxInt32. The coordinator epoch should remain fixed, or rarely, increase.

You can query all topics and partitions that have active producers with --all. To filter for specific topics, use --topics. You can additionally filter by partitions with --partitions.

Usage

rpk cluster txn describe-producers [flags]

Flags

Value Type Description

-a, --all

bool

Query all producer IDs on any topic.

-p, --partitions

int32Slice

Partitions to describe producers for (repeatable).

-t, --topics

stringSlice

Topic to describe producers for (repeatable).

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.