-
Notifications
You must be signed in to change notification settings - Fork 315
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
Cant fetch key value using jetcd version 0.8.2 #1375
Comments
I think the |
Ohh forgot to mention that tried with both with and without forward slash.
But still no luck. I've tried another library etcd4j which is working. So
can you help me if I'm missing something?
…On Fri, Jun 28, 2024 at 3:52 PM Luca Burgazzoli ***@***.***> wrote:
I think the /mykey should be mykey
—
Reply to this email directly, view it on GitHub
<#1375 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABU27NPFEDE376PGXXZQ3XTZJUW4JAVCNFSM6AAAAABKBQZ6JWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJWGUZTKNZYGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Md. Nazmul Prince*
*Project Lead*
Penta Global LTD <https://www.pentabd.com/>
|
Have you used the command seems like you are using |
If the etcd4j library you are mentioning is https://github.com/jurmous/etcd4j, then it uses the old etcd APIs based on REST, whereas jetcd uses gRPC so if etcd4j works, then there is probably something wrong with your etcd setup. We have a number of tests you can have a look for some examples https://github.com/etcd-io/jetcd/blob/main/jetcd-core/src/test/java/io/etcd/jetcd/impl/KVTest.java. In case you are still facing an issue, a reproducer in a form of a unit test would be very useful |
tried with both |
Yeap I'm using the etcd4j library you have mentioned. And which is of course using old etcd rest apis wereas jetcd uses grpc and thats the reason still I wanted to use it in my company's project for better performance. Do you have any suggestion or idea or any link to share for proper etcd setup. |
This https://github.com/etcd-io/jetcd/blob/main/jetcd-launcher/src/main/java/io/etcd/jetcd/launcher/EtcdContainer.java#L153-L210 is how etcd is started for our tests |
@lburgazzoli you're right, the problem was in my local etcd settings. installing etcd server with sudo apt install etcd in ubuntu causing this issue, When I installed etcd using the binary then all works. Thanks for giving me the hints.
While adding the following dependency resolving it:
|
As adding the dependency or excluding teh dependecy of protobuf-java to those dependencies which are using this also resolved this closing thies issue. Thanks all. |
Versions
Describe the bug
I've just installed etcd on my local machine which is ubuntu 22.04. then I have set a key using the following command
etcdctl set mykey "Hello etcd"
Then I have created a simple maven project where i've just added jetcd-core dependency:
then I have added the following code:
But its giving response.getKvs() = [].
To Reproduce
Just installed the etcd on local machine and then try jetcd with latest version.
Expected behavior
It should just return the value of the corresponding key.
The text was updated successfully, but these errors were encountered: