hertzbeat
hertzbeat copied to clipboard
[BUG] mongodb srv connection support
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
i'm using mongodb atlas cloud database, version 7.0.8. connecting to it requires srv enabled. or i will get error message like below:
Timed out after 6000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=xxxxxx.xxxxxxx.mongodb.net:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketException: xxxxxx.xxxxxx.mongodb.net}, caused by {java.net.UnknownHostException: xxxxxx.xxxxxx.mongodb.net}}]
Expected Behavior
whether srv is enabled could be configured by a option, like Navicat does.
Steps To Reproduce
- login in mongodb atlas
- get a free mongodb cloud database
- try to connect by hertzbeat
Environment
HertzBeat version(s): v1.5.0
Debug logs
No response
Anything else?
No response