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