Skip to content
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

Etcd v3 cluster how to use it? #1

Closed
XMAN-WOMBAT opened this issue Dec 9, 2016 · 4 comments
Closed

Etcd v3 cluster how to use it? #1

XMAN-WOMBAT opened this issue Dec 9, 2016 · 4 comments

Comments

@XMAN-WOMBAT
Copy link

hello!
etcd v3 cluster how to use it? Can config etcd::Client etcd("http://192.1.1.1:2379,http://192.1.1.2:2379,http://192.1.1.3:2379") ?

@mauiarches
Copy link

Hi,

Unfortunately specifying multiple end-points is not yet supported.

@sarat-k
Copy link

sarat-k commented Dec 12, 2016

Hi XMAN,

Were you able to use this library ? I compiled it and linked the resultant library to my app library (which is .so by itself). When I load the main app that links to my app library (which in turn uses this library) I get the following error:

undefined symbol: _ZTVN12etcdserverpb5Watch4StubE

Regards,
SK

@sighingnow
Copy link
Member

After #16 fixes the feature (multiple end-points support) should work as:

etcd::Client etcd("http://192.1.1.1:2379,http://192.1.1.2:2379,http://192.1.1.3:2379")

The gRPC's load balancer is used behind the screen.

@sighingnow
Copy link
Member

For the "undefined symbol: _ZTVN12etcdserverpb5Watch4StubE" issue, more detail information is needed to get it fixed.

Feel free to reopen.

sighingnow added a commit that referenced this issue May 25, 2021
As we have noticed a random "Segmentation fault" error with the following backtrace:

(gdb) bt
#0  _int_free (av=0x7f3db4000020, p=0x7f3db40018a0, have_lock=0) at malloc.c:4199
#1  0x0000557164b22982 in Catch::AssertionInfo::~AssertionInfo (this=0x7f3c32fcc3c8, __in_chrg=<optimized out>) at /home/gsbot/hetao/libvineyard/thirdparty/etcd-cpp-apiv3/catch.hpp:827
#2  0x0000557164b0afd6 in Catch::AssertionResult::~AssertionResult (this=0x7f3c32fcc3c8, __in_chrg=<optimized out>) at /home/gsbot/hetao/libvineyard/thirdparty/etcd-cpp-apiv3/catch.hpp:7275
#3  0x0000557164b117f4 in Catch::AssertionStats::~AssertionStats (this=0x7f3c32fcc3c0, __in_chrg=<optimized out>) at /home/gsbot/hetao/libvineyard/thirdparty/etcd-cpp-apiv3/catch.hpp:10254
#4  0x0000557164b26d8c in Catch::RunContext::assertionEnded (this=0x7ffc893f2e40, result=...) at /home/gsbot/hetao/libvineyard/thirdparty/etcd-cpp-apiv3/catch.hpp:5981
#5  0x0000557164b0f77f in Catch::ResultBuilder::handleResult (this=0x7f3c32fcca00, result=...) at /home/gsbot/hetao/libvineyard/thirdparty/etcd-cpp-apiv3/catch.hpp:8271
#6  0x0000557164b0f6ee in Catch::ResultBuilder::captureExpression (this=0x7f3c32fcca00) at /home/gsbot/hetao/libvineyard/thirdparty/etcd-cpp-apiv3/catch.hpp:8267
#7  0x0000557164b0f2ca in Catch::ResultBuilder::endExpression (this=0x7f3c32fcca00) at /home/gsbot/hetao/libvineyard/thirdparty/etcd-cpp-apiv3/catch.hpp:8229
#8  0x0000557164b4637c in Catch::ExpressionLhs<bool>::endExpression (this=0x7f3c32fcc6f0) at /home/gsbot/hetao/libvineyard/thirdparty/etcd-cpp-apiv3/catch.hpp:1850
#9  0x0000557164b176de in <lambda(const string&, size_t)>::operator()(const std::string &, size_t) const (__closure=0x557164dcb6b0, key="/test/test_key", index=112)
    at /home/gsbot/hetao/libvineyard/thirdparty/etcd-cpp-apiv3/tst/LockTest.cpp:184

Signed-off-by: Tao He <sighingnow@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants