Skip to content

kurkik pulsar migrate-diff: check a Pulsar 4.0 to 5.0 migration

migrate-diff compares a 4.0 cluster with a 5.0 one, in either direction. Topics, partitions, policies, schemas, functions, sources and sinks are compared exactly. Settings are mapped between the two versions; renamed settings and moved defaults are listed separately and do not count as drift. It only reads.

Terminal window
kurkik pulsar migrate-diff shop-4 shop-5
Flag What it does
--acls Include permissions: namespace and topic grants, and tenant admins. Needs tenant admin; tenants need a superuser.
--consumers Include subscriptions: who reads each topic. It takes more requests.
--exclude GLOB Skip topics that match. It wins over --include. You can repeat it.
--include GLOB Only topics whose name matches this pattern. You can repeat it.
--include-internal Also show the system’s own topics, such as __consumer_offsets or Pulsar’s system topics.
--kinds KIND[,KIND...] Show only these findings: changed, missing, unmanaged, unknown, not-verifiable, matched. The exit code still counts all of them.
--max-channels N Read at most this many topics.
--namespace TENANT/NS Only this namespace, as tenant/namespace. You can repeat it.
-o, --output FORMAT Output format: text, markdown or json.
--strict Count things that only the second side has as drift too.
--tenant TENANT Only this tenant. You can repeat it.
--timeout DURATION Give up after this long, for example 60s or 2m.
Code Means
0 No drift.
2 Drift, or a topic to check again.
3 No drift found, but something could not be checked.

All codes: exit codes.

Real output, one question per page: Apache Pulsar migrate-diff examples.

Flag What it does
--config FILE Use this connections file instead of $KURKIK_CONFIG or ~/.config/kurkik/connections.yaml.
-h, --help Show help.
--no-color No colours. NO_COLOR=1 does the same.
--no-project Ignore the project connections file.
--project-dir DIR Look for the project’s .kurkik/connections.yaml from this folder up.
--trust-project Use the project file without asking. Meant for CI. Same as KURKIK_TRUST_PROJECT=1.
-v, --verbose Say what Kurkik finds while it reads (on stderr).
-V, --version Show the version.