### Topic layout Topic: shop.public.orders TopicId: e8p9s2PcSK6mPO3bvQRmyA PartitionCount: 3 ReplicationFactor: 1 Configs: min.insync.replicas=1 ### Write: 6 orders (ids 10..15), then 4 rounds of single-row updates, then one transaction that updates 10, then 12, then 13 ### Which partition each key landed on, and whether its events stayed in WAL order inside that partition key 10: partitions=['1'] events=6 lsn strictly increasing in offset order=True key 11: partitions=['1'] events=5 lsn strictly increasing in offset order=True key 12: partitions=['2'] events=6 lsn strictly increasing in offset order=True key 13: partitions=['0'] events=6 lsn strictly increasing in offset order=True key 14: partitions=['0'] events=5 lsn strictly increasing in offset order=True key 15: partitions=['0'] events=5 lsn strictly increasing in offset order=True ### Reading partition 0, then 1, then 2 (what the broker stores): is the LSN sequence globally increasing? lsn sequence head: [30455336, 30455528, 30455720, 30456392, 30456552, 30456712, 30457352, 30457512] globally increasing across partitions: False events per partition: {'0': 16, '1': 11, '2': 6} ### The multi-statement transaction (statuses TX-A, TX-B, TX-C): one txId, increasing lsn, three different keys status=TX-A key=10 partition=1 lsn=30459776 txId=818 status=TX-B key=12 partition=2 lsn=30459896 txId=818 status=TX-C key=13 partition=0 lsn=30460016 txId=818