mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 10:15:43 +00:00
- **Bug 1 (MixCoord panic):** `compactionInspector.analyzeScheduler` was never initialized in production code. When FloatVector is used as ClusteringKey, the `doAnalyze()` path calls `analyzeScheduler.Enqueue()` on a nil pointer → panic. Fixed by passing `analyzeScheduler` to `newCompactionInspector`. - **Bug 2 (DataNode round-robin panic):** `validateClusteringKey()` had no field type whitelist, so JSON/Bool/Array passed schema validation. During clustering compaction, `NewScalarFieldValue()` panics on unsupported types. Fixed by adding `IsClusteringKeyType()` check to reject unsupported types at collection creation time. - [x] `TestIsClusteringKeyType` — verifies supported/unsupported type classification - [x] `TestClusteringKey` — new sub-tests for JSON, Bool, Array as ClusteringKey (all rejected) - [ ] Existing `TestClusteringKey` sub-tests (normal, multiple keys, vector key) still pass - [ ] `TestCompactionPlanHandler*` tests pass with updated `newCompactionInspector` signature issue: #47540 master pr: #48184 #48529 --------- Signed-off-by: Cai Zhang <cai.zhang@zilliz.com> Signed-off-by: cai.zhang <cai.zhang@zilliz.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>