-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
Sprint 56
The below pipeline leads to a bad error message. The "expected types" should read 'object or string' instead of '['.
The relevant code here is planner.cpp. We should be able to test the fix using a unit test in planner_test.cpp (no need to test this against real kafka using kafka.js)
AtlasStreamProcessing> sp.process([{$source: {connectionName: "DemoKafka", topic: "t1"}}, {$emit: {connectionName: "DemoKafka", topic: "t2", config: {headers: [{k: "keyname", v: "value"}]} }}]) MongoServerError: Failed to create stream processor: TypeMismatch: BSON field '$emit.config.headers' is the wrong type 'array', expected types '[']: TypeMismatch: BSON field '$emit.config.headers' is the wrong type 'array', expected types '[']: TypeMismatch: BSON field '$emit.config.headers' is the wrong type 'array', expected types '['], correlationID = 17dcefc2a7305a54d75a7e95
- is related to
-
SERVER-94317 IDL parser returns an unclear error message with wrong types
- Closed
-
SERVER-94318 Streams: Remove special logic added to improve the error thrown with an invalid '$emit.config.headers' field
- Needs Scheduling
- mentioned in
-
Page Loading...