Re: Help with affinityRun on collocated ignite queue

2021-05-05 Thread Ilya Kasnacheev
nto documentation I > could not understand a good use case why would we want to run jobs on the > collocated queue using affinityRun method of queue interface, since > collocated queues are on the same node why can't I simply write my own > lambda function. Specifically what benefits does

Help with affinityRun on collocated ignite queue

2021-05-04 Thread ps594
ld not understand a good use case why would we want to run jobs on the collocated queue using affinityRun method of queue interface, since collocated queues are on the same node why can't I simply write my own lambda function. Specifically what benefits does the affinityRun offers for ignite q

Re: Ignite Queue (Documentation or Code defect)?

2020-09-02 Thread Vladimir Pligin
Hi guys, That has been done. https://issues.apache.org/jira/browse/IGNITE-13396 -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite Queue

2020-08-25 Thread Humphrey
I see it's already being picked up in another thread: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Queue-Documentation-or-Code-defect-td33703.html I can't delete this thread. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite Queue

2020-08-25 Thread Humphrey
Yes the common pattern is not documented. So was expecting if no exception is thrown that I'm getting a queue and can put something on it. But then if I don't check for null I'll get a NullpointerException. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite Queue (Documentation or Code defect)?

2020-08-19 Thread Denis Magda
Could you please file a ticket in Ignite JIRA for 2.10 release? That's definitely an overlook in the current implementation. - Denis On Tue, Aug 18, 2020 at 9:57 AM Humphrey wrote: > Hope someone pics this up. That the code is not behaving as the > documentation > is saying. > (Not throwing ex

Re: Ignite Queue (Documentation or Code defect)?

2020-08-18 Thread Stephen Darlington
It’s a good catch, but I think this is one of the developer mailing list. I see the same behaviour. Arguably it’s consistent with the Ignite#cache() which returns null if the cache doesn’t exist. Regards, Stephen > On 18 Aug 2020, at 15:29, Humphrey wrote: > > Hope someone pics this up. That

Re: Ignite Queue (Documentation or Code defect)?

2020-08-18 Thread Humphrey
Hope someone pics this up. That the code is not behaving as the documentation is saying. (Not throwing exception when queue can not be fetched). -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite Queue

2020-08-18 Thread Ilya Kasnacheev
Hello! I think that "could not be fetched or created" hints that some error should happen to get an exception. Returning null if an object does not exist is a common pattern in Ignite API so I suspect this is what is the norm here. Maybe I'm missing something? Regards, -- Ilya Kasnacheev вт,

Re: Ignite Queue (Documentation or Code defect)?

2020-08-17 Thread Humphrey
Great I see something went missing: Ignite ignite = Ignition.start(); IgniteQueue queue = ignite.queue("Queue", 0, null); ignite.close(); In the queue created above I expect it to throw an exception if the queue can not be fetched, instead it is giving me a queue that is "null". Check the JavaDo

Ignite Queue

2020-08-17 Thread Humphrey
According to the documentation (java doc) of ignite.queue(): Will get a named queue from cache and create one if it has not been created yet and cfg is not null. If queue is present already, queue properties will not be changed. Use collocation for CacheMode.PARTITIONED caches if you have lots of r

Ignite Queue (Documentation or Code defect)?

2020-08-17 Thread Humphrey
When creating an ignite queue without an CollectionConfiguration (null) I'm not getting the expected Queue or Exception as documented in the JavaDoc. But i'm getting a cache that is null. The documentation: -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: ignite queue poller

2020-03-09 Thread Evgenii Zhuravlev
only way is to write igniterunnable compute where i should run >> loop forever and perform the task on ignite queue element? But this is bad >> as there are cases when the compute dies and no one can resume it or track >> it. >> >> Is there a way a where we add some ignite runnable queue elements and the >> elements pop up automatically and gets executed without any trigger? >> >

Re: ignite queue poller

2020-03-02 Thread Evgenii Zhuravlev
gt; > I know only way is to write igniterunnable compute where i should run loop > forever and perform the task on ignite queue element? But this is bad as > there are cases when the compute dies and no one can resume it or track it. > > Is there a way a where we add some ignite runnab

ignite queue poller

2020-03-01 Thread Narsi Reddy Nallamilli
Hi, Is there a queue poller built-in ignite which constantly and indefinitely polls the queue and can perform some task? I know only way is to write igniterunnable compute where i should run loop forever and perform the task on ignite queue element? But this is bad as there are cases when the

Re: Speed Expectations for Ignite Queue

2018-11-29 Thread Peter
ng the > speed to LinkedBlockingQueue shouldn't be that unfair. My expectation > here is that ignite is 10-50x slower due to serialization overhead > still happening for localhost. > > But it seems that ignite queue is 100-500 times slower. What am I > doing wrong here or did I s

Re: Speed Expectations for Ignite Queue

2018-11-29 Thread Ilya Kasnacheev
Hello! I think that you had too optimistic expectations. LinkedBlockingQueue is a core Java data structure and it is very fast - it just writes a reference to data structure in best case scenario. Meanwhile, Ignite Queue will create several internal temporary objects (such as distributed locks

Speed Expectations for Ignite Queue

2018-11-26 Thread Peter
e tuned to get a setup that is okayish-fast and also without persistence and so comparing the speed to LinkedBlockingQueue shouldn't be that unfair. My expectation here is that ignite is 10-50x slower due to serialization overhead still happening for localhost. But it seems that ignite que

RE: Initialize ignite queue when node is starting

2018-06-14 Thread Stanislav Lukyanov
queue when node is starting Thanks, I meant ignite queue. If I have initialized an ignite queue in one node, and I want to just obtain a reference to it on the second node; there is no API to do that currently without passing in the entire configuration. Is there something I am missing? -- Sent

RE: Initialize ignite queue when node is starting

2018-06-14 Thread arunkjn
Thanks, I meant ignite queue. If I have initialized an ignite queue in one node, and I want to just obtain a reference to it on the second node; there is no API to do that currently without passing in the entire configuration. Is there something I am missing? -- Sent from: http://apache

RE: Initialize ignite queue when node is starting

2018-06-11 Thread Stanislav Lukyanov
Hi, If you mean IgniteQueue then, unfortunately, there is no way to describe it in the XML. You have to call Ignite.queue() to create one. Thanks, Stan From: arunkjn Sent: 10 июня 2018 г. 10:14 To: user@ignite.apache.org Subject: Initialize ignite queue when node is starting Hi, I give my

Re: Initialize ignite queue when node is starting

2018-06-11 Thread Roman Guseinov
Hi, If you want to configure message queue limit, here is an example: ... Best Regards, Roman -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Initialize ignite queue when node is starting

2018-06-10 Thread arunkjn
Hi, I give my cache configuration in xml, which the node uses to initialize the cache when starting up. I want to similarly do this for initializing ignite queues. what would be a substitue of - for ignite queues

Re: Failed to get Item| Ignite queue

2016-09-15 Thread Anmol Rattan
Ok. However, there was only one node and only node which holds that cache. A little strange behaviour. Memory footprint in heap was also half. On Sep 15, 2016 5:31 PM, "Vladislav Pyatkov" wrote: > Hi, > > It look like you are losing elements. This may be because node of grid has > failed. > You

Re: Failed to get Item| Ignite queue

2016-09-15 Thread Vladislav Pyatkov
Hi, It look like you are losing elements. This may be because node of grid has failed. You can try to increase count of backup copies, look at the setBackups() in CollectionConfiguration[1]. [1]: https://apacheignite.readme.io/v1.7/docs/queue-and-set#collection-configuration On Wed, Sep 14, 2016

Failed to get Item| Ignite queue

2016-09-14 Thread Anmol Rattan
Hi, We are seeing frequent messages while fetching from our ignite queu. 016-09-14 08:47:32.254 BST [WARN] - thread="AsyncBatchBondPersistence2" - class="org.apache.ignite.internal.processors.datastructures.GridAtomicCacheQueueImpl" - Failed to get item, will retry poll [queue=PROCESSED_BONDS_Q