Closed aricart closed 1 year ago
The actual issue is that the request for creating a stream is different than a template.
{
name: "",
subjects: ["orders.>"],
retention: RetentionPolicy.Limits,
max_consumers: -1,
max_msgs: -1,
max_bytes: -1,
max_age: 0,
max_msg_size: -1,
storage: StorageType.Memory,
discard: DiscardPolicy.Old,
num_replicas: 1
}
{
name: "ORDERS",
max_streams: 100,
config: {
name: "",
subjects: ["orders.>"],
retention: RetentionPolicy.Limits,
max_consumers: -1,
max_msgs: -1,
max_bytes: -1,
max_age: 0,
max_msg_size: -1,
storage: StorageType.Memory,
discard: DiscardPolicy.Old,
num_replicas: 1,
}
}
Not quite sure why we should nest the config
when the template config is the config
.
Defect
The server is crashing with what I expect is an invalid template request.
Versions of
nats-server
and affected client libraries used:latest from master
OS/Container environment:
OS X
Steps or code to reproduce the issue:
Expected result:
Actual result: