java.lang.StackOverflowError when put a value on Ignite cache 2.7.6

2020-07-21 Thread abraham
I am using Ignite 2.7.6 in a cluster of 2 servers with persistence enabled. It is working fine but suddenly a java.lang.StackOverflowError happens. Do you know if it is a bug in 2.7.6 version or maybe I am doing something wrong? Error trace is attached. ignite-2.txt

Ignite DefaultDataRegion config

2020-07-21 Thread kay
Hello! What size should I give you for DefaultDataRegion? Every cache has a specific Region(I'm not going to use defaultDataRegion) 40MB is enough? If will not use defaultDataRegion. Thank you so much I will wait for reply! -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Checking dataregion limits

2020-07-21 Thread Victor
Hi, What is the best way to check for data region limits. Currently i am using below mbeans attributes to monitor this, 1. CacheClusterMetricsMXBeanImpl / CacheLocalMetricsMXBeanImpl Size - provides the total entries. 2. DataRegionMetricsMXBeanImpl OffHeapSize - Shows close to the max size i hav

Re: Apache Ignite CacheRebalanceMode Is Not Respected By Nodes

2020-07-21 Thread Evgenii Zhuravlev
Hi, CacheRebalanceMode is responsible for a different thing - it starts to work when data need to be rebalanced due to topology(or baseline topology change). It's not responsible for data distribution between nodes for put operations. So, when you insert data, part of this data belongs to the part

Re: Bug with client cache_size for metrics() and localMetrics()

2020-07-21 Thread tschauenberg
Apologies. I modified the tests to wait longer for the 2.8.1 test scenario on the client printouts and eventually the cluster metrics started reporting. Client - Cluster metrics: cache_size=100 Client - Local metrics: cache_size=0 -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: 3rd party persistence: Mapping with RDBMS tables that don't have primary keys

2020-07-21 Thread Denis Magda
Hi Alex, How will you access such records in Ignite? SQL lookups? If primary key-based searches are irrelevant in Ignite as well then think about the following: - Obviously, Ignite still requires a primary key and that can be an integer number incremented by your application: https://apa

Re: ContinuousQueryWithTransformer with custom return type

2020-07-21 Thread Denis Magda
Both the local listener and remote filter will return BinaryObjects as long as the continuous query was registered with the "cache.withKeepBinary()" option set. However, there is a trick you can use in the implementation of the local listener. Just call "deserialize()" method on the instance of a

Re: Load balanced CQ listener/Catch up missed events

2020-07-21 Thread Denis Magda
The queue can be a good alternative [1] but the application has to care about faults handling. For example, if a client reads a message from the queue, starts doing some job as the message prescribes and then fails in the middle, then the job is incomplete and nobody else can pick it up. So, you wo

Re: ContinuousQueryWithTransformer with custom return type

2020-07-21 Thread akorensh
Hi, Looks like you are not correctly setting up your code: Take a look at: https://apacheignite.readme.io/docs/continuous-queries#remote-transformer see: https://github.com/apache/ignite/blob/master/example s/src/main/java/org/apache/ignite/examples/datagrid/CacheContinuousQueryWithTransfor

Bug with client cache_size for metrics() and localMetrics()

2020-07-21 Thread tschauenberg
IgniteClusterClient.java IgniteClusterNode1.java IgniteClusterNode2.java

Re: 2.8.1 - Loading Plugin Provider

2020-07-21 Thread akorensh
Hi, You don't need to load the the plugin provider through the service loader of the JDK in addition to using setPluginProvider. It is preferable to use the service loader alone like in MLPlugin see: https://github.com/apache/ignite/blob/master/modules/ml/src/main/resources/META-INF/service

3rd party persistence: Mapping with RDBMS tables that don't have primary keys

2020-07-21 Thread Alex Panchenko
Hi, I have an Ignite cluster with 3rd party persistence enabled (Postgres db). I have a few tables in Postgres which don't have primary keys bur I need to keep these tables in Ignite: They look like this table (as an example): KeyValuesTable { key: UUID value: String } NOTE: there i

Change in CacheStore Serialization from 2.7.6 to 2.8.x breaks Spring Injected dataSource

2020-07-21 Thread Yohan Fernando
Hello All, We are migrating from Ignite 2.7.6 to 2.8.1 and have hit an issue where CacheStore implementations that include Spring injected DataSource objects, these datasources turn out to be null. After investigation, it appears that there is a change in behaviour under Ignite 2.8.x where it s

ContinuousQueryWithTransformer with custom return type

2020-07-21 Thread Devakumar J
Hi, I am trying to register CQ with transformer with keep binary option and trying to return a cutom defined object. I see the transformer properly creating custom object and returning properly. But at the same time local listener is not receiving the custom object, instead i think it received bi

Re: Force backup on different physical machine

2020-07-21 Thread narges saleh
Thanks Stephan. I am saying one ignite-node/pod/k8 node spread across availability zones On Tue, Jul 21, 2020 at 9:51 AM Stephen Darlington < stephen.darling...@gridgain.com> wrote: > 1) I think you’re saying you have two Ignite nodes on one physical > machine. What I mean is, don’t do that. All

Re: Force backup on different physical machine

2020-07-21 Thread Stephen Darlington
1) I think you’re saying you have two Ignite nodes on one physical machine. What I mean is, don’t do that. All else being equal, one server node per physical machine is the way to go 2) This is an Ignite feature and not limited to any particular cloud vendor. It does rely on your cloud vendor “

Re: Force backup on different physical machine

2020-07-21 Thread narges saleh
Hi Stephen, 1) [Having said that, you’re probably best configuring k8s not to put two Ignite server nodes on a single machine.] Do you mean by having k8s place the VMs in different availability zones? Then how would you tell ignite to place the backups in a different zone? I've read this is possib

Re: How to evaluate memory consumption of indexes

2020-07-21 Thread steve.hostettler
Thanks for the answer, did not thing of using the persistence to assess the size :) -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

2.8.1 - Loading Plugin Provider

2020-07-21 Thread VeenaMithare
Hi , I saw that 'SetPluginConfiguration' in IgniteConfiguration has been deprecated in 2.8.1: ( IgniteConfiguration javadoc : https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/configuration/IgniteConfiguration.html ) *IgniteConfigurationsetPluginConfigurations(PluginConfigu

third-party persistance and junction table

2020-07-21 Thread Bastien Durel
Hello, I have a junction table in my model, and used the web console to generate ignite config and classes from my SQL database -> There is a table user with id (long) and some data -> There is a table role with id (long) and some data -> There is a table user_role with user_id (fk) and role_id (