[Bug]: StreamingNode crash-loops on missing field 121 while flushing recovered segments during rolling upgrade
Is there an existing issue for this?
- I have searched the existing issues.
- Existing missing-field reports concern other paths, such as compaction; no matching WAL recovery/rolling-upgrade report was found.
Environment
- Deployment: Kubernetes cluster managed by Milvus Operator v1.3.6; Pulsar, etcd, and MinIO; Storage V2 confirmed by the panic stack.
- Upgrade: v2.6.23 (
bfa1bc34f9) to master-20260928-24db48a7e6 (24db48a7e6). - Commit provenance: exact old and new StreamingNode Pod startup banners retained in Loki.
- Affected Pod:
rum-rut-p-mc-7-milvus-streamingnode-848ff6d55b-jsjfj; namespacechaos-testing. - SDK: pymilvus 2.6.17rc11; Python 3.12.13.
- Client runner: Linux x86_64, kernel 5.4.119-19.0009.67.3, glibc 2.35. Server distribution and CPU/memory limits were not captured.
- GPU: not used by the reported workload.
- Config:
components.enableRollingUpdate: true,components.imageUpdateMode: rollingUpgrade,mixCoord.enableActiveStandby: true, debug logging; mixCoord replicas 1, dataNode replicas 3, queryNode replicas 3. - Jenkins rolling-update-master build 7 (internal access required).
Current Behavior
The new StreamingNode repeatedly panics while flushing recovered segment data during the rolling upgrade:
panic: no such field: 121, having map[0:16 1:17 100:0 101:1 102:2 103:3 104:4 105:5 106:6 107:7 108:8 109:9 110:10 111:11 112:12 113:13 114:14 115:15 117:18 118:19 119:20]The first observed occurrence is 2026-09-29 01:14:18 UTC. The same field/map panic repeats at 01:14:47, 01:20:22, 01:21:16, 01:22:24, 01:24:17, 01:27:43, 01:34:27, 01:41:28, 01:47:01, and 01:53:09 UTC.
At 01:57:08 UTC the Pod was still 0/1 CrashLoopBackOff, with 10 restarts. Search/query operations reported no available shard leaders: channel not available; writes timed out. Both single-request and concurrent-operation checks failed their success-rate assertions. A separate unsupported-message panic also affected the old StreamingNode in the same run.
Expected Behavior
The new StreamingNode should recover pre-upgrade data and complete the rolling upgrade. Segment encoding schema, persisted column-group metadata, and replayed data must agree. Inconsistent metadata must be handled without an unhandled missing-field panic or silently writing incorrect columns.
Steps To Reproduce
Observed scenario (not a minimized deterministic reproduction):
- Deploy v2.6.23 (
bfa1bc34f9) in cluster mode with Pulsar, MinIO, and the rolling-upgrade configuration above. - Run single-request and concurrent-operation workloads, including insert/upsert, search/query, and repeated add-field/schema-alteration operations.
- During the workload, roll the image to master built from
24db48a7e6. - Observe the new StreamingNode recovering WAL and flushing recovered L1 segment data; the Storage V2 writer panics when it looks up field 121.
- Observe automatic container restarts reproduce the same panic instead of restoring availability.
The test checkout was bfa1bc34f93df2ccd20fa7c060463c6c6812d355; the concurrent workload used pytest testcases/test_concurrent_operation.py --host <MILVUS_HOST> --request_duration 2400s --is_check True --log-cli-level=INFO --capture=no under tests/python_client/chaos.
Minimal reproduction script: not yet available. The original failure requires the pre-upgrade persisted segment/schema history and concurrent upgrade timing. The CI environment and its storage were deleted during cleanup; the exact segment metadata snapshot was not retained. Logs and the failing source path are provided rather than an unverified synthetic repro.
Milvus Log
Stack excerpt from 2026-09-29 01:14:18 UTC:
panic: no such field: 121, having map[0:16 1:17 100:0 101:1 102:2 103:3 104:4 105:5 106:6 107:7 108:8 109:9 110:10 111:11 112:12 113:13 114:14 115:15 117:18 118:19 119:20]
internal/storage.(*simpleArrowRecord).Column(..., 0x79)
internal/storage/serde.go:1610
internal/flushcommon/syncmgr.(*BulkPackWriterV2).writeInsertsIntoStorage.func2(...)
internal/flushcommon/syncmgr/pack_writer_v2.go:298
internal/flushcommon/syncmgr.(*BulkPackWriterV2).writeInsertsIntoStorage(...)
internal/flushcommon/syncmgr/pack_writer_v2.go:326
internal/flushcommon/syncmgr.(*BulkPackWriterV2).writeInserts(...)
internal/flushcommon/syncmgr/pack_writer_v2.go:237
internal/flushcommon/syncmgr.(*BulkPackWriterV2).Write(...)
internal/flushcommon/syncmgr/pack_writer_v2.go:118
internal/streamingnode/server/wal/vchannel/segment.writeGrowingBulkPack(...)
internal/streamingnode/server/wal/vchannel/segment/pack_writer.go:253
internal/streamingnode/server/wal/vchannel/segment.(*growingBulkPackWriter).FlushInsertBuffer(...)
internal/streamingnode/server/wal/vchannel/segment/pack_writer.go:119
internal/streamingnode/server/wal/vchannel/segment.(*SegmentView).FlushInsertChunk(...)
internal/streamingnode/server/wal/vchannel/segment/view.go:376
internal/streamingnode/server/wal/vchannel/segment.(*commitL1SegmentTask).Execute.func1(...)
internal/streamingnode/server/wal/vchannel/segment/task.go:155Anything else?
Confirmed code-level mismatch: the column group requests field 121, but the Arrow record's field map, built from the selected encoding schema, does not contain it. The panic happens while collecting null counts after the packed write, at pack_writer_v2.go:298. The col != nil check cannot guard a Column() call that panics before returning.
Upstream path and remaining uncertainty: currentSplitFromPersistedStorage copies persisted ChildFields and maps them into the selected schema without checking membership. Missing entries default to column index zero. Legacy recovery imports those binlog fields from DataCoord. Module initialization selects schema by stored version for SEALED segments and by creation timetick for other segments. The exact upstream reason for the mismatched schema/column group needs a metadata snapshot or minimized reproduction; this report does not claim that schema selection alone has been proven faulty.
The target contains WAL recovery refactor 06ba9d2298 (PR #53595), verified by commit ancestry. This is not a bisected regression or a verified post-fix recurrence.
3.0 at 2f6a819dfc does not contain this new WAL segment recovery writer. However, its common Storage V2 writer still panics on absent fields, and its column-group resolver also lacks membership validation. No 2.6.23-to-3.0 runtime reproduction was performed.
Pod names, readiness, status, and restart counts from the Jenkins console; IP/node columns omitted. This is the shared end-of-run snapshot, not a snapshot of the first panic. The old StreamingNode Pod had already been removed.
NAME READY STATUS RESTARTS
rum-rut-p-mc-7-etcd-0 1/1 Running 0
rum-rut-p-mc-7-etcd-1 1/1 Running 0
rum-rut-p-mc-7-etcd-2 1/1 Running 0
rum-rut-p-mc-7-milvus-datanode-67557fbddb-b5jks 1/1 Running 0
rum-rut-p-mc-7-milvus-datanode-67557fbddb-jz77f 1/1 Running 0
rum-rut-p-mc-7-milvus-datanode-67557fbddb-sswtj 1/1 Running 0
rum-rut-p-mc-7-milvus-mixcoord-78765ff7bd-jvg9x 1/1 Running 0
rum-rut-p-mc-7-milvus-proxy-7dccdb7cb4-n42vv 1/1 Running 0
rum-rut-p-mc-7-milvus-querynode-0-695844bdc7-qb2xp 1/1 Running 0
rum-rut-p-mc-7-milvus-querynode-0-695844bdc7-t2lh4 1/1 Terminating 0
rum-rut-p-mc-7-milvus-querynode-1-bdc7cf4b-s2dwm 1/1 Running 0
rum-rut-p-mc-7-milvus-querynode-1-bdc7cf4b-tj6zk 1/1 Running 0
rum-rut-p-mc-7-milvus-streamingnode-848ff6d55b-jsjfj 0/1 CrashLoopBackOff 10
rum-rut-p-mc-7-minio-0 1/1 Running 0
rum-rut-p-mc-7-minio-1 1/1 Running 0
rum-rut-p-mc-7-minio-2 1/1 Running 0
rum-rut-p-mc-7-minio-3 1/1 Running 1
rum-rut-p-mc-7-pulsar-bookie-0 1/1 Running 0
rum-rut-p-mc-7-pulsar-bookie-1 1/1 Running 0
rum-rut-p-mc-7-pulsar-bookie-2 1/1 Running 0
rum-rut-p-mc-7-pulsar-bookie-init-q82l2 0/1 Completed 0
rum-rut-p-mc-7-pulsar-broker-0 1/1 Running 0
rum-rut-p-mc-7-pulsar-broker-1 1/1 Running 0
rum-rut-p-mc-7-pulsar-proxy-0 1/1 Running 0
rum-rut-p-mc-7-pulsar-pulsar-init-g2m9g 0/1 Completed 0
rum-rut-p-mc-7-pulsar-zookeeper-0 1/1 Running 0
rum-rut-p-mc-7-pulsar-zookeeper-1 1/1 Running 0
rum-rut-p-mc-7-pulsar-zookeeper-2 1/1 Running 0Source: milvus-io/milvus