Help › Explore a database
Manage Kafka topics
See a Kafka topic's partitions and settings, create topics, add partitions, change a setting, delete records or a whole topic, and what asks first.
Querlyn 0.1.0 is not released yet. This help describes it ahead of release.
A topic's partitions and settings are in its topic tab, beside the messages. The changes below are made from there, from the sidebar, or from the command palette.
See a topic's partitions and settings
Choose Details in the topic tab, or use . The panel on the right shows:
- The topic: its partitions, its replication factor and how many messages its partitions hold.
- Partitions: each one's leader, its replicas, the replicas in sync, its first offset, its next offset and its messages. A partition without a leader, with an offline replica or with a replica out of sync is shown in the warning color; hold the pointer over it for what is wrong.
- Settings: every setting of the topic, those set on the topic itself
first, each with where its value comes from (Set on the topic,
Cluster setting, Broker configuration or Default). A time is
also written in words, such as
604800000 (7 days). A value the broker keeps secret is shown ashidden.
Create a topic
Right-click the cluster or a topic in the sidebar, or use , and fill in:
| Field | What to write |
|---|---|
| Name | Letters, digits, ., _ and -, at most 249. |
| Partitions | How many (3 at first). |
| Replication factor | How many copies of each partition. Empty takes the cluster's default. |
| Retention | How long messages are kept: 7d, 12h, 30m, a number of milliseconds, or unlimited. Empty takes the cluster's default. |
| Cleanup policy | Delete old messages after the retention, or Compact to keep the newest message of each key. |
Choose Create Topic. The topic appears in the sidebar.
Add partitions
Choose Add Partitions… in the details panel, or use , and write the number of partitions the topic should have in all. Partitions can be added but never removed, and after adding them a key may map to another partition than before, which matters to consumers that rely on the order of a key's messages.
Change a setting
Select a setting in the details panel and choose Edit Setting…, or
double-click it (). Write
the new value as Kafka writes it (retention.ms in milliseconds), or
leave it empty to go back to the value the topic inherits from the
cluster. Choose Apply. Only that setting changes; the topic's other
settings stay as they are.
Warning: Lowering retention.ms or retention.bytes, or adding
delete to a compacted topic's cleanup.policy, lets Kafka delete
messages sooner, possibly at once. Querlyn asks first and says from
what to what.
Delete records
Choose Delete Records… in the details panel or in the topic's menu in the sidebar (). Choose a partition or all of them, and the offset before which messages are deleted; empty deletes every message the partition holds. Choose Delete Records…, answer the question, and the messages before that offset are gone: the partition's first offset moves up to it.
Delete a topic
Choose Delete Topic… in the details panel or in the topic's menu in the sidebar (). Every message in it is deleted, and its tabs close.
Warning: Deleting records or a topic cannot be undone.
What asks first
Every change is checked by what it does, never by its text. With each environment's default confirmations:
| Change | Asks first on |
|---|---|
| Deleting a topic, deleting records, resetting a group's offsets, deleting a group, lowering how long a topic keeps messages | Testing, Staging and Production |
| Producing a message, creating a topic, adding partitions, any other setting | Production |
A setting Querlyn cannot compare with its current value counts as one that lowers it. Producing can be told not to ask again for a connection until Querlyn quits; see Produce a message. Nothing else can. A read-only connection refuses every change. See Confirm risky statements and Read-only connections.
Help for Querlyn 0.1.0. All help topics