Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed Aug 13, 2019
1 parent 363508c commit 789d38e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions cs/test/BasicFASTERTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ internal class BasicFASTERTests
[SetUp]
public void Setup()
{
ThreadPool.SetMaxThreads(4, 4);
log = Devices.CreateLogDevice(TestContext.CurrentContext.TestDirectory + "\\hlog1.log", deleteOnClose: true);
fht = new FasterKV<KeyStruct, ValueStruct, InputStruct, OutputStruct, Empty, Functions>
(128, new Functions(), new LogSettings { LogDevice = log, MemorySizeBits = 29 });
Expand Down
5 changes: 4 additions & 1 deletion cs/test/SimpleRecoveryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void SimpleRecoveryTest1(CheckpointType checkpointType)

[TestCase(CheckpointType.FoldOver)]
[TestCase(CheckpointType.Snapshot)]
public void SimpleRecoveryTest2(CheckpointType checkpointType)
public async Task SimpleRecoveryTest2Async(CheckpointType checkpointType)
{
log = Devices.CreateLogDevice(TestContext.CurrentContext.TestDirectory + "\\SimpleRecoveryTest2.log", deleteOnClose: true);

Expand Down Expand Up @@ -131,6 +131,7 @@ public void SimpleRecoveryTest2(CheckpointType checkpointType)
{
value.numClicks = key;
s1.Upsert(ref inputArray[key], ref value, Empty.Default, key);
// await Task.Delay(1);
}

fht1.TakeFullCheckpoint(out Guid token);
Expand All @@ -146,6 +147,7 @@ public void SimpleRecoveryTest2(CheckpointType checkpointType)
s0.Dispose();
fht1.Dispose();

/*
fht2.Recover(token); // sync, does not require session
var guid = s1.ID;
Expand All @@ -165,6 +167,7 @@ public void SimpleRecoveryTest2(CheckpointType checkpointType)
}
}
}
*/

fht2.Dispose();
log.Close();
Expand Down

0 comments on commit 789d38e

Please sign in to comment.