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.

@AI-Memory AI-Memory force-pushed the master branch 18 times, most recently from 9373f5e to 472072e Compare March 23, 2017 20:25
@AI-Memory AI-Memory force-pushed the master branch 2 times, most recently from 263dd0e to 83cac44 Compare May 16, 2017 19:05
@AI-Memory AI-Memory force-pushed the master branch 3 times, most recently from 7fd302b to d788376 Compare August 12, 2017 05:37
@AI-Memory AI-Memory force-pushed the master branch 17 times, most recently from a211966 to 0f2476d Compare August 13, 2017 02:42
@AI-Memory AI-Memory force-pushed the master branch 3 times, most recently from 0aef031 to 3f4eb81 Compare August 22, 2017 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants