RE: ignite client can not reconnect to ignite Kubernetes cluster,after pod restart

2022-06-21 Thread Ilya Korol
Hi, Please take look to https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/client/ClientAddressFinder.html, according to this ThinClientKubernetesAddressFinder should refresh address list on client connection failure, or you can try to set *paritionAwareness = true* in

Re: ignite client can not reconnect to ignite Kubernetes cluster,after pod restart

2022-06-21 Thread wkhapy...@gmail.com
reason i found ,ignite server node restart ip changed,but ignite client still use old ip address,is there any way refresh address wkhapy...@gmail.com From: f cad Date: 2022-06-22 09:53 To: user Subject: ignite client can not reconnect to ignite Kubernetes cluster,after pod restart below if

Re: Need to plug custom equals method for object in ignite.

2022-06-21 Thread f cad
i face similar case,i implement key like below,and put jar contains contactKey class into ignite lib .then i can get result public class ContactKey implements Externalizable { private Long id; @Override public boolean equals(Object o) { if (this == o) { return

ignite client can not reconnect to ignite Kubernetes cluster,after pod restart

2022-06-21 Thread f cad
below if client code config KubernetesConnectionConfiguration kcfg = new KubernetesConnectionConfiguration(); kcfg.setNamespace(igniteK8sNameSpace);kcfg.setServiceName(igniteK8sServiceName);cfg.setAddressesFinder(new ThinClientKubernetesAddressFinder(kcfg));cfg.setRetryPolicy(new

RE: Replicated cache in C++

2022-06-21 Thread Ilya Korol
Hi, Asterisk (*) in cache name is just a flag for Ignite to not initiate this cache but instead register it as a template, that for example can be used further for SQL table creations: CREATE TABLE IF NOT EXISTS Person (   id int,   city_id int,   name varchar,   age int,   company varchar,  

Re: Need to plug custom equals method for object in ignite.

2022-06-21 Thread Николай Ижиков
t seems you can use name, author pair as a key and price and other properties as a value like that: class BooKey String name; String author; } class BookValue { int price; } IgniteCache cache = ignite.createCache(«books»); cache.put(key, val); cache.get(key); > 21 июня 2022 г.,

Re: Need to plug custom equals method for object in ignite.

2022-06-21 Thread Stephen Darlington
I don’t understand why can you can't use SQL. “select _val from Book where bookName = ? And authorName = ?” would get the value from a partial key. > On 21 Jun 2022, at 15:14, Saurabh Satardekar > wrote: > > Hi Stephen, > > Thank you for replying. > > In our use case we cannot use sql

Re: Need to plug custom equals method for object in ignite.

2022-06-21 Thread Saurabh Satardekar
Hi Stephen, Thank you for replying. In our use case we cannot use sql queries to get desired result. Is there any other way that we can use to plug custom implementation of equals and hashCode method for objects which are going to store in caches? Thank you , Saurabh Satardekar. On Fri, 17

Re: Issue with establishing the baseline after nodes restart

2022-06-21 Thread Ray Zhang
Thanks for the information Veena. This is what I figured out too. Here is what I did to find the offending client. I enabled the rest API access for the ignite servers and then query the node information using the node id mentioned in the error message. In the response, the ip of the node that's

Replicated cache in C++

2022-06-21 Thread F.D.
Hi Igniters, I'd like to create a new replicated cache using C++. I suppose I'll have to use a cache template, but it's not clear, for me, how to set the name of the template... for example the meaning of '*'. Thanks, F.D.

Re: Issue with establishing the baseline after nodes restart

2022-06-21 Thread Veena Mithare
Hello, Not sure if you are still facing this issue, When we would face this issue , we would find which client node is the baseline command saying is not found. And restart that client node. Sometimes after restarting the client node, the baseline command would say the same thing about another

Re: Disable SIGTERM processing in Ignite

2022-06-21 Thread Yuriy Ivkin
Hi Ilya, It works! Thank you very much! 21.06.2022 11:08, Ilya Korol пишет: Hi, try to set java property IGNITE_NO_SHUTDOWN_HOOK=true. https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteSystemProperties.html#IGNITE_NO_SHUTDOWN_HOOK 21.06.2022 17:27, Yuriy Ivkin пишет:

Concurrently update some keys

2022-06-21 Thread Ajay Babu
Hello Team, I have a requirement to keep cache in ignite and that will update frequently and selection also happens parallel, while i am executing queries iam getting, ava.sql.SQLException: Failed to update some keys because they had been modified concurrently [keys=[ROWKEY [idHash=628930863,

Re: Disable SIGTERM processing in Ignite

2022-06-21 Thread Ilya Korol
Hi, try to set java property IGNITE_NO_SHUTDOWN_HOOK=true. https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteSystemProperties.html#IGNITE_NO_SHUTDOWN_HOOK 21.06.2022 17:27, Yuriy Ivkin пишет: Greetings! I am using embedded Apache Ignite in my project and syncronyze

[no subject]

2022-06-21 Thread Ajay Babu
Hello Team, I have a requirement to keep cache in ignite and that will update frequently and selection also happens parallel, while i am executing queries iam getting, ava.sql.SQLException: Failed to update some keys because they had been modified concurrently [keys=[ROWKEY [idHash=628930863,

Disable SIGTERM processing in Ignite

2022-06-21 Thread Yuriy Ivkin
Greetings! I am using embedded Apache Ignite in my project and syncronyze several nodes through it. On the app start, after a cache obtained, it writes an available node's requisites into the cache. And I woud like to remove the requisites before a node shutdowns. But when I stop the app