Re: When Cache Metrics are switched on (statisticsEnabled = true) the empty cache events arrive to the client nodes

2019-12-26 Thread Ivan Pavlukhin
Hi Roman,

I suppose that we can resolve the ticket with 2.8 fix version if you
have no objections.

чт, 26 дек. 2019 г. в 10:52, :
>
> Hi Ivan,
> Does it mean that the problem is gone and I should close the JIRA 
> IGNITE-12445 ?
>
>
> -Original Message-
> From: Ivan Pavlukhin 
> Sent: Monday, December 16, 2019 11:05 PM
> To: dev 
> Subject: Re: When Cache Metrics are switched on (statisticsEnabled = true) 
> the empty cache events arrive to the client nodes
>
> I also checked the reproducer with current master. It seems that the problem 
> is fixed there.
>
> пн, 16 дек. 2019 г. в 19:36, Ilya Kasnacheev :
> >
> > Hello!
> >
> > Is there a chance you are using Zk?
> >
> > I believe it's https://issues.apache.org/jira/browse/IGNITE-6564
> >
> > Regards,
> > --
> > Ilya Kasnacheev
> >
> >
> > пт, 13 дек. 2019 г. в 12:24, :
> >
> > > Hi Community,
> > >
> > > I’d like to ask you about the following behavior of Apache Ignite:
> > >
> > >
> > > If we want to react on some PUT or READ cache operations first of
> > > all we need to turn on the appropriate cache events on the server
> > > node and catch those events on the client nodes using remote approach 
> > > with two listeners.
> > > It works well until we switch on statisticsEnabled on the server
> > > node, it will lead to the situation when we get empty CacheEvent objects.
> > >
> > > The example that demonstrates this issue is in the attachments. This
> > > example is consists of three nodes:  1 server node with cache and 2
> > > clients.  One client is filling the cache and the second one is
> > > listening PUT operations. When we turn on Cache Metrics on the server 
> > > node:
> > > cacheConfig.setStatisticsEnabled(true); in EventServerCache.java we
> > > get empty events (Sometimes CacheEvent objects with null fields.
> > > Sometimes there are no events at all)
> > >
> > > My suppose is there is some Exception in
> > > GridCacheEventManager.addEvent() when Cache Metrics is turned on.
> > >
> > > catch (Exception e) {
> > >   if
> > > (!cctx.cacheObjectContext().kernalContext().cacheObjects().isBinaryEnabled(cctx.config()))
> > > throw e;  if (log.isDebugEnabled())
> > >  log.debug("Failed to unmarshall cache object value for the
> > > event
> > > notification: " + e);
> > >
> > >   if (!forceKeepBinary)
> > > LT.warn(log, "Failed to unmarshall cache object value for the
> > > event notification " +
> > >  "(all further notifications will keep binary object
> > > format).");
> > >
> > >   forceKeepBinary = true;
> > >
> > >   key0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(key, true,
> > > false);
> > >
> > >   val0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(newVal,
> > > true, false);
> > >
> > >   oldVal0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(oldVal,
> > > true, false);
> > >
> > > }
> > >
> > > Can public this point in JIRA?
> > >
> > > Best regards,
> > >
> > > T-Systems RUS
> > > Point of Production
> > > Roman Koriakov
> > > Software Developer
> > > Kirova 11, Voronezh, Russia
> > > Tel: + 7 473 200 15 30
> > > E-mail:
> > > roman.koria...@t-systems.com<mailto:roman.koria...@t-systems.com>
> > > http://www.t-systems.com<http://www.t-systems.ru/>
> > >
> > >
> > >
> > > -Original Message-
> > > From: Ilya Kasnacheev 
> > > Sent: Thursday, December 12, 2019 6:35 PM
> > > To: dev 
> > > Subject: Re: joining
> > >
> > >
> > >
> > > Hello!
> > >
> > >
> > >
> > > You will need to register on https://issues.apache.org/jira/ first.
> > >
> > >
> > >
> > > Please tell me when you do.
> > >
> > >
> > >
> > > Regards,
> > >
> > > --
> > >
> > > Ilya Kasnacheev
> > >
> > >
> > >
> > >
> > >
> > > чт, 12 дек. 2019 г. в 18:09,  > > roman.koria...@t-systems.com>>:
> > >
> > >
> > >
> > > > Hi Ilya,
> > >
> > > >
> > >
> > > >

RE: When Cache Metrics are switched on (statisticsEnabled = true) the empty cache events arrive to the client nodes

2019-12-25 Thread Roman.Koriakov
Hi Ivan,
Does it mean that the problem is gone and I should close the JIRA IGNITE-12445 ?


-Original Message-
From: Ivan Pavlukhin  
Sent: Monday, December 16, 2019 11:05 PM
To: dev 
Subject: Re: When Cache Metrics are switched on (statisticsEnabled = true) the 
empty cache events arrive to the client nodes

I also checked the reproducer with current master. It seems that the problem is 
fixed there.

пн, 16 дек. 2019 г. в 19:36, Ilya Kasnacheev :
>
> Hello!
>
> Is there a chance you are using Zk?
>
> I believe it's https://issues.apache.org/jira/browse/IGNITE-6564
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пт, 13 дек. 2019 г. в 12:24, :
>
> > Hi Community,
> >
> > I’d like to ask you about the following behavior of Apache Ignite:
> >
> >
> > If we want to react on some PUT or READ cache operations first of 
> > all we need to turn on the appropriate cache events on the server 
> > node and catch those events on the client nodes using remote approach with 
> > two listeners.
> > It works well until we switch on statisticsEnabled on the server 
> > node, it will lead to the situation when we get empty CacheEvent objects.
> >
> > The example that demonstrates this issue is in the attachments. This 
> > example is consists of three nodes:  1 server node with cache and 2 
> > clients.  One client is filling the cache and the second one is 
> > listening PUT operations. When we turn on Cache Metrics on the server node:
> > cacheConfig.setStatisticsEnabled(true); in EventServerCache.java we 
> > get empty events (Sometimes CacheEvent objects with null fields. 
> > Sometimes there are no events at all)
> >
> > My suppose is there is some Exception in 
> > GridCacheEventManager.addEvent() when Cache Metrics is turned on.
> >
> > catch (Exception e) {
> >   if
> > (!cctx.cacheObjectContext().kernalContext().cacheObjects().isBinaryEnabled(cctx.config()))
> > throw e;  if (log.isDebugEnabled())
> >  log.debug("Failed to unmarshall cache object value for the 
> > event
> > notification: " + e);
> >
> >   if (!forceKeepBinary)
> > LT.warn(log, "Failed to unmarshall cache object value for the 
> > event notification " +
> >  "(all further notifications will keep binary object 
> > format).");
> >
> >   forceKeepBinary = true;
> >
> >   key0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(key, true, 
> > false);
> >
> >   val0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(newVal, 
> > true, false);
> >
> >   oldVal0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(oldVal, 
> > true, false);
> >
> > }
> >
> > Can public this point in JIRA?
> >
> > Best regards,
> >
> > T-Systems RUS
> > Point of Production
> > Roman Koriakov
> > Software Developer
> > Kirova 11, Voronezh, Russia
> > Tel: + 7 473 200 15 30
> > E-mail: 
> > roman.koria...@t-systems.com<mailto:roman.koria...@t-systems.com>
> > http://www.t-systems.com<http://www.t-systems.ru/>
> >
> >
> >
> > -Original Message-
> > From: Ilya Kasnacheev 
> > Sent: Thursday, December 12, 2019 6:35 PM
> > To: dev 
> > Subject: Re: joining
> >
> >
> >
> > Hello!
> >
> >
> >
> > You will need to register on https://issues.apache.org/jira/ first.
> >
> >
> >
> > Please tell me when you do.
> >
> >
> >
> > Regards,
> >
> > --
> >
> > Ilya Kasnacheev
> >
> >
> >
> >
> >
> > чт, 12 дек. 2019 г. в 18:09,  > roman.koria...@t-systems.com>>:
> >
> >
> >
> > > Hi Ilya,
> >
> > >
> >
> > > it’d be nice if it were rkoriakov
> >
> > >
> >
> > >
> >
> > >
> >
> > > Best regards,
> >
> > >
> >
> > > T-Systems RUS
> >
> > > Point of Production
> >
> > > Roman Koriakov
> >
> > > Software Developer
> >
> > > Kirova 11, Voronezh, Russia
> >
> > > Tel: + 7 473 200 15 30
> >
> > > E-mail: 
> > > roman.koria...@t-systems.com<mailto:roman.koria...@t-systems.com
> > <mailto:roman.koria...@t-systems.com%3cmailto:Roman.Koriakov@t-syste
> > ms.com
> > >>
> >
> > > http://www.t-systems.com<http://www.t-systems.ru/<
> > http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
> >
&g

Re: When Cache Metrics are switched on (statisticsEnabled = true) the empty cache events arrive to the client nodes

2019-12-16 Thread Ivan Pavlukhin
I also checked the reproducer with current master. It seems that the
problem is fixed there.

пн, 16 дек. 2019 г. в 19:36, Ilya Kasnacheev :
>
> Hello!
>
> Is there a chance you are using Zk?
>
> I believe it's https://issues.apache.org/jira/browse/IGNITE-6564
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пт, 13 дек. 2019 г. в 12:24, :
>
> > Hi Community,
> >
> > I’d like to ask you about the following behavior of Apache Ignite:
> >
> >
> > If we want to react on some PUT or READ cache operations first of all we
> > need to turn on the appropriate cache events on the server node and catch
> > those events on the client nodes using remote approach with two listeners.
> > It works well until we switch on statisticsEnabled on the server node, it
> > will lead to the situation when we get empty CacheEvent objects.
> >
> > The example that demonstrates this issue is in the attachments. This
> > example is consists of three nodes:  1 server node with cache and 2
> > clients.  One client is filling the cache and the second one is listening
> > PUT operations. When we turn on Cache Metrics on the server node:
> > cacheConfig.setStatisticsEnabled(true); in EventServerCache.java we get
> > empty events (Sometimes CacheEvent objects with null fields. Sometimes
> > there are no events at all)
> >
> > My suppose is there is some Exception in GridCacheEventManager.addEvent()
> > when Cache Metrics is turned on.
> >
> > catch (Exception e) {
> >   if
> > (!cctx.cacheObjectContext().kernalContext().cacheObjects().isBinaryEnabled(cctx.config()))
> > throw e;  if (log.isDebugEnabled())
> >  log.debug("Failed to unmarshall cache object value for the event
> > notification: " + e);
> >
> >   if (!forceKeepBinary)
> > LT.warn(log, "Failed to unmarshall cache object value for the event
> > notification " +
> >  "(all further notifications will keep binary object
> > format).");
> >
> >   forceKeepBinary = true;
> >
> >   key0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(key, true, false);
> >
> >   val0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(newVal, true,
> > false);
> >
> >   oldVal0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(oldVal, true,
> > false);
> >
> > }
> >
> > Can public this point in JIRA?
> >
> > Best regards,
> >
> > T-Systems RUS
> > Point of Production
> > Roman Koriakov
> > Software Developer
> > Kirova 11, Voronezh, Russia
> > Tel: + 7 473 200 15 30
> > E-mail: roman.koria...@t-systems.com
> > http://www.t-systems.com
> >
> >
> >
> > -Original Message-
> > From: Ilya Kasnacheev 
> > Sent: Thursday, December 12, 2019 6:35 PM
> > To: dev 
> > Subject: Re: joining
> >
> >
> >
> > Hello!
> >
> >
> >
> > You will need to register on https://issues.apache.org/jira/ first.
> >
> >
> >
> > Please tell me when you do.
> >
> >
> >
> > Regards,
> >
> > --
> >
> > Ilya Kasnacheev
> >
> >
> >
> >
> >
> > чт, 12 дек. 2019 г. в 18:09,  > roman.koria...@t-systems.com>>:
> >
> >
> >
> > > Hi Ilya,
> >
> > >
> >
> > > it’d be nice if it were rkoriakov
> >
> > >
> >
> > >
> >
> > >
> >
> > > Best regards,
> >
> > >
> >
> > > T-Systems RUS
> >
> > > Point of Production
> >
> > > Roman Koriakov
> >
> > > Software Developer
> >
> > > Kirova 11, Voronezh, Russia
> >
> > > Tel: + 7 473 200 15 30
> >
> > > E-mail: roman.koria...@t-systems.com >  > >>
> >
> > > http://www.t-systems.com > http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
> >
> > >
> >
> > >
> >
> > >
> >
> > > -Original Message-
> >
> > > From: Ilya Kasnacheev  > ilya.kasnach...@gmail.com>>
> >
> > > Sent: Thursday, December 12, 2019 5:25 PM
> >
> > > To: dev mailto:dev@ignite.apache.org>>
> >
> > > Subject: Re: joining
> >
> > >
> >
> > >
> >
> > >
> >
> > > Hello!
> >
> > >
> >
> > >
> >
> > >
> >
> > > I will need an Apache JIRA username to add you to contributors. Can you
> >
> > > provide it?
> >
> > >
> >
> > >
> >
> > >
> >
> > > Regards,
> >
> > >
> >
> > > --
> >
> > >
> >
> > > Ilya Kasnacheev
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > >
> >
> > > чт, 12 дек. 2019 г. в 17:20,  >
> > > roman.koria...@t-systems.com>>:
> >
> > >
> >
> > >
> >
> > >
> >
> > > > Hi everyone,
> >
> > >
> >
> > > > I'd like to participate in this  project!
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > Best regards,
> >
> > >
> >
> > > >
> >
> > >
> >
> > > > T-Systems RUS
> >
> > >
> >
> > > > Point of Production
> >
> > >
> >
> > > > Roman Koriakov
> >
> > >
> >
> > > > Software Developer
> >
> > >
> >
> > > > Kirova 11, Voronezh, Russia
> >
> > >
> >
> > > > Tel: + 7 473 200 15 30
> >
> > >
> >
> > > > E-mail: roman.koria...@t-systems.com > roman.koria...@t-systems.com > 3cmailto:roman.koria...@t-systems.com>
> >
> > > 

Re: When Cache Metrics are switched on (statisticsEnabled = true) the empty cache events arrive to the client nodes

2019-12-16 Thread Ilya Kasnacheev
Hello!

Is there a chance you are using Zk?

I believe it's https://issues.apache.org/jira/browse/IGNITE-6564

Regards,
-- 
Ilya Kasnacheev


пт, 13 дек. 2019 г. в 12:24, :

> Hi Community,
>
> I’d like to ask you about the following behavior of Apache Ignite:
>
>
> If we want to react on some PUT or READ cache operations first of all we
> need to turn on the appropriate cache events on the server node and catch
> those events on the client nodes using remote approach with two listeners.
> It works well until we switch on statisticsEnabled on the server node, it
> will lead to the situation when we get empty CacheEvent objects.
>
> The example that demonstrates this issue is in the attachments. This
> example is consists of three nodes:  1 server node with cache and 2
> clients.  One client is filling the cache and the second one is listening
> PUT operations. When we turn on Cache Metrics on the server node:
> cacheConfig.setStatisticsEnabled(true); in EventServerCache.java we get
> empty events (Sometimes CacheEvent objects with null fields. Sometimes
> there are no events at all)
>
> My suppose is there is some Exception in GridCacheEventManager.addEvent()
> when Cache Metrics is turned on.
>
> catch (Exception e) {
>   if
> (!cctx.cacheObjectContext().kernalContext().cacheObjects().isBinaryEnabled(cctx.config()))
> throw e;  if (log.isDebugEnabled())
>  log.debug("Failed to unmarshall cache object value for the event
> notification: " + e);
>
>   if (!forceKeepBinary)
> LT.warn(log, "Failed to unmarshall cache object value for the event
> notification " +
>  "(all further notifications will keep binary object
> format).");
>
>   forceKeepBinary = true;
>
>   key0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(key, true, false);
>
>   val0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(newVal, true,
> false);
>
>   oldVal0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(oldVal, true,
> false);
>
> }
>
> Can public this point in JIRA?
>
> Best regards,
>
> T-Systems RUS
> Point of Production
> Roman Koriakov
> Software Developer
> Kirova 11, Voronezh, Russia
> Tel: + 7 473 200 15 30
> E-mail: roman.koria...@t-systems.com
> http://www.t-systems.com
>
>
>
> -Original Message-
> From: Ilya Kasnacheev 
> Sent: Thursday, December 12, 2019 6:35 PM
> To: dev 
> Subject: Re: joining
>
>
>
> Hello!
>
>
>
> You will need to register on https://issues.apache.org/jira/ first.
>
>
>
> Please tell me when you do.
>
>
>
> Regards,
>
> --
>
> Ilya Kasnacheev
>
>
>
>
>
> чт, 12 дек. 2019 г. в 18:09,  roman.koria...@t-systems.com>>:
>
>
>
> > Hi Ilya,
>
> >
>
> > it’d be nice if it were rkoriakov
>
> >
>
> >
>
> >
>
> > Best regards,
>
> >
>
> > T-Systems RUS
>
> > Point of Production
>
> > Roman Koriakov
>
> > Software Developer
>
> > Kirova 11, Voronezh, Russia
>
> > Tel: + 7 473 200 15 30
>
> > E-mail: roman.koria...@t-systems.com  >>
>
> > http://www.t-systems.com http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
>
> >
>
> >
>
> >
>
> > -Original Message-
>
> > From: Ilya Kasnacheev  ilya.kasnach...@gmail.com>>
>
> > Sent: Thursday, December 12, 2019 5:25 PM
>
> > To: dev mailto:dev@ignite.apache.org>>
>
> > Subject: Re: joining
>
> >
>
> >
>
> >
>
> > Hello!
>
> >
>
> >
>
> >
>
> > I will need an Apache JIRA username to add you to contributors. Can you
>
> > provide it?
>
> >
>
> >
>
> >
>
> > Regards,
>
> >
>
> > --
>
> >
>
> > Ilya Kasnacheev
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > чт, 12 дек. 2019 г. в 17:20, 
> > roman.koria...@t-systems.com>>:
>
> >
>
> >
>
> >
>
> > > Hi everyone,
>
> >
>
> > > I'd like to participate in this  project!
>
> >
>
> > >
>
> >
>
> > > Best regards,
>
> >
>
> > >
>
> >
>
> > > T-Systems RUS
>
> >
>
> > > Point of Production
>
> >
>
> > > Roman Koriakov
>
> >
>
> > > Software Developer
>
> >
>
> > > Kirova 11, Voronezh, Russia
>
> >
>
> > > Tel: + 7 473 200 15 30
>
> >
>
> > > E-mail: roman.koria...@t-systems.com roman.koria...@t-systems.com 3cmailto:roman.koria...@t-systems.com>
>
> >  3cmailto:roman.koria...@t-systems.com
>
> > >>
>
> >
>
> > > http://www.t-systems.com http://www.t-systems.com%3chttp:/www.t-systems.ru/%3c>
>
> > http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
>
> >
>
> > >
>
> >
>
> > >
>
> >
>


Re: When Cache Metrics are switched on (statisticsEnabled = true) the empty cache events arrive to the client nodes

2019-12-16 Thread Ivan Pavlukhin
Hi Roman,

Thank you for reporting this! I looked into and on my machine I was
able to receive events on client-handler node but exception occurred
in the local listener! In a following line:
System.out.println("Received  event [evt=" + evt.name() + ",
cacheName=" + evt.cacheName() + ", key=" + evt.key().toString());

This indeed looks like a weird bug. Event appears broken after
deserialization on a listener side after it is received from a server.

пт, 13 дек. 2019 г. в 12:24, :
>
> Hi Community,
>
> I’d like to ask you about the following behavior of Apache Ignite:
>
>
> If we want to react on some PUT or READ cache operations first of all we need 
> to turn on the appropriate cache events on the server node and catch those 
> events on the client nodes using remote approach with two listeners. It works 
> well until we switch on statisticsEnabled on the server node, it will lead to 
> the situation when we get empty CacheEvent objects.
>
> The example that demonstrates this issue is in the attachments. This example 
> is consists of three nodes:  1 server node with cache and 2 clients.  One 
> client is filling the cache and the second one is listening PUT operations. 
> When we turn on Cache Metrics on the server node: 
> cacheConfig.setStatisticsEnabled(true); in EventServerCache.java we get empty 
> events (Sometimes CacheEvent objects with null fields. Sometimes there are no 
> events at all)
>
> My suppose is there is some Exception in GridCacheEventManager.addEvent() 
> when Cache Metrics is turned on.
>
> catch (Exception e) {
>   if 
> (!cctx.cacheObjectContext().kernalContext().cacheObjects().isBinaryEnabled(cctx.config()))
> throw e;  if (log.isDebugEnabled())
>  log.debug("Failed to unmarshall cache object value for the event 
> notification: " + e);
>
>   if (!forceKeepBinary)
> LT.warn(log, "Failed to unmarshall cache object value for the event 
> notification " +
>  "(all further notifications will keep binary object format).");
>
>   forceKeepBinary = true;
>
>   key0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(key, true, false);
>
>   val0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(newVal, true, false);
>
>   oldVal0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(oldVal, true, 
> false);
>
> }
>
> Can public this point in JIRA?
>
> Best regards,
>
> T-Systems RUS
> Point of Production
> Roman Koriakov
> Software Developer
> Kirova 11, Voronezh, Russia
> Tel: + 7 473 200 15 30
> E-mail: roman.koria...@t-systems.com
> http://www.t-systems.com
>
>
>
> -Original Message-
> From: Ilya Kasnacheev 
> Sent: Thursday, December 12, 2019 6:35 PM
> To: dev 
> Subject: Re: joining
>
>
>
> Hello!
>
>
>
> You will need to register on https://issues.apache.org/jira/ first.
>
>
>
> Please tell me when you do.
>
>
>
> Regards,
>
> --
>
> Ilya Kasnacheev
>
>
>
>
>
> чт, 12 дек. 2019 г. в 18:09, 
> mailto:roman.koria...@t-systems.com>>:
>
>
>
> > Hi Ilya,
>
> >
>
> > it’d be nice if it were rkoriakov
>
> >
>
> >
>
> >
>
> > Best regards,
>
> >
>
> > T-Systems RUS
>
> > Point of Production
>
> > Roman Koriakov
>
> > Software Developer
>
> > Kirova 11, Voronezh, Russia
>
> > Tel: + 7 473 200 15 30
>
> > E-mail: 
> > roman.koria...@t-systems.com>
>
> > http://www.t-systems.com>
>
> >
>
> >
>
> >
>
> > -Original Message-
>
> > From: Ilya Kasnacheev 
> > mailto:ilya.kasnach...@gmail.com>>
>
> > Sent: Thursday, December 12, 2019 5:25 PM
>
> > To: dev mailto:dev@ignite.apache.org>>
>
> > Subject: Re: joining
>
> >
>
> >
>
> >
>
> > Hello!
>
> >
>
> >
>
> >
>
> > I will need an Apache JIRA username to add you to contributors. Can you
>
> > provide it?
>
> >
>
> >
>
> >
>
> > Regards,
>
> >
>
> > --
>
> >
>
> > Ilya Kasnacheev
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > чт, 12 дек. 2019 г. в 17:20, 
> > roman.koria...@t-systems.com>>:
>
> >
>
> >
>
> >
>
> > > Hi everyone,
>
> >
>
> > > I'd like to participate in this  project!
>
> >
>
> > >
>
> >
>
> > > Best regards,
>
> >
>
> > >
>
> >
>
> > > T-Systems RUS
>
> >
>
> > > Point of Production
>
> >
>
> > > Roman Koriakov
>
> >
>
> > > Software Developer
>
> >
>
> > > Kirova 11, Voronezh, Russia
>
> >
>
> > > Tel: + 7 473 200 15 30
>
> >
>
> > > E-mail: 
> > > roman.koria...@t-systems.com
>
> > 
> > >>
>
> >
>
> > > http://www.t-systems.com
>
> > http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
>
> >
>
> > >
>
> >
>
> > >
>
> >



-- 
Best regards,
Ivan Pavlukhin


[jira] [Created] (IGNITE-12445) When Cache Metrics are switched on (statisticsEnabled = true) the empty cache events arrive to the client nodes

2019-12-13 Thread Roman Koriakov (Jira)
Roman Koriakov created IGNITE-12445:
---

 Summary: When Cache Metrics are switched on (statisticsEnabled = 
true) the empty cache events arrive to the client nodes 
 Key: IGNITE-12445
 URL: https://issues.apache.org/jira/browse/IGNITE-12445
 Project: Ignite
  Issue Type: Bug
  Components: general
Affects Versions: 2.7.6
 Environment: OS Name Microsoft Windows 10 Pro
 java version "1.8.0_231"
 java version OpenJDK 64-Bit Server VM 11+28
Reporter: Roman Koriakov


If we want to react on some PUT or READ cache operations first of all we need 
to turn on the appropriate cache events on the server node and catch those 
events on the client nodes using remote approach with two listeners. It works 
well until we switch on *statisticsEnabled* on the server node, it will lead to 
the situation when we get empty *CacheEvent* objects.

The example that demonstrates this issue is in the attachments. This example is 
consists of three nodes:  1 server node with cache and 2 clients.  One client 
is filling the cache and the second one is listening PUT operations. When we 
turn on Cache Metrics on the server node: 
*cacheConfig.setStatisticsEnabled(true);* in *EventServerCache.java* we get 
empty events ({color:#172b4d}Sometimes {color}CacheEvent objects with null 
fields. Sometimes there are no events at all)

My suppose is there is some Exception in GridCacheEventManager.addEvent() when 
Cache Metrics is turned on. 

{color:#cc7832}catch {color}(Exception e) {
   {color:#cc7832}if 
{color}(!{color:#9876aa}cctx{color}.cacheObjectContext().kernalContext().cacheObjects().isBinaryEnabled({color:#9876aa}cctx{color}.config()))
     {color:#cc7832}throw {color}e{color:#cc7832};{color}{color:#cc7832}  if 
{color}({color:#9876aa}log{color}.isDebugEnabled())
      {color:#9876aa}log{color}.debug({color:#6a8759}"Failed to unmarshall 
cache object value for the event notification: " {color}+ 
e){color:#cc7832};{color}{color:#cc7832}  {color}

{color:#cc7832}  if {color}(!{color:#9876aa}forceKeepBinary{color})
     LT.warn({color:#9876aa}log{color}{color:#cc7832}, 
{color}{color:#6a8759}"Failed to unmarshall cache object value for the event 
notification " {color}+
              {color:#6a8759}"(all further notifications will keep binary 
object format)."{color}){color:#cc7832};{color} 

{color:#9876aa}  forceKeepBinary {color}= {color:#cc7832}true;{color} 

  key0 = 
{color:#9876aa}cctx{color}.cacheObjectContext().unwrapBinaryIfNeeded(key{color:#cc7832},
 true, false{color}){color:#cc7832};{color} 

  val0 = 
{color:#9876aa}cctx{color}.cacheObjectContext().unwrapBinaryIfNeeded(newVal{color:#cc7832},
 true, false{color}){color:#cc7832};{color} 

  oldVal0 = 
{color:#9876aa}cctx{color}.cacheObjectContext().unwrapBinaryIfNeeded(oldVal{color:#cc7832},
 true, false{color}){color:#cc7832};{color}

}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


When Cache Metrics are switched on (statisticsEnabled = true) the empty cache events arrive to the client nodes

2019-12-13 Thread Roman.Koriakov
Hi Community,

I’d like to ask you about the following behavior of Apache Ignite:


If we want to react on some PUT or READ cache operations first of all we need 
to turn on the appropriate cache events on the server node and catch those 
events on the client nodes using remote approach with two listeners. It works 
well until we switch on statisticsEnabled on the server node, it will lead to 
the situation when we get empty CacheEvent objects.

The example that demonstrates this issue is in the attachments. This example is 
consists of three nodes:  1 server node with cache and 2 clients.  One client 
is filling the cache and the second one is listening PUT operations. When we 
turn on Cache Metrics on the server node: 
cacheConfig.setStatisticsEnabled(true); in EventServerCache.java we get empty 
events (Sometimes CacheEvent objects with null fields. Sometimes there are no 
events at all)

My suppose is there is some Exception in GridCacheEventManager.addEvent() when 
Cache Metrics is turned on.

catch (Exception e) {
  if 
(!cctx.cacheObjectContext().kernalContext().cacheObjects().isBinaryEnabled(cctx.config()))
throw e;  if (log.isDebugEnabled())
 log.debug("Failed to unmarshall cache object value for the event 
notification: " + e);

  if (!forceKeepBinary)
LT.warn(log, "Failed to unmarshall cache object value for the event 
notification " +
 "(all further notifications will keep binary object format).");

  forceKeepBinary = true;

  key0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(key, true, false);

  val0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(newVal, true, false);

  oldVal0 = cctx.cacheObjectContext().unwrapBinaryIfNeeded(oldVal, true, false);

}

Can public this point in JIRA?

Best regards,

T-Systems RUS
Point of Production
Roman Koriakov
Software Developer
Kirova 11, Voronezh, Russia
Tel: + 7 473 200 15 30
E-mail: roman.koria...@t-systems.com
http://www.t-systems.com



-Original Message-
From: Ilya Kasnacheev 
Sent: Thursday, December 12, 2019 6:35 PM
To: dev 
Subject: Re: joining



Hello!



You will need to register on https://issues.apache.org/jira/ first.



Please tell me when you do.



Regards,

--

Ilya Kasnacheev





чт, 12 дек. 2019 г. в 18:09, 
mailto:roman.koria...@t-systems.com>>:



> Hi Ilya,

>

> it’d be nice if it were rkoriakov

>

>

>

> Best regards,

>

> T-Systems RUS

> Point of Production

> Roman Koriakov

> Software Developer

> Kirova 11, Voronezh, Russia

> Tel: + 7 473 200 15 30

> E-mail: 
> roman.koria...@t-systems.com>

> http://www.t-systems.com>

>

>

>

> -Original Message-

> From: Ilya Kasnacheev 
> mailto:ilya.kasnach...@gmail.com>>

> Sent: Thursday, December 12, 2019 5:25 PM

> To: dev mailto:dev@ignite.apache.org>>

> Subject: Re: joining

>

>

>

> Hello!

>

>

>

> I will need an Apache JIRA username to add you to contributors. Can you

> provide it?

>

>

>

> Regards,

>

> --

>

> Ilya Kasnacheev

>

>

>

>

>

> чт, 12 дек. 2019 г. в 17:20,  roman.koria...@t-systems.com>>:

>

>

>

> > Hi everyone,

>

> > I'd like to participate in this  project!

>

> >

>

> > Best regards,

>

> >

>

> > T-Systems RUS

>

> > Point of Production

>

> > Roman Koriakov

>

> > Software Developer

>

> > Kirova 11, Voronezh, Russia

>

> > Tel: + 7 473 200 15 30

>

> > E-mail: 
> > roman.koria...@t-systems.com

>  >>

>

> > http://www.t-systems.com

> http://www.t-systems.com%3chttp:/www.t-systems.ru/>>

>

> >

>

> >

>