Re: Ignite client node raises "Sequence was removed from cache" after Ignite Server node restarts

2020-09-18 Thread Ilya Kasnacheev
Hello! I recommend setting clientReconnectDisabled setting to true, and then do your reconnects manually. I have heard of the issue where restarting a client would interfere with data structures. If you have a reproducer for this problem, I could review it and file a ticket against Apache Ignite

Re: Ignite client node raises "Sequence was removed from cache" after Ignite Server node restarts

2020-09-17 Thread xmw45688
Thanks. We tried it outside the transaction when the ignite instance restarted with EventType.EVT_CLIENT_NODE_RECONNECTED. However, it is hang at igniteInstance.atomicLong(). // when the ignite instance restarted, it hangs here userSeq = igniteInstance.atomicLong("userSeq", maxId,

Re: Ignite client node raises "Sequence was removed from cache" after Ignite Server node restarts

2020-09-15 Thread Ilya Kasnacheev
Hello! You need to do this outside of your transaction. Regards, Ilya. -- Ilya Kasnacheev сб, 12 сент. 2020 г. в 02:42, xmw45688 : > Hi Ilya, > > Tried your suggestion, removing the userSeq field from the class. It still > raise the same exception - > org.apache.ignite.IgniteException:

Re: Ignite client node raises "Sequence was removed from cache" after Ignite Server node restarts

2020-09-11 Thread xmw45688
Hi Ilya, Tried your suggestion, removing the userSeq field from the class. It still raise the same exception - org.apache.ignite.IgniteException: Cannot start/stop cache within lock or transaction. The error is thrown when trying to get igniteInstance.atomicLong("userSeq", maxId, true);

Re: Ignite client node raises "Sequence was removed from cache" after Ignite Server node restarts

2020-09-07 Thread Ilya Kasnacheev
Hello! If this is not too much of a slowdown, you can just remove the userSeq field, and always use "igniteInstance.atomicLong("userSeq", maxId, true)" in its place, to make sure you always hold a fresh one. Regards, -- Ilya Kasnacheev пт, 28 авг. 2020 г. в 04:47, xmw45688 : > How do we

Re: Ignite client node raises "Sequence was removed from cache" after Ignite Server node restarts

2020-08-27 Thread xmw45688
How do we enable the persistence for this atomicLong? My understanding is that atomicLong or atomicReference can't be persisted. Even if it can be persisted, isn't next value reset and started from the initial value. My issue is that the cached sequence was removed from Spring bean. How do I

Re: Ignite client node raises "Sequence was removed from cache" after Ignite Server node restarts

2020-08-27 Thread Michael Cherkasov
Hi, as I remember AtomicInteger uses the default data region as storage, so if you don't have persistence for it, then it will be lost after restart. Try to enable persistence and check it again. ср, 26 авг. 2020 г. в 18:08, xmw45688 : > *USE CASE *- use IgniteAtomicLong for table sequence

Ignite client node raises "Sequence was removed from cache" after Ignite Server node restarts

2020-08-26 Thread xmw45688
*USE CASE *- use IgniteAtomicLong for table sequence generation (may not be correct approach in a distributed environment). *Ignite Server *(start Ignite as server mode) - apache-ignite-2.8.0.20190215 daily build *Ignite Service* (start Ignite as client mode) - use Ignite Spring to initialize the