NullPointerException: Ouch! Argument cannot be null: key while performing cache.getAll

2019-01-09 Thread kotamrajuyashasvi
Hi I'm working on a project with ignite as in memory cache with Cassandra as persistence for ignite. I need to perform cache.getAll(..) on a set of pojo cache keys built. For Random runs facing the below Exception. Failed to acquire lock for request: GridNearLockRequest

Re: Ignite locking when affinity is used.

2018-10-29 Thread kotamrajuyashasvi
Hi Need help on the above issue. Please let us know the possibilities for cause of the above Exception. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Ignite partition redistribution when topology is changed.

2018-10-29 Thread kotamrajuyashasvi
Hi I'm working on a custom affinity function. According to the documentation : https://apacheignite.readme.io/docs/affinity-collocation#section-affinity-function assignPartitions(...) method is called whenever cluster topology changes. So redistribution of partitions happens after this method is

Re: Ignite locking when affinity is used.

2018-10-25 Thread kotamrajuyashasvi
Hi MYCACHE is the name of the cache that is being used. We are observing the below Exception in server logs: cache mode : TRANSACTIONAL , PESSIMISTIC , REPEATABLE_READ [01:46:41,022][SEVERE][grid-timeout-worker-#135][GridDhtColocatedCache] Failed to acquire lock for request: GridNearLockRequest

Ignite locking when affinity is used.

2018-10-25 Thread kotamrajuyashasvi
Hi In my ignite project a key object of a cache has one of its fields as affinitykeymapped. The cache has 1 backup. Using transactional mode pessimistic and repeatable_read mode. When we acquire lock using cache.get()/put() etc.. is lock only acquired on primary node where the key is located or

Re: Ignite default partition to node mapping is not balanced

2018-10-23 Thread kotamrajuyashasvi
Hi can you provide more info on why fair affinity was removed . If its not a critical problem and can compromise on we would like to use it. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite default partition to node mapping is not balanced

2018-08-23 Thread kotamrajuyashasvi
Hi We are not running with ignite persistence. Also we observed that for a given ignite nodes the partition to node mapping is always same using RendezvousAffinityFunction or not or how many times we restart the cluster. How can we say its random ? I would like to know what is the solution to

Ignite default partition to node mapping is not balanced

2018-08-23 Thread kotamrajuyashasvi
Hi I'm working on an Ignite project where all the data is partitioned based on field partition-id and it is set as affinitykeyfield. We are running 5 ignite servers on 5 machines which have identical hardware and ignite heap settings/java options. Our data has overall 5 partition-ids(1-5) . But

Ignite backups on collocated data

2018-07-27 Thread kotamrajuyashasvi
Hi Suppose I have two ignite caches and these two caches are collocated based on a field using AffinityKemapped. Now if I configure same number of backups for both the caches, do the backup copies also get collocated i.e backed up on same nodes ? For ex: one row of cache1 and one row from cache2

Implementing custom affinity logic

2018-07-23 Thread kotamrajuyashasvi
Hi I m working on an ignite project where I want to have certain records to be collocated based on a custom calculated value which is obtained from the fields of the primary key object. For example the Primary key pojos have fields a,b,c. I want all records having same value of (a+b)/c

Getting NullPointerException during commit into cassandra, after reconnecting to ignite server

2018-06-12 Thread kotamrajuyashasvi
Hi I'm working on an ignite project with cassandra as persistent storage. Initially an ignite client connects to a ignite server. After connecting if ignite server is restarted, the client also reconnects to the server. But after reconnecting during committing data into cassandra I'm running into

SQL TX: Reads should see own's previous writes

2018-05-21 Thread kotamrajuyashasvi
Hi I found the ticket: https://issues.apache.org/jira/browse/IGNITE-6938, related to the feature of Reads should see own's previous writes with in the same transaction, and its status says its resolved. I would like to know if this feature can be applied like a patch. Or still it has some other

Locking mechanism difference between sequential get() and getAll()

2018-05-07 Thread kotamrajuyashasvi
Hi I'm using a Transactional cache in my project with pessimistic repeatable_read mode. In my logic I have an ordered set of keys which need to be locked. I can lock in two ways. 1. Iterate through the ordered set and call get() on each key. 2. use getAll() passing the ordered set of keys.

Setting Ignite System Properties

2018-04-23 Thread kotamrajuyashasvi
Hi I would like to know how/where to set the Ignite System Properties before starting Ignite Cluster. https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteSystemProperties.html -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Ignite query statement reused/cached

2018-04-16 Thread kotamrajuyashasvi
Hi Does Ignite cache query Strings and reuse cached statements if same query String is to be executed? Suppose query String is same and the same query is run multiple times with different binding values, Does Ignite just reuse the cached query statement with the new bindings? Does it impact

Ignite Eviction Policy

2018-04-11 Thread kotamrajuyashasvi
Hi I am using ignite 2.3 with cassandra as persistent store. Suppose I use an Eviction policy and some entry gets evicted. Does that mean that entry can no longer be queried or there is some way ignite gets that entry from cassandra. -- Sent from:

Ignite Single Node vs Cluster of Nodes

2018-04-05 Thread kotamrajuyashasvi
Hi I would like to know the added advantages of using Cluster of Nodes instead of a single node(single node is sufficient for my data volume) in my use case . All the operations are sql queries. And if I use a cluster of nodes, the result set of a query will always be present on a single node(due

Ignite Client Hangs forever while connecting when already other Clients Joined the Cluster for a long time

2018-03-20 Thread kotamrajuyashasvi
Hi There are some Ignite Clients connected to a Cluster, performing transactional operations. Then after some time an Ignite Client tries to connect to the cluster . But the Client hangs up during connection. In the Ignite server logs we could find the following:

Ignite Client is taking a long time to connect with large number of Client connections

2018-03-19 Thread kotamrajuyashasvi
Hi I setup 4 Ignite Servers on 4 different machines. Then Ignite Clients are started on other machine to connect to these Ignite servers. A single Client is getting connected fast. But as the number of Client connections increase the connection time is decreasing. Is there any way to speed up the

Re: Transaction operations using the Ignite Thin Client Protocol

2018-01-13 Thread kotamrajuyashasvi
Hi Thanks for your response. The project I'm working on requires many C++ processes running on a machine with each C++ process to perform cache operations on Ignite Cluster transactionally. Hence Each Individual C++ process has to start an Ignite C++ Client node with in its process. But there

Re: Adding custom processor in Ignite Node

2018-01-11 Thread kotamrajuyashasvi
Hi Thanks for your response. As you mentioned will try to discuss/take help from the dev-list. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Adding custom processor in Ignite Node

2018-01-10 Thread kotamrajuyashasvi
HI Thanks for your response. Actually I want to implement custom Thin Client Processor/Server which will process requests from multiple C++ thin Client which use TCP socket communication. The Client requests are to perform sql queries , cache gets and puts and Ignite Transaction operations. I

Adding custom processor in Ignite Node

2018-01-10 Thread kotamrajuyashasvi
Hi I would like a start a custom processor on Ignite Node. After exploring the source code, I have created a custom processor class that extends GridProcessorAdapter. I added the code to start custom processor just like other processors in IgniteKernal.java passing the GridKernalContextImpl ctx

Re: Date type field in select query is returning wrong value when Time zones of Ignite Client and Server are different

2018-01-09 Thread kotamrajuyashasvi
Hi Thanks for your response. Temporary work-around that I found was to set Ignite Servers JVM timezone and Ignite Client JVM Timezone to a common value using _JAVA_OPTIONS="-Duser.timezone=xxx" -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Transaction operations using the Ignite Thin Client Protocol

2018-01-08 Thread kotamrajuyashasvi
Hi In Ignite ODBC all operations are sql based and as you mentioned sql transactions feature is not available yet. So cannot use it. So just exploring all light weight C++ client options available which support Ignite Transactions. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Transaction operations using the Ignite Thin Client Protocol

2018-01-08 Thread kotamrajuyashasvi
Hi according to https://cwiki.apache.org/confluence/display/IGNITE/IEP-9+Thin+Client+Protocol we can perform cache operations like get(),put() etc using thin client protocol which uses tcp socket communication with the Ignite server. I would like to know if similarly we can send a request to

Re: Transaction operations using the Ignite Thin Client Protocol

2018-01-08 Thread kotamrajuyashasvi
Hi Thanks for your response. I would like to know if Transaction operations on Ignite cache at key-value level(not SQL) can be performed using the Thin Client Protocol. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Transaction operations using the Ignite Thin Client Protocol

2018-01-08 Thread kotamrajuyashasvi
Hi I would like to perform Ignite Transaction operations from a C++ program using the Ignite Thin Client Protocol. Is it possible to do so ? If this feature is not available now, will it be added in future ? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Date type field in select query is returning wrong value when Time zones of Ignite Client and Server are different

2018-01-02 Thread kotamrajuyashasvi
Hi In my sample Demo Ignite java program, Initially a Person entry is inserted from the Ignite Client into the Ignite cache. The Person Pojo has a "dob" field which is of java.util.Date type. Now when the Person Object is obtained using _val in query, the getTime() on dob field of Person Object

Locking rows within Ignite Transactions

2017-12-04 Thread kotamrajuyashasvi
Hi I'm using Ignite Transactions(Ignite Version 2.1.0 and *TransactionConcurrency.PESSIMISTIC,TransactionIsolation.REPEATABLE_READ*") and after starting a transaction I need to lock certain rows. According to Ignite 2.1.0 Documentation *"Explicit locks are not transactional and cannot not be

Re: Ignite ODBC Driver v/s Ignite C++ driver

2017-11-17 Thread kotamrajuyashasvi
Hi Yes.. around 100-150 C++ processes or may be threads will be running on a machine, but each process/thread requires to use a separate transaction. I found out that along with sql transactions feature ticket, a separate ticket is present to implement transactions support for ODBC. Hope it will

Re: Reason for using JVM Instance for Ignite C++ Driver

2017-11-16 Thread kotamrajuyashasvi
Hi My doubts got cleared Thanks. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite ODBC Driver v/s Ignite C++ driver

2017-11-16 Thread kotamrajuyashasvi
Hi Thanks for your response. Actually I'm working on a C++ project where multiple C++ processes run in parallel. Each process should connect to Ignite Server initially and start a transaction. Cassandra is used as persistent store(The main reason to use ignite on top of Cassandra is for the

Reason for using JVM Instance for Ignite C++ Driver

2017-11-15 Thread kotamrajuyashasvi
Hi >From the Ignite Docs: Ignite ะก++ starts the JVM in the same process and communicates with it via JNI. I would like to know why a JVM instance is required? Why can't we have Ignite C++ driver communicate via TCP directly to the Ignite Server and from the server side process the request and

Ignite ODBC Driver v/s Ignite C++ driver

2017-11-15 Thread kotamrajuyashasvi
Hi I have a C++ Application that needs to perform query operations(DML and Select) and transactions on Ignite Server. Whats the best way to achieve this ? There are two choices: 1. Ignite ODBC driver and 2. Ignite C++ Driver. I would like to what would be right choice to use from the point of

Re: POJO field having wrapper type, mapped to cassandra table are getting initialized to respective default value of primitive type instead of null if column value is null.

2017-09-26 Thread kotamrajuyashasvi
Hi Denis I want to work on this issue. But I'm a newbie and I do not know the actual process like, How to assign the ticket to myself(JIRA username: kotamrajuyashasvi) and who would review the code , merging the code etc. Do you know any links which explain the process? -- Sent from: http

Re: POJO field having wrapper type, mapped to cassandra table are getting initialized to respective default value of primitive type instead of null if column value is null.

2017-09-26 Thread kotamrajuyashasvi
Hi I raised a ticket for the issue, as you said. https://issues.apache.org/jira/browse/IGNITE-6500 So In what Ignite version this issue fix will be given ? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: POJO field having wrapper type, mapped to cassandra table are getting initialized to respective default value of primitive type instead of null if column value is null.

2017-09-25 Thread kotamrajuyashasvi
Hi Thanks for your response. Following is a sample reproducer for the issue. ///PERSON POJO public class person { private Integer person_no; private String name; private Integer age;

Re: work around for problem where ignite query does not include objects added into Cache from within a transaction

2017-09-19 Thread kotamrajuyashasvi
Hi Thanks for your responses. I just wanted a temporary work around till the actual feature is implemented, even at the cost of performance. I have thought of another approach to this problem. I plan to use my own transaction mechanism instead of Ignite transactions. I can use explicit locks

ignite update sql query internal implementation

2017-09-11 Thread kotamrajuyashasvi
Hi In the ignite docs its given that ignite sql queries are internally converted to cache operations. What are the cache operations performed when update query is executed on a row? Do these cache operations to be performed depend on type of persistent storage used.. for example if cassandra is

hashcode() collisions for data having more than 2 power 32(around 4.3 billion) entries in ignite cache

2017-09-01 Thread kotamrajuyashasvi
Hi I am using a user-defined java object as a cache key in my ignite cache. Ignite uses the cache key objects overridden hashcode() method during mapping in cache. But hashcode() method returns an int which is 32 bits. Now if my cache has entries more than 2 power 32 which is around 4.3 billion ,

updating key object field using ignite sql query

2017-08-30 Thread kotamrajuyashasvi
Hi In my ignite application I am using a cache with an object/POJO as a cache key. Now how to update the key fields of cache key using ignite sql queries. When I try to update I am getting 'Failed to parse query' error. For example my cache stores value in person [fields: id,name,phno] and key

Ignite sql queries working transactionally

2017-08-30 Thread kotamrajuyashasvi
Hi In my ignite client application I need to perform a set of update/delete sql query operations transactionally. I observed that by using ignite transactions I was able to achieve this. When ever an update or delete query is executed with in a transaction, it is locking all resulting rows and

Ignite sql queries working transactionally

2017-08-30 Thread kotamrajuyashasvi
Hi In my ignite client application I need to perform a set of update/delete sql query operations transactionally. I observed that by using ignite transactions I was able to achieve this. When ever an update or delete query is executed with in a transaction, it is locking all resulting rows and

sql Injection prevention in ignite

2017-08-21 Thread kotamrajuyashasvi
Hi Using PreparedStatement of JDBC we can avoid/prevent sql Injection. Does *SqlFieldsQuery.setArgs(..)* in ignite also have same functionality to prevent sql Injection or Are there any other ways to prevent sql Injection in ignite. -- View this message in context:

POJO field having wrapper type, mapped to cassandra table are getting initialized to respective default value of primitive type instead of null if column value is null.

2017-08-11 Thread kotamrajuyashasvi
Hi I'm using ignite with cassandra as persistent store. I have a POJO class mapped to cassandra table. I have used KeyValuePersistenceSettings xml bean to map POJO to cassandra table. In the POJO one of the fields is Integer (wrapper class) mapped to int column in cassandra table. When I load any

Using Java ignite clients and calling them from c++ using JNI v/s using c++ ignite clients directly

2017-08-09 Thread kotamrajuyashasvi
Hi I have a c++ application that requires querying some data with transactions on ignite. So I require a ignite client which would be called by this c++ application which would request the ignite server for processing the query. Now there are two ways in which I could implement the ignite

Re: Affinity Key field is not identified if binary configuration is used on cache key object

2017-08-06 Thread kotamrajuyashasvi
Hi "I already did LoadCache before running the client program ".. I meant that LoadCache was successful but not Cache.Get(). LoadCache works similar to Get() right but does bulk operations? Even if I don't loadcache and try to call Get()[the key called by Get is initially not loaded/present in

Re: Affinity Key field is not identified if binary configuration is used on cache key object

2017-08-04 Thread kotamrajuyashasvi
Hi Thanks for the response. When I put cacheKeyConfiguration in ignite configuration, the affinity was working. But when I call Cache.Get() in client program I'm getting the following error. "Java exception occurred [cls=org.apache.ignite.binary.BinaryObjectException, msg=Binary type has

Re: c++ ignite: cache.ContainsKey(key object) method returns false even when key is present

2017-08-02 Thread kotamrajuyashasvi
Hi Thanks for pointing it out. The sample c++ client program ran fine though. But it might raise issues when more implementation is added. Will rectify my code. -- View this message in context:

Re: c++ ignite: cache.ContainsKey(key object) method returns false even when key is present

2017-08-02 Thread kotamrajuyashasvi
Hi Issue resolved. I forgot to put GetHashCode in c++ struct BinaryType of PersonPK. I had to implement same hashcode method used in PersonPK pojo. -- View this message in context:

Re: c++ ignite: cache.ContainsKey(key object) method returns false even when key is present

2017-08-02 Thread kotamrajuyashasvi
Hi I have added additional code in hashcode method of PersonPK to get trace of when the method is being called. I have added the following piece of code in hashcode method of PersonPK pojo. System.out.println("hashcode called :"+result);

Re: c++ ignite: cache.ContainsKey(key object) method returns false even when key is present

2017-08-02 Thread kotamrajuyashasvi
Hi. Thanks for the response.. ->The ignite version used is 1.9.0. ->With Java Client its working fine. - ignite config xml - http://www.springframework.org/schema/beans;

c++ ignite: cache.ContainsKey(key object) method returns false even when key is present

2017-08-01 Thread kotamrajuyashasvi
I am running c++ ignite client, with cassandra as persistent store. The cache has custom object as key. The key class is mapped in c++ and Java Pojo using BinaryType object. I also implemented hashcode and equals in java pojo. When I use cache.Get(key object) in c++ client I am able to retrieve

Re: using user defined object as key in ignite c++ client

2017-08-01 Thread kotamrajuyashasvi
Thanks for the response. I am able to use object as key now -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/using-user-defined-object-as-key-in-ignite-c-client-tp15727p15859.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Running Ignite client in C++

2017-07-24 Thread kotamrajuyashasvi
Hi.. thanks for your response. I'm able to run ignite c++ client by using a simple make file which has 'LDFLAGS' set to folders in $IGNITE_HOME/platforms/cpp , and 'LDLIBS' set to -lpthread, -lignite-common, -lignite, -lignite-jni, -lignite-binary. The IGNITE_HOME should have all the cpp

Running Ignite client in C++

2017-07-24 Thread kotamrajuyashasvi
Hi .. I'm a newbie in ignite. I was able to successfully deploy multiple ignite server nodes and run a client java program in java. The client java program required ignite-core.jar and some other jars. Now I want to run a sample ignite client in c++. I would like to know what are the main