-
Notifications
You must be signed in to change notification settings - Fork 1
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
MNEMONIC-109:Create a testcase to manage durable object on volatile m… #22
base: master
Are you sure you want to change the base?
Conversation
@@ -29,7 +29,8 @@ | |||
* | |||
* | |||
*/ | |||
public class VolatileMemAllocator extends RestorableAllocator<VolatileMemAllocator> { | |||
public class VolatileMemAllocator extends RestorableAllocator<VolatileMemAllocator> | |||
implements AddressTranslator { |
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.
Please remove this change because it parent class already implemented the interface of AddressTranslator.
public void testGenPeople() throws OutOfHybridMemory, RetrieveDurableEntityError { | ||
Random rand = Utils.createRandom(); | ||
VolatileMemAllocator act = new VolatileMemAllocator(Utils.getVolatileMemoryAllocatorService("vmem"), | ||
1024 * 1024 * 8, "./pobj_person.dat", true); |
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.
Please use "." instead of "./pobj_person.dat" because this parameter is native library specific.
}); | ||
|
||
for (long i = 0; i < cKEYCAPACITY; ++i) { | ||
act.setHandler(i, 0L); |
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.
There is no handler store for Volatile memory service so you cannot use setHandler()/getHandler()
} | ||
|
||
@Test(dependsOnMethods = { "testGenPeople" }) | ||
public void testCheckPeople() throws RetrieveDurableEntityError { |
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.
Please remove this testcase because volatile memory service does not support any persistence feature.
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.
Please create a new testcase to verify the data that has already been installed by the first testcase.
9373f5e
to
472072e
Compare
263dd0e
to
83cac44
Compare
7fd302b
to
d788376
Compare
a211966
to
0f2476d
Compare
0aef031
to
3f4eb81
Compare
…emory service