-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling while DTopic publish in embeded mode #189
Comments
Hello @TerrySolar, I'm sorry for my late response. I was on vacation. Could you please tell me what Olric version you use? I also need some logs from the cluster members. It seems that you are having problems with forming a healthy cluster.
There is no need for such a function. Everything is clustered in Olric and it handles all complexity. |
thanks for response. I am using olric v0.4.5, I think I created a healthy cluster, get or set data works normally in my cluster. I did not create DTopic while cluster initial, the creation trigger by some request, and a random node will call NewDTopic function, I read the code in NewDTopic, I think if I just call NewDTopic in single node, the others in cluster did not know this creation, If I use publish this time, the others nodes will form an error(topic not found) |
Hello, could you please upgrade Olric to v0.4.9? It's the latest version. BTW, I'm planning to release v0.5.0 soon. The API has changed considerably. I'll continue maintaining v0.4.x but it will only receive security updates and bug fixes. I recommend using Could you please share some logs if you don't mind? I'll try to reproduce the problem on my side. |
Hi, I was formed a three nodes cluster with olric v0.4.9
It seems like a healthy cluster from logs
Got some error logs After I call NewDTopic and publish in node1
BTW, I notice DTopic has been deprecated while v0.5.x,so I choosed to stay in v0.4.x before |
@TerrySolar thank you very much. I'll try to reproduce it.
Olric v0.5.0 implements a drop-in replacement of the Redis Publish/Subscribe feature. The official client (in both deployment modes) provides a thin layer around the commands. See this: https://pkg.go.dev/github.com/buraksezer/[email protected]#PubSub |
Hey @TerrySolar, the problem has been fixed and I just released Olric v0.4.10. https://github.com/buraksezer/olric/releases/tag/v0.4.10 Thank you for reporting the problem! Please don't hesitate to open an issue or join our Discord channel if you have further problems or questions. |
thank you very much, and I'll try v0.5.x recently |
Would you mind explaining your use case, if it's possible? It's good to know about the user's problems. |
I have a lightweight long-connection cluster, openresty as a broker, and store connection meta in olric. Some connection will subscribe to a topic(add a listener in olric), And I use "Publish" to push message, every listener will get metadata of the connection, and push the message to the right broker instance which hold the WebSocket |
hi, I use embeded olric in my project, some DTopic will be create dynamicly. After the cluster initialed, some DTopic just created in a few instances, when publish message at this time will cause an error(topic not found) in some instance which not create this DTopic.
Should I add a fucntion like "NewDTopicToCluster" or change the error in function publishDTopicMessageToAddr to a warning log?
The text was updated successfully, but these errors were encountered: