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

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

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

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: [hidden email]<mailto:[hidden email]>
http://www.t-systems.com<http://www.t-systems.ru/>



-----Original Message-----
From: Ilya Kasnacheev <[hidden email]>
Sent: Thursday, December 12, 2019 6:35 PM
To: dev <[hidden email]>
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, <[hidden email]<mailto:[hidden email]>>:



> 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: [hidden email]<mailto:[hidden email]<mailto:[hidden email]%3cmailto:[hidden email]>>

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

>

>

>

> -----Original Message-----

> From: Ilya Kasnacheev <[hidden email]<mailto:[hidden email]>>

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

> To: dev <[hidden email]<mailto:[hidden email]>>

> 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, <[hidden email]<mailto:

> [hidden email]<mailto:[hidden email]>>>:

>

>

>

> > 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: [hidden email]<mailto:[hidden email]<mailto:[hidden email]%3cmailto:[hidden email]>

> <mailto:[hidden email]%3cmailto:[hidden email]

> >>

>

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

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

>

> >

>

> >

>
Reply | Threaded
Open this post in threaded view
|

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

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, <[hidden email]>:

>
> 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: [hidden email]<mailto:[hidden email]>
> http://www.t-systems.com<http://www.t-systems.ru/>
>
>
>
> -----Original Message-----
> From: Ilya Kasnacheev <[hidden email]>
> Sent: Thursday, December 12, 2019 6:35 PM
> To: dev <[hidden email]>
> 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, <[hidden email]<mailto:[hidden email]>>:
>
>
>
> > 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: [hidden email]<mailto:[hidden email]<mailto:[hidden email]%3cmailto:[hidden email]>>
>
> > http://www.t-systems.com<http://www.t-systems.ru/<http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
>
> >
>
> >
>
> >
>
> > -----Original Message-----
>
> > From: Ilya Kasnacheev <[hidden email]<mailto:[hidden email]>>
>
> > Sent: Thursday, December 12, 2019 5:25 PM
>
> > To: dev <[hidden email]<mailto:[hidden email]>>
>
> > 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, <[hidden email]<mailto:
>
> > [hidden email]<mailto:[hidden email]>>>:
>
> >
>
> >
>
> >
>
> > > 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: [hidden email]<mailto:[hidden email]<mailto:[hidden email]%3cmailto:[hidden email]>
>
> > <mailto:[hidden email]%3cmailto:[hidden email]
>
> > >>
>
> >
>
> > > http://www.t-systems.com<http://www.t-systems.ru/<<http://www.t-systems.com%3chttp:/www.t-systems.ru/%3c>
>
> > http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
>
> >
>
> > >
>
> >
>
> > >
>
> >



--
Best regards,
Ivan Pavlukhin
Reply | Threaded
Open this post in threaded view
|

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

Ilya Kasnacheev
In reply to this post by Roman.Koriakov
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, <[hidden email]>:

> 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: [hidden email]<mailto:[hidden email]>
> http://www.t-systems.com<http://www.t-systems.ru/>
>
>
>
> -----Original Message-----
> From: Ilya Kasnacheev <[hidden email]>
> Sent: Thursday, December 12, 2019 6:35 PM
> To: dev <[hidden email]>
> 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, <[hidden email]<mailto:
> [hidden email]>>:
>
>
>
> > 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: [hidden email]<mailto:[hidden email]
> <mailto:[hidden email]%3cmailto:[hidden email]
> >>
>
> > http://www.t-systems.com<http://www.t-systems.ru/<
> http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
>
> >
>
> >
>
> >
>
> > -----Original Message-----
>
> > From: Ilya Kasnacheev <[hidden email]<mailto:
> [hidden email]>>
>
> > Sent: Thursday, December 12, 2019 5:25 PM
>
> > To: dev <[hidden email]<mailto:[hidden email]>>
>
> > 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, <[hidden email]<mailto:
>
> > [hidden email]<mailto:[hidden email]>>>:
>
> >
>
> >
>
> >
>
> > > 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: [hidden email]<mailto:
> [hidden email]<mailto:[hidden email]%
> 3cmailto:[hidden email]>
>
> > <mailto:[hidden email]%
> 3cmailto:[hidden email]
>
> > >>
>
> >
>
> > > http://www.t-systems.com<http://www.t-systems.ru/<<
> http://www.t-systems.com%3chttp:/www.t-systems.ru/%3c>
>
> > http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
>
> >
>
> > >
>
> >
>
> > >
>
> >
>
Reply | Threaded
Open this post in threaded view
|

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

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

пн, 16 дек. 2019 г. в 19:36, Ilya Kasnacheev <[hidden email]>:

>
> 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, <[hidden email]>:
>
> > 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: [hidden email]<mailto:[hidden email]>
> > http://www.t-systems.com<http://www.t-systems.ru/>
> >
> >
> >
> > -----Original Message-----
> > From: Ilya Kasnacheev <[hidden email]>
> > Sent: Thursday, December 12, 2019 6:35 PM
> > To: dev <[hidden email]>
> > 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, <[hidden email]<mailto:
> > [hidden email]>>:
> >
> >
> >
> > > 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: [hidden email]<mailto:[hidden email]
> > <mailto:[hidden email]%3cmailto:[hidden email]
> > >>
> >
> > > http://www.t-systems.com<http://www.t-systems.ru/<
> > http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
> >
> > >
> >
> > >
> >
> > >
> >
> > > -----Original Message-----
> >
> > > From: Ilya Kasnacheev <[hidden email]<mailto:
> > [hidden email]>>
> >
> > > Sent: Thursday, December 12, 2019 5:25 PM
> >
> > > To: dev <[hidden email]<mailto:[hidden email]>>
> >
> > > 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, <[hidden email]<mailto:
> >
> > > [hidden email]<mailto:[hidden email]>>>:
> >
> > >
> >
> > >
> >
> > >
> >
> > > > 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: [hidden email]<mailto:
> > [hidden email]<mailto:[hidden email]%
> > 3cmailto:[hidden email]>
> >
> > > <mailto:[hidden email]%
> > 3cmailto:[hidden email]
> >
> > > >>
> >
> > >
> >
> > > > http://www.t-systems.com<http://www.t-systems.ru/<<
> > http://www.t-systems.com%3chttp:/www.t-systems.ru/%3c>
> >
> > > http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >



--
Best regards,
Ivan Pavlukhin
Reply | Threaded
Open this post in threaded view
|

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

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 <[hidden email]>
Sent: Monday, December 16, 2019 11:05 PM
To: dev <[hidden email]>
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 <[hidden email]>:

>
> 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, <[hidden email]>:
>
> > 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:
> > [hidden email]<mailto:[hidden email]>
> > http://www.t-systems.com<http://www.t-systems.ru/>
> >
> >
> >
> > -----Original Message-----
> > From: Ilya Kasnacheev <[hidden email]>
> > Sent: Thursday, December 12, 2019 6:35 PM
> > To: dev <[hidden email]>
> > 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, <[hidden email]<mailto:
> > [hidden email]>>:
> >
> >
> >
> > > 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:
> > > [hidden email]<mailto:[hidden email]
> > <mailto:[hidden email]%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/>>
> >
> > >
> >
> > >
> >
> > >
> >
> > > -----Original Message-----
> >
> > > From: Ilya Kasnacheev <[hidden email]<mailto:
> > [hidden email]>>
> >
> > > Sent: Thursday, December 12, 2019 5:25 PM
> >
> > > To: dev <[hidden email]<mailto:[hidden email]>>
> >
> > > 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, <[hidden email]<mailto:
> >
> > > [hidden email]<mailto:[hidden email]>>>:
> >
> > >
> >
> > >
> >
> > >
> >
> > > > 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: [hidden email]<mailto:
> > [hidden email]<mailto:[hidden email]%
> > 3cmailto:[hidden email]>
> >
> > > <mailto:[hidden email]%
> > 3cmailto:[hidden email]
> >
> > > >>
> >
> > >
> >
> > > > http://www.t-systems.com<http://www.t-systems.ru/<<
> > http://www.t-systems.com%3chttp:/www.t-systems.ru/%3c>
> >
> > > http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
> >
> > >
> >
> > > >
> >
> > >
> >
> > > >
> >
> > >
> >



--
Best regards,
Ivan Pavlukhin
Reply | Threaded
Open this post in threaded view
|

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

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, <[hidden email]>:

>
> Hi Ivan,
> Does it mean that the problem is gone and I should close the JIRA IGNITE-12445 ?
>
>
> -----Original Message-----
> From: Ivan Pavlukhin <[hidden email]>
> Sent: Monday, December 16, 2019 11:05 PM
> To: dev <[hidden email]>
> 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 <[hidden email]>:
> >
> > 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, <[hidden email]>:
> >
> > > 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:
> > > [hidden email]<mailto:[hidden email]>
> > > http://www.t-systems.com<http://www.t-systems.ru/>
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Ilya Kasnacheev <[hidden email]>
> > > Sent: Thursday, December 12, 2019 6:35 PM
> > > To: dev <[hidden email]>
> > > 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, <[hidden email]<mailto:
> > > [hidden email]>>:
> > >
> > >
> > >
> > > > 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:
> > > > [hidden email]<mailto:[hidden email]
> > > <mailto:[hidden email]%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/>>
> > >
> > > >
> > >
> > > >
> > >
> > > >
> > >
> > > > -----Original Message-----
> > >
> > > > From: Ilya Kasnacheev <[hidden email]<mailto:
> > > [hidden email]>>
> > >
> > > > Sent: Thursday, December 12, 2019 5:25 PM
> > >
> > > > To: dev <[hidden email]<mailto:[hidden email]>>
> > >
> > > > 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, <[hidden email]<mailto:
> > >
> > > > [hidden email]<mailto:[hidden email]>>>:
> > >
> > > >
> > >
> > > >
> > >
> > > >
> > >
> > > > > 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: [hidden email]<mailto:
> > > [hidden email]<mailto:[hidden email]%
> > > 3cmailto:[hidden email]>
> > >
> > > > <mailto:[hidden email]%
> > > 3cmailto:[hidden email]
> > >
> > > > >>
> > >
> > > >
> > >
> > > > > http://www.t-systems.com<http://www.t-systems.ru/<<
> > > http://www.t-systems.com%3chttp:/www.t-systems.ru/%3c>
> > >
> > > > http://www.t-systems.com%3chttp:/www.t-systems.ru/>>
> > >
> > > >
> > >
> > > > >
> > >
> > > >
> > >
> > > > >
> > >
> > > >
> > >
>
>
>
> --
> Best regards,
> Ivan Pavlukhin



--
Best regards,
Ivan Pavlukhin