Diego Lovison created ISPN-9120:
-----------------------------------
Summary: EventImpl - Should return a value in the pre
Key: ISPN-9120
URL:
https://issues.jboss.org/browse/ISPN-9120
Project: Infinispan
Issue Type: Bug
Reporter: Diego Lovison
When creating a listener
{code:java}
@Listener
public class CacheLevelLoggingListener {
private static final Logger logger =
LogManager.getLogger(CacheLevelLoggingListener.class);
@CacheEntryCreated
public void entryCreated(CacheEntryCreatedEvent<String, String> e) throws
IOException {
logger.debug(e.toString());
}
}{code}
It is returning
{noformat}
21639 [DEBUG] 2018-05-04 11:02:09.029 [pool-2-thread-1] CacheLevelLoggingListener -
EventImpl{type=CACHE_ENTRY_CREATED, pre=true, cache=Cache
'weather'@diego-note-25191, key=12#, value=null, oldValue=null, transaction=null,
originLocal=true, transactionSuccessful=false, entries=null, created=false}
21639 [DEBUG] 2018-05-04 11:02:09.029 [pool-2-thread-1] CacheLevelLoggingListener -
EventImpl{type=CACHE_ENTRY_CREATED, pre=false, cache=Cache
'weather'@diego-note-25191, key=12#, value=af93d649-6c3a-41c6-8fce-6af214442a4b,
oldValue=null, transaction=null, originLocal=true, transactionSuccessful=false,
entries=null, created=false}
{noformat}
Additional analyses should be done in this class.
For example: Why the created is returning false?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)