Re: User-defined event

2020-01-20 Thread j_recuerda
It was my fault. I was not listening to remote events. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Use custom Data Region or custom Cache for IgniteAtomicReference - Ignite 2.3

2020-01-20 Thread j_recuerda
Hello, Thanks a lot, Ilya. According to this snippet, It should work when a DefaultDataRegion is configured, as you mention. I have tested and checked that this function returns true but it doesn't work, the AtomicSequence I am expecting to be persistent is not persisted. >From my point of view,

Re: JVM crashed with SIGSEGV with stack trace to OptimizedObjectOutputStream.writeObject

2020-01-20 Thread tarunk
Thanks Ilya, The node is not same always where it comes, and it keep changing. We got all nodes hardware/OS checked by respective teams, also raised the case with RedHat and got the response this should be service issue as only specific service is crashing. Curios to know why we got this raised

Client Vs Server Configuration

2020-01-20 Thread Victor
Hi, I am planning to use oob server nodes (i.e. started via ignite.sh) pass a configuration xml containing the basic discovery ip only. In my client code, i plan to define the Cache configuration, query fields and additionally my custom RDBMS support via implementing the CacheLoader->load(...)

Re: Query performance varying with LIMIT keyword

2020-01-20 Thread nunob
Also if I fix the LIMIT and vary the OFFSET I get responses of this magnitude: LIMIT 1 OFFSET 0: 50ms LIMIT 1 OFFSET 1: 200ms LIMIT 1 OFFSET 5: 700ms LIMIT 1 OFFSET 10: 1.3s LIMIT 1 OFFSET 50: 7.8s Why is this? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Could not create .NET CacheStore

2020-01-20 Thread siva
Hi, Thanks for replaying with example. I have some query regarding cache store access and registering configuration. 1.Add or configure cache on evey client node on starting node or access cache time instead of, is there any other way like one time register cache configuration, after onward any

Re: JDBC Connectivity

2020-01-20 Thread narges saleh
Hello Stephan, I mean using JDBC defined types in the XML file, to define the tables. Similar to the way JDBC types are used in defining tables with 3rd party databases. thanks. On Mon, Jan 20, 2020 at 10:04 AM Stephen Darlington < stephen.darling...@gridgain.com> wrote: > Which JDBC

Re: CacheKeyConfiguration

2020-01-20 Thread narges saleh
Thanks Stephan, I don't want to use POJO classes if I can help it. I want to mimic the following in my configuration file: CREATE TABLE IF NOT EXISTS Person ( id int, city_id int, name varchar, age int, company varchar, PRIMARY KEY (id, city_id)) WITH

Re: CacheKeyConfiguration

2020-01-20 Thread narges saleh
Thanks Stephan, I don't want to use POJO classes if I can help it. I want to mimic the following in my configuration file: On Mon, Jan 20, 2020 at 10:30 AM Stephen Darlington < stephen.darling...@gridgain.com> wrote: > Details on how to configure affinity colocation can be found in the >

Query performance varying with LIMIT keyword

2020-01-20 Thread nunob
Hello, I have table A with PK (col1, col2, col3) and table B with PK (col1, col2 col3) Both tables have around 300k records. This query executes in *2ms*: /SELECT * FROM table_a a LEFT JOIN table_b b ON b.col1 = a.col1 AND b.col2 = a.col2

Re: Native Persistence & JDBC

2020-01-20 Thread narges saleh
Hello Ilya I do have the PERSON2 cache. Here is the snippet for the cache configuration. I don't have any issue with this configuration if I don't enable native persistence. wrote: > Hello! > > Maybe you don't have PERSON2 cache? :) > > Regards, > -- > Ilya Kasnacheev > > > пн, 20

RE: Re: How best to push continuously updating ordered data on Apache ignite cache

2020-01-20 Thread Alexandr Shapkin
Hello! You could take a look at putAll method that sends all updates to the server right away. > *What is best way out of above to push continuously updating data like> market data?*For me it seems that the DataStreamer is more suitable for continuous data processing where you are not interested

Re: Use custom Data Region or custom Cache for IgniteAtomicReference - Ignite 2.3

2020-01-20 Thread Ilya Kasnacheev
Hello again! I guess that maybe you have to specify a default data region configuration here, and not just rely on default configuration for default data region. I also think this is a bug :) Regards, -- Ilya Kasnacheev пн, 20 янв. 2020 г. в 20:16, Ilya Kasnacheev : > Hello! > > It's very

Re: Use custom Data Region or custom Cache for IgniteAtomicReference - Ignite 2.3

2020-01-20 Thread Ilya Kasnacheev
Hello! It's very strange, considering the following code in 2.7.6: /** * @return {@code true} if persistence is enabled for at least one data region, {@code false} if not. */ public static boolean isPersistenceEnabled(DataStorageConfiguration cfg) { if (cfg == null) return false;

Re: java.lang.NullPointerException while preloadEntry

2020-01-20 Thread Ilya Kasnacheev
Hello! Can you provide logs from all server nodes? I think there's something in them, besides this error. Regards, -- Ilya Kasnacheev пн, 20 янв. 2020 г. в 20:03, userx : > Hi, > > Topology version is 67. Ignite version is 2.7.6. > > I went through the thread mentioned by you but in our

Re: java.lang.NullPointerException while preloadEntry

2020-01-20 Thread userx
Hi, Topology version is 67. Ignite version is 2.7.6. I went through the thread mentioned by you but in our case, we do not have clients connecting and disconnecting time and again. If a client is connected to the cluster, the topololgy version is increased by 1. The client doesn't disconnect

Re: Use custom Data Region or custom Cache for IgniteAtomicReference - Ignite 2.3

2020-01-20 Thread j_recuerda
Hi, Ilya, I am afraid I have tested it and it doesn't. Thanks! ilya.kasnacheev wrote > Hello! > > I think that system region is persistent if *any* of the regions is > persistent, not just the default one. > > Regards, > -- > Ilya Kasnacheev -- Sent from:

Re: Native Persistence & JDBC

2020-01-20 Thread Ilya Kasnacheev
Hello! Maybe you don't have PERSON2 cache? :) Regards, -- Ilya Kasnacheev пн, 20 янв. 2020 г. в 02:47, narges saleh : > Hi All > > I am using JDBC connection for inserting data into caches specified in my > config file (via query entities). If I don't enable native persistence, > everything

User-defined event

2020-01-20 Thread j_recuerda
Hi, I am running Ignite 2.7.0. I am trying to trigger a user-defined event that can be listened by all the nodes in the cluster but in the IgniteEvents API there is just 'recordLocal', which doesn't trigger the listeners in remote nodes. I have looked for a way of doing so in the documentation

Re: CacheKeyConfiguration

2020-01-20 Thread Stephen Darlington
Details on how to configure affinity colocation can be found in the documentation: https://www.gridgain.com/docs/latest/developers-guide/data-modeling/affinity-collocation In short, use the “indexedTypes” property in the XML file and the @AffinityKeyMapped annotation in your POJO key,

Re: Use custom Data Region or custom Cache for IgniteAtomicReference - Ignite 2.3

2020-01-20 Thread Ilya Kasnacheev
Hello! I think that system region is persistent if *any* of the regions is persistent, not just the default one. Regards, -- Ilya Kasnacheev пт, 17 янв. 2020 г. в 21:52, Mikael : > Hi! > > If you set the default region persistent all services will be persistent > also, I guess this goes for

Re: JVM crashed with SIGSEGV with stack trace to OptimizedObjectOutputStream.writeObject

2020-01-20 Thread Ilya Kasnacheev
Hello! If it's always the same physical machine, I would check hardware and/or OS. I don't remember seeing this exception and I don't see why you would only see it on 1 node. Regards, -- Ilya Kasnacheev пн, 20 янв. 2020 г. в 11:50, tarunk : > Hi All, > > In our 12 nodes ignite cluster one

Re: JDBC Connectivity

2020-01-20 Thread Stephen Darlington
Which JDBC settings? If you use the JDBC thick client, you can define your caches there if you like. > On 18 Jan 2020, at 12:01, narges saleh wrote: > > Hello Stephan, > > Thanks. I get this working using query entity in my XML config file. I assume > it is not possible to do the same with

Re: java.lang.NullPointerException while preloadEntry

2020-01-20 Thread Ilya Kasnacheev
Hello! I can see there is a previous occurrence of this issue: http://apache-ignite-users.70518.x6.nabble.com/NullPointerException-in-GridDhtPartitionDemander-td19010.html Can you elaborate what is your topology version and actual Ignite version? Maybe you can find anything else in server logs?

RE: Populate ddl (e.g., create table) to third party persistence

2020-01-20 Thread Alexandr Shapkin
Hello! I don’t think it could be done out of the box. You could try to start from the opposite side and generate a schema from a RDBMS instead using the WebConsole [1]. [1] - https://www.gridgain.com/docs/web-console/2019.12.02/automatic-rdbms-integration  From: crypto_rickleeSent: Friday, January

RE: Re: Cache entries expiring in pageEvictionMode=DISABLED

2020-01-20 Thread Alexandr Shapkin
>What's worse - they are evicted on one node, and eviction>is not propagated on the other two nodes (so now every node has different>count of entries for that cache, even though it's replicated) Data region configuration defines a local machine’s memory settings, it doesn’t propagate to other

java.lang.NullPointerException while preloadEntry

2020-01-20 Thread userx
hi team, I recently observed an error bringing down one of the ignite server nodes. The log mentions a NullPointerExceptionException on preload of an entry. Subsequently 2 other nodes went down. Here is the stack trace of first failure 2019-12-14 06:47:51,030 ERROR [sys-#61006%ABCD4%] {}

Re: How does a cache behave in LOCAL mode ?

2020-01-20 Thread userx
Thank you. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Streamer and data loss

2020-01-20 Thread Ilya Kasnacheev
Hello! If you use it in a smart way you can get very close performance (to allowOverwrite=true data streamer), I guess. Just call it with a decent number of entries belonging to the same cache partition from multiple threads, with non-intersecting keys of course. Regards, -- Ilya Kasnacheev

Re: Getting all data from cache via scan query is taking lot of time

2020-01-20 Thread Pavel Tupitsyn
Ticket filed and fix is on the way: https://issues.apache.org/jira/browse/IGNITE-12555 On Tue, Jan 14, 2020 at 6:44 PM Pavel Tupitsyn wrote: > I've tried that code with a single local Ignite server, started with > default configuration, the result is: >Time for PutAll: 187 ms for rows: 7500

Re: Could not create .NET CacheStore

2020-01-20 Thread Pavel Tupitsyn
Yes, you can create a cache template in two ways: * At startup: add IgniteConfiguration.CacheConfiguration where Name has an asterisk in it, like 'cache-foo-*' * After startup: Ignite.AddCacheConfiguration, same thing with `*` in the Name After that, when you call CreateCache(string name), and

JVM crashed with SIGSEGV with stack trace to OptimizedObjectOutputStream.writeObject

2020-01-20 Thread tarunk
Hi All, In our 12 nodes ignite cluster one of the node jvm get crashes sometimes with below error. Is this some know issue with Ignite ? or some other memory/jvm issue. We are using openjdk 1.8 ("1.8.0_232") provided by RedHat. A fatal error has been detected by the Java Runtime Environment: # #