#53918·milvus

[Bug]: Old StreamingNode panics on unsupported WAL message during v2.6.23-to-master rolling upgrade

Author: zhuwenxingCreated Sep 30, 2026Updated Sep 30, 2026
Labelskind/bugtriage/accepted

Is there an existing issue for this?

  • I have searched the existing issues.
  • Related: https://github.com/milvus-io/milvus/issues/53558 (closed; unknown V2 broadcast messages). This report supplies an observed 2.6.23-to-master rolling-upgrade failure, with RecoveryBarrier as a suspected trigger rather than the import message described there.

Environment

  • Deployment: Kubernetes cluster managed by Milvus Operator v1.3.6; Pulsar, etcd, and MinIO.
  • Source version: v2.6.23, GitCommit bfa1bc34f9.
  • Target version: master-20260928-24db48a7e6, GitCommit 24db48a7e6.
  • Commit provenance: exact old and new StreamingNode Pod startup banners retained in Loki, not inferred from image tags.
  • Instance / namespace: rum-rut-p-mc-7 / chaos-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

During a rolling upgrade from v2.6.23 to master, the old StreamingNode process panics while converting a V2 WAL message:

panic: unsupported message type

The old Pod is rum-rut-p-mc-7-milvus-streamingnode-86f65dfcc4-hsq2w. The same panic was observed at 2026-09-29 01:14:14, 01:14:46, and 01:15:22 UTC.

The newer StreamingNode also crashes with a separate no such field: 121 failure during recovery. The overall run subsequently reports shard-leader unavailability, write timeouts, and failed request-success-rate assertions. Those aggregate failures cannot be attributed exclusively to the old-reader panic.

Expected Behavior

The supported rolling-upgrade path should preserve compatibility between WAL writers and readers during the mixed-version window. A newly introduced control/barrier message should not crash an old StreamingNode. Any required minimum source version or upgrade sequencing must be explicit and enforced; silently skipping messages with required semantics is not necessarily safe.

Steps To Reproduce

Observed scenario (not a minimized deterministic reproduction):

  1. Deploy v2.6.23 (bfa1bc34f9) in cluster mode with Pulsar and rolling upgrade enabled, using the configuration above.
  2. Run the Python single-request and concurrent-operation workloads, including insert/upsert, search/query, collection operations, and add-field operations.
  3. While requests are running, update the Milvus CR image to master built from 24db48a7e6.
  4. During StreamingNode replacement/channel reassignment, observe the old Pod's stderr. In this run, it panicked immediately after the new Pod started opening WAL channels.

The test checkout was bfa1bc34f93df2ccd20fa7c060463c6c6812d355; the concurrent test invocation included 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. This failure depends on mixed server versions and live WAL/channel handover; a standalone SDK script does not reproduce that state. The original CI environment was deleted during pipeline cleanup. The observed version pair, configuration, timing, and process stack are preserved here.

Milvus Log

All times below are UTC. Stack excerpt from the old Pod at 01:14:14:

panic: unsupported message type
github.com/milvus-io/milvus/pkg/v2/streaming/util/message/adaptor.fromMessageToTsMsgV2(...)
    pkg/streaming/util/message/adaptor/message.go:150
...parseSingleMsg(...)
    pkg/streaming/util/message/adaptor/message.go:103
...NewMsgPackFromMessage(...)
    pkg/streaming/util/message/adaptor/message.go:37
...(*BaseMsgPackAdaptorHandler).addMsgPackIntoPending(...)
    pkg/streaming/util/message/adaptor/handler.go:170
...(*BaseMsgPackAdaptorHandler).GenerateMsgPack(...)
    pkg/streaming/util/message/adaptor/handler.go:146
...(*MsgPackAdaptorHandler).Handle(...)
    pkg/streaming/util/message/adaptor/handler.go:59

The new Pod logged successful initial WAL appends immediately beforehand:

2026-09-29 01:14:13.194 UTC channel=rum-rut-p-mc-7-rootcoord-dml_0:rw@3  msgID=16/3521/0  "sync first time tick done"
2026-09-29 01:14:13.195 UTC channel=rum-rut-p-mc-7-rootcoord-dml_12:rw@3 msgID=4/147/0    "sync first time tick done"
2026-09-29 01:14:13.197 UTC channel=rum-rut-p-mc-7-rootcoord-dml_11:rw@3 msgID=13/706/0   "sync first time tick done"

Anything else?

Suspected trigger, not yet proven by message-payload capture: at target commit 24db48a7e6, sendFirstTimeTick constructs and appends a V2 RecoveryBarrier. The old build's fromMessageToTsMsgV2 has no case for this type and panics in its default branch. The append/panic timing supports this explanation, but the panic itself does not record the offending message type or ID.

The affected target contains the WAL recovery refactor 06ba9d2298 (PR #53595), verified with git merge-base --is-ancestor. This is provenance, not a claim that a fix was deployed or that a regression was bisected. No specific fix for this observed trigger has been verified.

Branch comparison: 3.0 at 2f6a819dfc still emits TimeTick V1 on WAL opening and contains no RecoveryBarrier implementation. This does not establish safety for every other new message type or for replaying WAL already written by master.

Full instance Pod status at 2026-09-29 01:57:08 UTC (before cleanup)

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  0