apache / apache/ignite

Issues with listening on Events as a client node

Open
#11,303 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.1k
Forks
1.9k
Avg merge
3d 2h
Merged PRs (30d)
46

Description

Hello,

I am trying to listen on some events, but I keep on getting NoSerilization Exception, and if I implement `Serializable`, I get a `ClassNotFoundException`.

I added the following property inside the XML file:
```





```

In my Java class, I added the following method:
```
node.events().remoteListen(addExpiredQuote(), null, EventType.EVT_CACHE_OBJECT_EXPIRED);
```

Every time, it reaches this point, it throws the exceptions above.

I am creating a client node, that creates a cache in the cluster, and wants to listen on this event.
I had the following: `node.cluster().forClientNodes(GRID_GAIN_QUOTE_CACHE)`

Unfortunately, it starts up and I have a break point inside the function that should be called, but it never goes there when the object is evicted.

This is the cache configuration:
```















```

Can you please help?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure at node.events().remoteListen(addExpiredQuote(), null, EventType.EVT_CACHE_OBJECT_EXPIRED) with the shown XML event settings and cache configuration. Trace the serialization and client-node event delivery path, then verify that the listener receives the expiry event without NoSerializationException or ClassNotFoundException and that the callback runs when an entry expires.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.