[Core NATS] Upgrading from v2.0.4 to v2.9.7 #3842
Replies: 12 comments
-
Try setting a cluster name and then retry, otherwise you would have some reconnections happening while the cluster is being assembled
|
Beta Was this translation helpful? Give feedback.
-
Also please run latest 2.9 release which is 2.9.11. |
Beta Was this translation helpful? Give feedback.
-
@wallyqs I added the cluster name, but seems like does not working. I deployed one seed service and 3 worker service in AWS ECS. By the way, the client is using nats.go v1.11 ang go-nats v1.7. will it not compatible with the new version of NATs server? The NATs server can receive msg_payload with v1.11, but can not send it out to subs with v1.7. However, when I update the version for the subs, still not working. @derekcollison I am not using JetStream, is there unknown improvement for Core NATs in v2.9.11? It's still the same with the latest version though. |
Beta Was this translation helpful? Give feedback.
-
Regardless of JetStream we recommend all users to be current with the latest version and patched release. When we release a new minor version, an upgrade, customers will be supported on the previous version for some time and it will receive bug fixes and security updates. |
Beta Was this translation helpful? Give feedback.
-
@chichunhua it should all be compatible...
The import paths in your code should be using the nats.go version so |
Beta Was this translation helpful? Give feedback.
-
Tested it, found that it's not only the version issue, but also relates to the subject. is there any change regarding the subject? It seems like does not matching and working after change to the new version. Also is there a command line to list the subjects? for example
|
Beta Was this translation helpful? Give feedback.
-
You can always use For example in one window do You should see the published message appear in the If you subscribe to aaa..cc.dd.fff... then you do not receive the message because the fff is out of place |
Beta Was this translation helpful? Give feedback.
-
Thank you so much @jnmoyne! just want to double confirm one more format. It was working in v2.0.4 with subject format below, but not working for v2.9.7 and v2.9.11. seems like you had some change on it. do you remember when and in which version made that change?
|
Beta Was this translation helpful? Give feedback.
-
Maybe if you did sub Now on 2.9.x that would fail because |
Beta Was this translation helpful? Give feedback.
-
Do you remember in which version was that bug fixed? |
Beta Was this translation helpful? Give feedback.
-
Your example pub sub |
Beta Was this translation helpful? Give feedback.
-
@ripienaar thanks you very much, it helps a lot! |
Beta Was this translation helpful? Give feedback.
-
I upgraded the version from 2.0.4 to 2.9.7 and then it became not working well. It suppose to have MSG_PAYLOAD every 30s but not, the intervals vary a lot, sometimes 10 min sometimes 1min. NATs server is running, and all pub/sub client can connect to it, based on the monitoring endpoint, under connections, I can see in_msgs amount, but not out_msgs amount. also in NATs logs, I can see the msg_payload, not in regular interval though. Did I missing any config? or something else related? Looking forwards your kind reply. Thank you!
The config:
Subscriptions:
In logs: I can see bunch of the trace logs below, and seems like my actual message is not there in regular interval.
Beta Was this translation helpful? Give feedback.
All reactions