Steadybit logoReliability Hub
GitHubGitHub iconStart Free Trial
Steadybit logoReliability Hub

Check Partitions

CheckCheck
Monitor topic partition changes (leader elections, replica and in-sync-replica changes, offline replicas) during an experiment
Targets:
Kafka Topics
Install now

Check Partitions

Monitor topic partition changes (leader elections, replica and in-sync-replica changes, offline replicas) during an experiment
CheckCheck
Install now

Check Partitions

CheckCheck
Monitor topic partition changes (leader elections, replica and in-sync-replica changes, offline replicas) during an experiment
Install now

Check Partitions

Monitor topic partition changes (leader elections, replica and in-sync-replica changes, offline replicas) during an experiment
CheckCheck
Install now
Go back to list
The action "Check Partitions" within the experiment editor.The action "Check Partitions" within the experiment editor.

Introduction

Monitors partition-level changes on a Kafka topic during an experiment. This check observes whether specific partition events occur — such as a leader election, replicas going offline, or in-sync replicas changing — and evaluates them against an expected change list.

This action targets topic partitions, not brokers or consumer groups. For broker-level monitoring (controller elections, downtime), use Check Brokers. For consumer group state monitoring (Stable, Dead, Rebalancing), use Check Consumer State.

Important: This action uses changeCheckMode and expectedChanges parameters — not stateCheckMode or expectedStateList (those belong to Check Consumer State).

Use Cases

  • Verify that a leader election occurs on a topic's partition when the current leader broker is killed.
  • Assert that in-sync replicas change when a broker hosting a replica is network-isolated.
  • Confirm that no unexpected partition changes happen during a consumer-level fault injection.

Parameters

ParameterDescriptionDefault
DurationHow long the check runs. The check continuously polls partition metadata for this duration.10s
Expected ChangesWhich partition-level changes to watch for. Valid values: New Leader Elected (leader changed), Replicas Changed (replicas changed), Offline Replicas Changed (offline replicas changed), In-Sync Replicas Changed (in sync replicas changed). Multiple values can be selected. If left empty, any partition change triggers.
Change Check ModeHow the expected changes are evaluated. All the time (allTheTime): every poll must detect the change. At least once (atLeastOnce): the change must be observed at least once during the duration.allTheTime

Useful Templates

See all
Validate consumer's behavior when new leader is elected

Verify that your application handles a change of the leader properly.

Motivation

By testing your system's resilience to Kafka leader changes in a partition, you can identify potential weaknesses and take appropriate measures to improve its performance.

Structure

To conduct this experiment, we will ensure that all Kafka topics and producers are ready and that the consumer receives and processes messages correctly. We will then elect a new leader for one partition in Kafka and expect the system to work fine.

Message Queue
Kafka
Recoverability

More Kafka Topic Actions

See all
Start Using Steadybit Today

Get started with Steadybit, and you’ll get access to all of our features to discover the full power of Steadybit. Available for SaaS and on-prem!

Are you unsure where to begin?

No worries, our reliability experts are here to help: book a demo with them!

Statistics
-Stars
Tags
Message Queue
Kafka
AWS
Homepage
hub.steadybit.com/extension/com.steadybit.extension_kafka
License
MIT
MaintainerSteadybit
Install now
Steadybit logoReliability Hub
Start Free Trial
© 2026 Steadybit GmbH. All rights reserved.
Twitter iconLinkedIn iconGitHub icon