Re: Affinity quesions

2018-10-05 Thread vkulichenko
James, That would be enough - everything with the same affinity key will be stored on the same node. That's assuming, of course, that both caches have equal affinity configuration (same affinity function, same number of partitions, etc.). -Val -- Sent from:

Re: Spark Ignite : Unsupported data type ArrayType(StringType,true)

2018-10-05 Thread vkulichenko
This is a known issue: https://issues.apache.org/jira/browse/IGNITE-9229. Looks like it didn't make it to 2.7, but hopefully someone in the community will pick it up soon and fix. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Task failover in ignite

2018-10-01 Thread vkulichenko
Prasad, prasadbhalerao1983 wrote > Are you saying that when a primary node dies the former backup node > becomes > new primary for ALL backup partitions present on it and only primary > partitions are moved in rebalancing process? Not for all partitions, but only for those for which primary

Re: Task failover in ignite

2018-10-01 Thread vkulichenko
Prasad, When a primary node for a partition dies, former backup node for this partition becomes new primary. Therefore there is no need to wait for rebalancing in this case, data is already there. By default job will be automatically remapped to that node, but with 'withNoFailover()' you'll have

Re: Task failover in ignite

2018-09-28 Thread vkulichenko
Prasad, Since you're using withNoFailover(), failover will never happen and the task will just fail with an exception on client side if primary nodes dies. It's up to your code to retry in this case. When you retry, the task will be mapped to the new primary, which is former backup and therefore

Re: java.lang.IllegalArgumentException: Can not set final

2018-09-25 Thread vkulichenko
Probably that's the issue :) In any case, Java serialization successfully deserializes such objects, so I think it's a bug. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Is there a way to use Ignite optimization and Spark optimization together when using Spark Dataframe API?

2018-09-25 Thread vkulichenko
Ray, This sounds suspicious. Please show your configuration and the execution plan for the query. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: java.lang.IllegalArgumentException: Can not set final

2018-09-25 Thread vkulichenko
Ilya, Do you know what is the reason for such limitation? It doesn't sounds right to me, I believe any other marshaller would work just fine with final fields. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: IgniteSparkSession exception:Ignite instance with provided name doesn't exist. Did you call Ignition.start(..) to start an Ignite instance? [name=null]

2018-09-20 Thread vkulichenko
Does the configuration file exist on worker nodes? I looks like it actually fails to start there for some reason, and then you eventually get this exception. Are there any other exception in worker/executor logs? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Is there a way to use Ignite optimization and Spark optimization together when using Spark Dataframe API?

2018-09-20 Thread vkulichenko
If join is indexed and collocated, it still can be pretty fast. Do you have a particular query that is slower with optimization than without? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: ignite.events().remoteListen unmarshal0 throw class not found

2018-09-20 Thread vkulichenko
Can you show the full trace? Most likely it's failing on server side because you don't actually have the class there. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Is there a way to use Ignite optimization and Spark optimization together when using Spark Dataframe API?

2018-09-19 Thread vkulichenko
Ray, Per my understanding, pushdown filters are propagated to Ignite either way, it's not related to the "optimization". Optimization affects joins, gropings, aggregations, etc. So, unless I'm missing something, the behavior you're looking for is achieved by setting

Re: how to configure apache ignite as cache api and as spring cache provider

2018-09-13 Thread vkulichenko
Monil, You can also use IgniteSpringBean to initialize Ignite separately from SpringCacheManager, but within Spring context. So you need to configure following beans: 1. PercentageDataRespository 2. IgniteConfiguration 3. IgniteSpringBean (IgniteConfiguration is injected via 'configuration'

Re: how to configure apache ignite as cache api and as spring cache provider

2018-09-13 Thread vkulichenko
You need to make sure Ignite is started *before* SpringCacheManager. Basically, you have two options: 1. Start Ignite manually using Ignition.start, and then start Spring app with SpringCacheManager that references already started Ignite via 'igniteInstanceName' property. 2. Incorporate

Re: how to configure apache ignite as cache api and as spring cache provider

2018-09-12 Thread vkulichenko
Ignition.start is supposed to start an Ignite instance, so passing spring-cache.xml file that doesn't contain any Ignite configuration doesn't make sense. The SpringCacheManager bean should be part of the Spring Application Context, it then will be used as an entry point to Ignite cluster. It

RE: Ignite Thin Client Continuous Query

2018-09-11 Thread vkulichenko
Gordon, Generally, having CQ on thin client would definitely be awesome. My only point is that thin client has several technical limitations that would introduce multiple "ifs" into the functionality. What exactly those ifs are, and weather there is still value with all those ifs, is a big

Re: Ignite Thin Client Continuous Query

2018-09-11 Thread vkulichenko
Gaurav, Web Console receives updates from web agent which periodically polls the cluster. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Configuring TcpDiscoveryKubernetesIpFinder

2018-09-11 Thread vkulichenko
Jeff, Ignite configuration is an XML file which can be quite large. What is the reason for the requirement to specify it inline? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

RE: Ignite Thin Client Continuous Query

2018-09-10 Thread vkulichenko
Gordon, Yes, generally we do recommend using thin client for such applications. However, it doesn't mean that you can't us client node in case it's really needed, although it might require some additional tuning. Would you mind telling if you have any other technology in mind? I highly doubt

Re: Error installing Ignite on K8s

2018-09-10 Thread vkulichenko
Does it work without specifying sessionAffinity? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite Thin Client Continuous Query

2018-09-10 Thread vkulichenko
Gordon, Ignite thin client uses request-response model, which is not really suitable for functionality like this. I would never say never, but I think it's very unlikely that thin client would get any feature that imply pushing updates from server to client (this includes near caches, any type of

Re: Question About Persistence

2018-09-07 Thread vkulichenko
Hi Alper, You can create two separate data regions [1], one for the data within the threshold, another for outside. The latter can have very little memory allocated and persistence enabled, which would mean that data in this region is stored only on disc for the most part. -Val -- Sent from:

Re: Key fields are not part of the value object

2018-08-31 Thread vkulichenko
You're confusing object schema and SQL schema. By adding those field via binary object builder, you amended the former, but not the latter. SQL schema stayed the same, with (a,b) being key fields not presented in value. I would not recommend to do this, as you can end up having weird issues (for

Re: Key fields are not part of the value object

2018-08-31 Thread vkulichenko
Why not use SQL API and execute a 'select *', since that's what you're actually looking for? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Affinity key in SQL execution

2018-08-30 Thread vkulichenko
Prasad, To achieve the best performance, join criteria should be the same as collocation criteria. E.g., if you join by userId, then userId should be used as affinity key. Please learn more about distributed joins here: https://apacheignite-sql.readme.io/docs/distributed-joins -Val -- Sent

Re: unsubscribe

2018-08-28 Thread vkulichenko
Ignite community is helpful even to those who leaves :) -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Affinity key in SQL execution

2018-08-28 Thread vkulichenko
Prasad, 1. Yes, you will always see it in the execution plan because there are always two stages. Of course, if only one server node participates in the execution, the reduce stage is effectively no-op. 2. Yes, you need to put the annotation to make sure you can access it from queries. I would

Re: Affinity key in SQL execution

2018-08-27 Thread vkulichenko
Hi Prasad, 1. First plan is for map phase (executed on server side) and the second one is for reduce phase (executed on client side). Merge scan means that it just merges result sets from all participating server nodes. Sometime it can contain additional reduce steps like final groupings,

Re: ScanQuery predicate serialization

2018-08-24 Thread vkulichenko
Serialization of the filter must happen, because it's invoked on server nodes and therefore needs to be instantiated there. However, peer class loading can be used for production. If you see this callout in the documentation, you're probably looking at some old version of it. -Val -- Sent

Re: Affinity key in SQL execution

2018-08-22 Thread vkulichenko
Prasad, In this case using subscriptionId in query would be a syntax error, because the name of the field is affinityId. If you use affinityId, however, Ignite will route the query to a single node. It knows that it's affinity key based on @AffinityKeyMapped annotation. -Val -- Sent from:

Re: Affinity key in SQL execution

2018-08-21 Thread vkulichenko
There are several ways to do this. First one is shown in your first message - DefaultDataAffinityKey instance plays the role of primary key, while enclosed affinityId field plays the of affinity key, because it's annotated with @AffinityKeyMapped. In case you don't have classes at all and

Re: Affinity key in SQL execution

2018-08-21 Thread vkulichenko
Prasad, Affinity key is always a part of primary key. For example, in your case primary key consists of two fields - id and subscriptionId. Therefore you can query by primary key without providing the affinity key. On the other hand, however, query can be routed to a single node even if only

Re: Specify Port for discovery?Stop the discovery?

2018-08-05 Thread vkulichenko
You're using the Multicast IP finder, therefore nodes discover each other via multicast even if port ranges do not intersect. Try switching to static IP finder: https://apacheignite.readme.io/docs/tcpip-discovery#section-static-ip-finder -Val -- Sent from:

Re: How to do rolling updates with embedded Ignite and changing models

2018-08-02 Thread vkulichenko
Roger, To be able to change the schema in runtime, you need to make sure there are no model classes deployed on server nodes and therefore no deserialization happens. Since you run in embedded mode and have only server nodes, then you actually can't use POJOs in your data modes at all. You should

Re: entyproccessor dont locking entry

2018-07-30 Thread vkulichenko
You're iterating through some collection of key-value pairs and then use value from that pair within the entry processor, which is incorrect. You should always use the one acquired via entry.getValue(); there. I would actually recommend you to create a separate class instead of using lambda for

Re: Why thereis a Binary Marshaller?

2018-07-30 Thread vkulichenko
The point here is that Ignite stores data in binary format, and deserialization happens only on client side. Therefore, you can start server nodes without deploying Person and Organization classes there, and the example will still work. On top of that, you can change class definition on client

Re: Changing existing persistent caches.

2018-07-30 Thread vkulichenko
Hi Dave, Currently there is no ability to change any cache configuration parameters except the ones you mentioned - you turn on/off statistics and modify schema using DDL. You can't change persistence settings in runtime as well, because that would require changing the data region cache is

Re: rest api rmdbs integration

2018-07-29 Thread vkulichenko
If you're using a database that doesn't have a driver in Maven Central repo (SQL Server is one of the examples), you should copy the driver manually into 'jdbc-drivers' folder. Please refer to README.txt file included in the project for details. -Val -- Sent from:

Re: rest api rmdbs integration

2018-07-27 Thread vkulichenko
The error means that there is no such class on classpath. Please check if that's the case or not. You can also provide your project and steps to reproduce the issue, I will take a look then. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: INSERT query that UPDATES if record already found

2018-07-26 Thread vkulichenko
Sounds like you're looking for the MERGE command: https://apacheignite-sql.readme.io/docs/merge -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Help needed with BinaryObjectException

2018-07-26 Thread vkulichenko
Roger, When exactly do you get this exception and what are the steps to reproduce it? Do you change the set of values in the enum? Do you restart the cluster when doing this? Ideally, it would be great if you provide a reproducer that we can just run to recreate the problem. That would help to

Re: UnsupportedOperationException when updating a field in binary object

2018-07-23 Thread vkulichenko
This test stops working though if you replace line 30 with this: builder.setField("set", Collections.unmodifiableSet(Sets.newHashSet("a", "b", "c"))); If unmodifiable set is written, it's then read as unmodifiable set as well, and therefore can't be modified. I believe this is the reason for the

Re: Failed to connect to any address from IP finder

2018-07-22 Thread vkulichenko
Anand, I don't think it's a version issue. As I mentioned earlier, you server was bound to 47501 according to you logs. I believe after restart it bound to 47500 and your client was able to connect. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Failed to connect to any address from IP finder

2018-07-21 Thread vkulichenko
You server node bound to port 47501 rather than 47500 for some reason (most likely the latter was occupied by some other process). Try to add port range to the IP finder on client side. Replace this line: ipFinder.setAddresses(Arrays.asList("127.0.0.1", "172.20.98.77")); with this:

Re: Running Server Node in UNIX

2018-07-16 Thread vkulichenko
You cannot include JARs into another JAR, Java is not going to add them to classpath. You should list all required JARs in the '-cp' parameter, or create an uber-JAR with all the dependencies unpacked there. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Does event listener keep the order of events as they occur on the cluster?

2018-07-13 Thread vkulichenko
You should use continuous queries for this: https://apacheignite.readme.io/docs/continuous-queries. They provide exactly once notification semantics with ordering guarantees. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Questions on setting up firewall for multicast cluster discovery.

2018-06-29 Thread vkulichenko
Hi Jon, First of all, you don't have to use multicast for discovery. Using static IP configuration or one other shared IP finder might simplify the setup: https://apacheignite.readme.io/docs/tcpip-discovery Second of all, I'm not sure I fully understand what you're trying to achieve. Are both

Re: Throwing error after enabling

2018-06-20 Thread vkulichenko
Bhaskar, It's still the same version - 2.2.0. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Throwing error after enabling

2018-06-19 Thread vkulichenko
Bhaskar, Which version are you on? This configuration was added in 2.5. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: How to use Affinity Function to Map a set of Keys to a particular node in a cluster?

2018-06-12 Thread vkulichenko
Yes, every time topology is changed, assignments will be recalculated and data will be rebalanced. By partitioning mechanisms I meant basically the same that Dmitry was describing before. Ignite automatically distributes cache entries across nodes based on built-in affinity function. This

Re: How to use Affinity Function to Map a set of Keys to a particular node in a cluster?

2018-06-12 Thread vkulichenko
Hi the_palakkaran, Where this requirement is coming from? Why won't you just use partitioning mechanisms Ignite provides out of the box? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Using Java executor service inside Ignite transaction

2018-06-11 Thread vkulichenko
Prasad, Parallel updates in a transaction are not possible. As a matter of fact, they happen during commit, so doing actual 'put' invocations won't provide any improvement. Also, you transaction seems to be local, so I don't think you are going to be faster than you are now. However, if

Re: Zookeeper discovery register all network interfaces address

2018-06-07 Thread vkulichenko
By default Ignite binds to all interfaces (0.0.0.0) and therefore publish all available IPs. If you want to bind to a specific address, you can set IgniteConfiguration#localHost property. In this case only this address would be published. -Val -- Sent from:

Re: Continuous query - Exactly once based event across multiple nodes..

2018-06-07 Thread vkulichenko
JP, Do you have a solution for this? Do you need any more help? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Using Java executor service inside Ignite transaction

2018-06-07 Thread vkulichenko
Prasad, What is your business use case and what do you mean by processing? Please describe in more detail. Are you sure you need to use the transaction here in the first place? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Using Java executor service inside Ignite transaction

2018-06-06 Thread vkulichenko
Prasad, Transaction is always attached to a single thread. If you do txStart in one thread, and then a cache operation in any other thread, this operation will not be enlisted. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: POM File for Spark Ignite dataframes development

2018-06-06 Thread vkulichenko
This project demonstrates this functionality: https://github.com/vkulichenko/IgniteSparkIoT/tree/dataframes -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite on Graal VM

2018-06-05 Thread vkulichenko
There was a discussion on the dev list regarding this: http://apache-ignite-developers.2346864.n4.nabble.com/Using-GraalVM-instead-of-standard-JVM-td30284.html I'm sure if anyone tried to run though, feel free to follow up there and ask. -Val -- Sent from:

Re: Does equals method have relevance in Custom Key Class

2018-06-04 Thread vkulichenko
Ignite stores data in binary form and has its own algorithms for hashCode/equals that are based on binary representation to avoid deserialization. Therefore overriding equals would not have any affect. Actually, I'm not sure I understand why you want to override it in the first place. The

Re: Node failure handling semantics

2018-05-07 Thread vkulichenko
Nick, If B is unhealthy, C will not be able to send a heartbeat message to it. After a timeout, C will consider B as failed and will connect to A. Along with this connection it will send a NODE_FAILED message that will go through all the nodes. Once B is back again, it will try to send a message

Re: Continuous query - Exactly once based event across multiple nodes..

2018-05-07 Thread vkulichenko
JP, Can you please describe the business case behind this? What are you trying to achieve on application level? What guarantees are needed and why? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Using a cache as an affinity co-located processing buffer in Ignite.Net

2018-04-27 Thread vkulichenko
Raymond, If you go with approach I described above, I would actually recommend to use interceptors: https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/cache/CacheInterceptor.html Continuous query seems to be a bit cumbersome for this. -Val -- Sent from:

RE: Using a cache as an affinity co-located processing buffer in Ignite.Net

2018-04-27 Thread vkulichenko
Raymond, It sounds like you want to run certain computation on every data update in the cache, is that right? To achieve that you can use local continuous queries, but: - Remote filter would be executed on both primary and backup, so computation will be executed more than once. - You can filter

Re: Node failure handling semantics

2018-04-27 Thread vkulichenko
Nick, Here are some comments on your questions: 1. Heartbeat is always sent to the next node in the ring. That's the whole point of the ring architecture vs. peer-to-peer. 2. That's not possible, because each discovery message is sent across the ring, and the ordering of those messages is

RE: Using a cache as an affinity co-located processing buffer in Ignite.Net

2018-04-26 Thread vkulichenko
Raymond, If you want to have a single continuous query on one of the server nodes, then I think singleton service is the best option to achieve that. It will not only guarantee that there is one query at a time, but will also make sure to redeploy it in case of failure. Also I would be accurate

Re: Which ports does ignite cluster need to run normally?

2018-04-26 Thread vkulichenko
Hi, The configuration is fine and it does eliminate ranges so that node always binds to 47500. The only drawback is that if 47500 is not available for whatever reason, node would not start. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Which ports does ignite cluster need to run normally?

2018-04-21 Thread vkulichenko
The only place where Ignite uses UDP is multicast IP finder [1]. Default number is 47400. [1] https://apacheignite.readme.io/docs/cluster-config#multicast-based-discovery -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Why Ignite SQL can not support transactional mode transaction

2018-04-21 Thread vkulichenko
This is being developed now, here is the ticket you can track: https://issues.apache.org/jira/browse/IGNITE-4191 -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite thread state Waiting/blocked

2018-04-19 Thread vkulichenko
Prasad, Probably "inherit" term is not a correct one here, and in general I'm not the biggest Spring expert, sorry :) What I meant is that if Ignite is declared as a bean, there can be another bean that depends on Ignite (IgniteAtomicSequence in this case), right? If Ignite is declared as a

Re: Customized affinity function

2018-04-19 Thread vkulichenko
Statistically it's very unlikely that all big subscriptions (or many of them) will end up together. So I would check if there is an issue first and go from there. Technically you can implement your own AffinityFunction to customize distribution. But that's not a trivial task as you will have to

Re: Reclaim memory from off-heap

2018-04-19 Thread vkulichenko
Deepesh, Memory is allocated by a data region, not by a particular cache. So yes, you can destroy and create caches in a region to reuse its memory. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Which ports does ignite cluster need to run normally?

2018-04-19 Thread vkulichenko
Most of these seem to ephemeral ports assigned to discovery and communication clients when they connect to well known configured ports on server side. That would always happen for any TCP connection. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Slow invoke call

2018-04-19 Thread vkulichenko
Sam, Entry processor is indeed executed within a lock, this is required to achieve atomicity. So if there is high contention on a single key, requests will wait for each other. And this is yet another reason to make entry processor implementation as lightweight as possible so that it does not

Re: Ignite thread state Waiting/blocked

2018-04-19 Thread vkulichenko
1. Can you show full thread dump, not only the thread that creates atomic sequence? Also are there any exception on server nodes? 2. You can use IgniteSpringBean to initialize Ignite as a bean, and then inherit other stuff from it. -Val -- Sent from:

Re: ignite cluster in AWS - s3 discovery

2018-04-13 Thread vkulichenko
Are there any exceptions on startup? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Primary and Backups caches questions.

2018-04-12 Thread vkulichenko
Hi Mauricio, 1. This is correct. 2. Queries return the actual data, therefore you see every entry only once. The fact that there are backups is internal and is not related to query results. And actually, I don't think the check you're doing is valid because different queries are not in sync with

Re: How to set Expiry Policies when using Dataframe API to save data to Ignite?

2018-04-11 Thread vkulichenko
Ray, You can use IgniteDataFrameSettings#OPTION_CREATE_TABLE_PARAMETERS parameter to specify custom parameters that Spark should use when creating new table in Ignite. Provided string will be attached to WITH clause of Ignite's CREATE TABLE command [1]. For expiry policy in particular, you can

Re: Customized affinity function

2018-04-11 Thread vkulichenko
Prasad, Are you collocating data by subscription? Do you have any actual issue with data distribution? With 1 subscriptions, I don't see why would you have one with default settings. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite Eviction Policy

2018-04-11 Thread vkulichenko
Entries that are evicted according to eviction policy will not be returned by a SQL query. If your dataset does not fit in memory, consider using native Ignite persistence storage instead of Cassandra: https://apacheignite.readme.io/docs/distributed-persistent-store -Val -- Sent from:

Re: Ignite.net closures

2018-04-11 Thread vkulichenko
.withAsync() is actually a deprecated way for asynchronous execution. In the latest versions, there are separate methods that should be used for this (e.g. runAsync, callAsync, etc.). Same goes for .NET - there are RunAsync, CallAsync and others. As for listening, .NET async methods return

Re: Slow invoke call

2018-04-10 Thread vkulichenko
Hi Sam, What does this byte array represent? You have to array copies in the entry processor, so I'm not surprised it doesn't perform very well. That's also the reason why it gets worse when size of the array is increased. The fact that you're using off-heap also make it worse in this case as it

Re: Readonly nodes

2018-04-10 Thread vkulichenko
Ignite doesn't have authentication/authorization capabilities at the moment, however there are certain plans for that as far as I know. In the meantime, you can take a look 3rd party vendors like GridGain that have paid offerings for this: https://docs.gridgain.com/docs/security-and-audit -Val

Re: How to query cross-node Cache data with JDBC correlation?

2018-04-10 Thread vkulichenko
Hi, Unfortunately, I doubt this description would be efficient to understand what's going on. Do you have a reproducer that you can share with us? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: JMX-MBean Reports OffHeapAllocatedSize as zero

2018-04-10 Thread vkulichenko
Hi Christoph, Can you try 2.4.0? I know there were some fixes for memory metrics, so there is a big chance you will not reproduce the issue with the latest version. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Unsubscribe Me

2018-04-07 Thread vkulichenko
To unsubscribe from this list you should send an email to user-unsubscr...@ignite.apache.org -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: One time replicating of the cluster data for setting up a new cluster

2018-04-04 Thread vkulichenko
Dave, Log files location depend on logger configuration. For example, in log4j it's controlled by "File" parameter of the file appender. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Getting "BinaryObjectException: Failed to deserialize object" while trying to execute the application using multi node

2018-03-28 Thread vkulichenko
Michael, There is no much detail to add. Although it's technically possible to serialize lambdas and anonymous classes, it's usually not recommended, as they can reference some objects from outside. If these objects are not serializable (or not intended to be serialized), you're likely to get

Re: JTA transactions in Iginte

2018-03-28 Thread vkulichenko
Prasad, 1. JTA is an abstraction that is not related to Ignite, so exact details would depend on how your application is organized. But basically you need to do the following: - Acquire the transaction manager (from a container, from Spring app context or whatever you use for management of such

Re: ContinuousQuery - SqlFieldsQuery as InitialQuery

2018-03-27 Thread vkulichenko
I actually don't think it relates to initial query, although it definitely guarantees exactly-once for listener updates. Andrew, am I wrong? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: JTA transactions in Iginte

2018-03-26 Thread vkulichenko
Prasad, First, I'm not sure why you think write-though would be slower than using JTA. I'm probably missing something, but I believe you should at least test this before making decision. In any case, if you use JTA, Ignite would automatically enlist any cache operations into ongoing JTA

Re: Graph Query Integration

2018-03-25 Thread vkulichenko
There is no native graph support in Ignite. However, for certain use cases it might be possible to store graph data in a set of caches, and then use compute APIs [1] to do the processing. [1] https://apacheignite.readme.io/docs/compute-grid -Val -- Sent from:

Re: Liquibase with Ignite?

2018-03-25 Thread vkulichenko
Never heard of anyone doing this, but I don't see why it wouldn't work. Did you have any issues while working with this combination? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: How to achieve writethrough with ignite data streamer

2018-03-25 Thread vkulichenko
Hm.. Not sore what happened exactly in your case, but cache store is never deployed via peer class loading. It's required that you have a class explicitly deployed on every node prior to start up. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: how to organize groups in cluster?

2018-03-25 Thread vkulichenko
Can you clarify what you mean by "real-time query" in this case? Why not just start node C as a client and run a query from it? -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Any references - Syncing Ignite and Oracle DB with Oracle GoldenGate - updates from DB to ignite

2018-03-25 Thread vkulichenko
Naveen, Ignite does not provide such integration out of the box, however there a commercial offering from GridGain for that: https://docs.gridgain.com/docs/goldengate-replication -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: ContinuousQuery - SqlFieldsQuery as InitialQuery

2018-03-25 Thread vkulichenko
This makes sense, and actually that's exactly how initialQuery works. It's executed after continuous query listener is deployed, so nothing is missed, but duplicates are possible. -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite @QuerySqlField on interfaces instead of classes

2018-03-22 Thread vkulichenko
Wilhelm, First of all, your code doesn't make much sense, it won't compile. But in any case, Ignite stores data in binary format [1] that allows to not deserialize values when running SQL queries. Internally, it works only with fields and would never call a getter. Therefore, you can put

Re: Is class inheritance supported in ignite 2.4.0?

2018-03-22 Thread vkulichenko
Wilhelm, When you're working with SQL in Ignite, you should think about data types in the same way as about tables in relational databases. SQL works with a particular schema, and therefore if there is a 'Vehicle' table, it can only store attributes that are generic for all vehicles. There is no

Re: Ignite Expiry Inconsistency with Native Persistence

2018-03-22 Thread vkulichenko
Subash, Yes, I reproduced it now. Looks like a bug to me, I created a ticket: https://issues.apache.org/jira/browse/IGNITE-8027 -Val -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Ignite Expiry Inconsistency with Native Persistence

2018-03-20 Thread vkulichenko
Subash, When you run the test, is this the only node, or there are some other nodes running? I actually can't reproduce the issue even with your code. Here is what I do: - Clean up the work directory. - Run the test, wait for output, stop. - Comment out 'put' invocations. - Run again. The output

  1   2   3   4   5   6   7   8   9   10   >