RE: Timeout while running checkpoint

2018-02-12 Thread Josephine Barboza
3 mins on both nodes 2018-02-12 09:10:37 [db-checkpoint-thread-#33%nvIDNSGN7CR%] INFO GridCacheDatabaseSharedManager:463 - Skipping checkpoint (no pages were modified) [checkpointLockWait=0ms, checkpointLockHoldTime=3ms, reason='timeout'] 2018-02-12 09:13:37

Re: Distributed transaction (Executing task on client as well as on key owner node)

2018-02-12 Thread Ilya Lantukh
Hi, The fact that code from invoke(...) is executed on node that initiated transaction ("near node" in ignite terminology) is a known issue. There is a ticket for it (https://issues.apache.org/jira/browse/IGNITE-3471), but it hasn't been fixed yet. To solve your initial goal, you might want to

Re: Versioning services

2018-02-12 Thread colinc
Thanks for this. I'll keep an eye on that ticket - it seems to be exactly what we are looking for. In the meantime, we think we have a work-around. Does the following sound viable, or do you think it might it cause problems? * Create a custom intercepting ClassLoader * Start Ignite by directly

Re: Question on ports exposed in kubernetes setup

2018-02-12 Thread Roman Guseinov
Hi Vishwas, 11211 is a default port of JDBC connection [1]. Default REST port is 8080. [1] https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteJdbcDriver.html Regards, Roman -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Timeout while running checkpoint

2018-02-12 Thread Vinokurov Pavel
It is normal behavior. According to documentation the checkpointing process could be triggered by the timeout( 3min by default) or the size of the checkpointing buffer. In your case every 3 mins Ingite starts the checkpointing process to sync dirty pages from RAM on disk. The log message

Autowire in CacheStore implementation

2018-02-12 Thread Prasad Bhalerao
Hi, Does anyone have any idea, how to autowire dependency in CacheStore implementation? To set cacheStore implementation in cache configuration we use following code. CacheConfiguration.setCacheStoreFactory(). Now this method accepts the Factory implementation which instantiates the CacheStore

RE: Timeout while running checkpoint

2018-02-12 Thread Josephine Barboza
3 mins on both nodes 2018-02-12 09:10:37 [db-checkpoint-thread-#33%nvIDNSGN7CR%] INFO GridCacheDatabaseSharedManager:463 - Skipping checkpoint (no pages were modified) [checkpointLockWait=0ms, checkpointLockHoldTime=3ms, reason='timeout'] 2018-02-12 09:13:37

Distributed transaction (Executing task on client as well as on key owner node)

2018-02-12 Thread Prasad Bhalerao
Hi, I am trying to test the distributed transaction support using following piece of code. While debugging the code I observed that code executes on client node first and after doing commit the code executes on a node which owns that kay. What I am trying to do is, to collocate the data to avoid

Re: Text Query question

2018-02-12 Thread dkarachentsev
Jet, Yep, this should work, but meanwhile this ticket remains unresolved [1]. [1] https://issues.apache.org/jira/browse/IGNITE-5371 Thanks! -Dmitry -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Autowire in CacheStore implementation

2018-02-12 Thread dkarachentsev
Hi Prasad, If you started Ignite with IgniteSpringBean or IgniteSpring try @SpringApplicationContextResource [1] annotation. Ignite's resource injector will use spring context to set a dependency annotated by it. But I'm not sure that this will work with CacheStore, it should be rechecked. [1]

Re: Logging using Log4Net

2018-02-12 Thread Alexey Popov
Hi, There could be several issues. Unfortunately, you just provided some config snippets. First of all, please add to your appender RollingLogFileAppender config. Then, please ensure that your log4net configuration section is actually used. It is better to have a separate file log4net.config

Re: Distributed transaction (Executing task on client as well as on key owner node)

2018-02-12 Thread dkarachentsev
Hi Prasad, This approach will work with multiple keys if they are collocated on the same node and you start/stop transaction in the same thread/task. There no other workaround. Thanks! -Dmitry -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Distributed transaction (Executing task on client as well as on key owner node)

2018-02-12 Thread Prasad Bhalerao
Hi, My use case is to collocate the data and execute the task on that node. But I want to execute >1000 number of such tasks in collocate task mode and all such tasks should be executed in a single transaction. If any one of the task fails, I want to rollback the complete transaction. The reason

Re: slow query performance against berkley db

2018-02-12 Thread Mikael
Hi! What is it you are trying to do ? I assume you have a working solution with BDB now, why do you want to change it to Ignite ? do you want/need redundancy/HA ? do you plan to run this on a single node or multiple nodes ? Mikael Den 2018-02-12 kl. 03:45, skrev Rajesh Kishore: Dear all

Re: Question on ports exposed in kubernetes setup

2018-02-12 Thread vbm
Hi Roman, Thanks for the reply. I think the guide needs to be updated, to reflect the default port mapping. Regards, Vishwas -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Logging using Log4Net

2018-02-12 Thread ozgurnevres
Hi, I want to use log4net for logging. Ignite starts from ApplicationConfiguration like this: Ignition.StartFromApplicationConfiguration() It seems it isn't logging in C:\Logs. What am I doing wrong? Ignite configuration is like

Re: Unable to connect ignite pods in Kubernetes using Ip-finder

2018-02-12 Thread Ryan Samo
I just ran into this same issue recently and it turns out that the permissions given to the default ServiceAccount in Kubernetes Role-based access control (RBAC) are not high enough to allow for the TcpDiscoveryKubernetesIpFinder to talk to the kubernetes service at

Adding new fields without server restart

2018-02-12 Thread Tim Newman
Hi, I have a POJO that I am caching written like: public class Person implements Serializable { private static final long serialVersionUID = 1537032807962869676L; @QuerySqlField(index = true) private final Long personId; @QuerySqlField private final String firstName;

Re: Is there any work around for indexing list in Apache ignite and use in where clause?

2018-02-12 Thread vkulichenko
This is also discussed on StackOverflow: https://stackoverflow.com/questions/48723261/is-there-any-work-around-for-indexing-list-in-apche-ignite-and-use-in-where-clau -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Is there any work around for indexing list in Apache ignite and use in where clause?

2018-02-12 Thread Roman Guseinov
Hi Mani, It looks like indexes for list/array field types are not supported. Could you describe your use case in more detail? Could you send examples of data and search parameters? Maybe there are some workarounds. Regards, Roman -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Add ignite jars using maven

2018-02-12 Thread vkulichenko
Rajarshi, You don't have to add dependencies explicitly of course. Ignite is a standard Maven project and there is no additional magic that you need to consider. Just add required Ignite modules that are required for your project into POM file and Maven will do the rest. -Val -- Sent from:

Re: Adding new fields without server restart

2018-02-12 Thread vkulichenko
Hi Tim, Cache configuration is defines when it's started. So @QuerySqlField annotation on the new field does not have affect unless you restart the cluster or at least destroy the cache and create with the new configuration. Field are added on object level transparently, but to modify the SQL

Re: Distributed transaction (Executing task on client as well as on key owner node)

2018-02-12 Thread vkulichenko
Hi Prasad, I understand that the example you provided can be a simplified one, however wanted to mention that this particular piece of code does not require a transaction at all. You can just execute a single invoke() operation, optionally returning required value (its API allows that). This will

Re: Timeout while running checkpoint

2018-02-12 Thread Vinokurov Pavel
How often the "Skipping checkpoint" message occurred in logs? 2018-02-12 10:47 GMT+03:00 Josephine Barboza : > No I haven’t overridden checkpointFreq value. > > > > *From:* Vinokurov Pavel [mailto:vinokurov.pa...@gmail.com] > *Sent:* Monday, February 12, 2018 1:03 PM

Re: What happens if Primary Node fails during the Commit Phase

2018-02-12 Thread vkulichenko
Hi John, 1. True. 2. The blog actually provides the answer: When the Backup Nodes detect the failure, they will notify the Transaction coordinator that they committed the transaction successfully. In this scenario, there is no data loss because the data are backed up and can still be accessed

What happens if Primary Node fails during the Commit Phase

2018-02-12 Thread John Wilson
Hi, Assume the Prepare phase has completed and that the primary node has received a commit message from the coordinator. Two questions: 1. A primary node commits a transaction before it forwards a commit message to the backup nodes. True? 2. What happens if a Primary Node fails while

Re: What happens if Primary Node fails during the Commit Phase

2018-02-12 Thread John Wilson
I got the answer for #3 here https://cwiki.apache.org/confluence/display/IGNITE/Ignite+Durable+Memory+-+under+the+hood#IgniteDurableMemory-underthehood-Pages. I will post the remaining questions in a separate thread. On Mon, Feb 12, 2018 at 8:03 PM, John Wilson wrote: >

Re: Logging using Log4Net

2018-02-12 Thread ozgurnevres
"please ensure that your log4net configuration section is actually used" How can I ensure that? It seems there's no property in logger configuration to tell which appender will be used. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Logging using Log4Net

2018-02-12 Thread ozgurnevres
You can download a simple reproducer project here: https://1drv.ms/u/s!ApZeEREhT0aVxHwU56ywJxhuVWvR -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/