Closed Doslin closed 2 years ago
listen: 172.24.144.238:4004
http_port: 4804
debug: true
trace: true
logfile: /Users/zhilin/code/GoLand/nats-jet/src/nats-server/conf/.zhilin4/region4.sa.log
server_name: 172.24.144.238:4004
jetstream {
store_dir="/Users/zhilin/code/GoLand/nats-jet/src/nats-server/conf/.zhilin4/"
}
cluster {
name: zhilin_cluster
listen: 172.24.144.238:4404
routes = [
nats-route://172.24.144.238:4101
nats-route://172.24.144.238:4202
]
}
listen: 172.24.144.238:4003
http_port: 4803
debug: true
trace: true
logfile: /Users/zhilin/code/GoLand/nats-jet/src/nats-server/conf/.zhilin3/region3.sa.log
server_name: 172.24.144.238:4003
jetstream {
store_dir="/Users/zhilin/code/GoLand/nats-jet/src/nats-server/conf/.zhilin3/"
}
cluster {
name: zhilin_cluster
listen: 172.24.144.238:4303
routes = [
nats-route://172.24.144.238:4101
nats-route://172.24.144.238:4202
]
}
To me it feels like you are not sending "jetstream" messages in that the client does not wait for confirmation that the message was persisted, so when you kill the server as soon as the publisher finishes, there are actually possibly inflight messages that were not processed yet. You could use nats bench -js
instead of simply pub
and see if the outcome is different. Check nats bench --help
for more information on possible arguments.
Defect
Make sure that these boxes are checked before submitting your issue -- thank you!
nats-server -DV
outputVersions of
nats-server
and affected client libraries used:2.8.4 && 2.9.0-RC.2
OS/Container environment:
MacOS 12.3
Steps or code to reproduce the issue:
Expected result:
Messages: 200000
Actual result:
Messages: 161,355