New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISPN-8517 Lazily ressurect ice fromMemory #5583
ISPN-8517 Lazily ressurect ice fromMemory #5583
Conversation
This should cherry pick as is into 9.1.x as well. |
Test failure is unrelated. |
ff04a77
to
0e0ae79
Compare
Added in changes from #5567 |
97fb11e
to
d9574c6
Compare
Looks like CI failures were from the random tx failures in #5591. I have rebased and letting CI run again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine except for javadoc and parameters()
in the test. Also needs rebase.
@@ -359,6 +360,78 @@ public boolean equalsKey(long address, WrappedBytes wrappedBytes) { | |||
return true; | |||
} | |||
|
|||
/** | |||
* Returns whether entry is expired or not. | |||
* @param address the address of the entry's key to check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it the address of the entry?
@@ -359,6 +360,78 @@ public boolean equalsKey(long address, WrappedBytes wrappedBytes) { | |||
return true; | |||
} | |||
|
|||
/** | |||
* Returns whether entry is expired or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems redundant.
} | ||
|
||
protected void afterCacheCreated(EmbeddedCacheManager cm) { | ||
|
||
} | ||
|
||
public void testSimpleExpirationLifespan() throws Exception { | ||
public ExpirationFunctionalTest withStorage(StorageType storage) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs parameters()
.
timeService.advance(2); | ||
|
||
for (int i = 0; i < SIZE; i++) { | ||
cache.getAdvancedCache().getDataContainer().executeTask(KeyFilter.ACCEPT_ALL_FILTER, (k, ice) -> { throw new RuntimeException("No task should be executed on expired entry"); }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lambda could be on its own line.
d9574c6
to
8dc23cf
Compare
8dc23cf
to
266329c
Compare
* Reuse address pointer for compute remove * Don't resurrect value if not needed
266329c
to
7c65215
Compare
7c65215
to
48c40e8
Compare
Okay this has been updated and also fixes the REST failures on master. |
https://issues.jboss.org/browse/ISPN-8517
https://issues.jboss.org/browse/ISPN-8500
This issue now also includes objects that are expired are not read.