-
Notifications
You must be signed in to change notification settings - Fork 13
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
io.etcd.jetcd.Client példány kezelése #225
Comments
Próbálkoztam a reprodukálásával, de nem sikerült előhoznom a hibát, sem a Config-on (DefaultEtcdConfigSource) keresztül, sem az etcd klienst közvetlenül használva. Az alábbi példakód nem ad vissza hibát, miután az etcd szervert visszaindítom. @Inject
private io.etcd.jetcd.Client etcdClient;
public void test() {
while (true) {
try {
TimeUnit.SECONDS.sleep(1);
PutResponse putResponse = etcdClient.getKVClient()
.put(ByteSequence.from("foo".getBytes()), ByteSequence.from("bar".getBytes()))
.get();
System.out.println(putResponse);
} catch (InterruptedException | ExecutionException e) {
System.err.println(e.getMessage());
}
}
} |
Egyenlőre annyit találtam, hogy ha etcd hívásnál hálózati hiba van, akkor az etcd kapcsolat |
Ezt nem tudom sajnos megmondani. |
#229 verzio frissítése a következőt megoldja: infok: |
io.etcd.jetcd.Client producere Application szintű, emiatt ha valami miatt megszakad a kapcsolat az etcd-vel, akkor nem áll helyre az etcd kliens, ezen lenne jó javítani, hogy ne az alkalamzást kelljen újraindítani.
The text was updated successfully, but these errors were encountered: