Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lcy0816
Copy link

@lcy0816 lcy0816 commented Sep 27, 2016

…emory service

@@ -29,7 +29,8 @@
*
*
*/
public class VolatileMemAllocator extends RestorableAllocator<VolatileMemAllocator> {
public class VolatileMemAllocator extends RestorableAllocator<VolatileMemAllocator>
implements AddressTranslator {
Copy link
Member

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);
Copy link
Member

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);
Copy link
Member

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 {
Copy link
Member

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.

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants