Skip to content

Instantly share code, notes, and snippets.

View stefansedich's full-sized avatar

Stefan Sedich stefansedich

  • Sage AI
  • San Francisco, California
View GitHub Profile
=== TEST EXECUTION SUMMARY ===
Akka.Cluster.Tests Total: 126, Errors: 0, Failed: 4, Skipped: 0, Time: 73.532s
Akka.DI.AutoFac.Tests Total: 9, Errors: 0, Failed: 0, Skipped: 0, Time: 0.639s
Akka.DI.CastleWindsor.Tests Total: 9, Errors: 0, Failed: 1, Skipped: 0, Time: 0.422s
Akka.DI.Ninject.Tests Total: 9, Errors: 0, Failed: 1, Skipped: 0, Time: 0.319s
Akka.DI.StructureMap.Tests Total: 9, Errors: 0, Failed: 1, Skipped: 0, Time: 0.398s
Akka.DI.Unity.Tests Total: 9, Errors: 0, Failed: 1, Skipped: 0, Time: 0.308s
Akka.FSharp.Tests Total: 26, Errors: 0, Failed: 2, Skipped: 0, Time: 3.901s
Akka.MultiNodeTestRunner.Shared.Tests Total: 21, Errors: 0, Failed: 0, Skipped: 0, Time: 5.336s
Akka.Persistence.Sqlite.Tests Total: 28, Errors: 0, Failed: 28, Skipped: 0, Time: 19.160s
Akka.Tests.Configuration.ConfigurationSpec.DeserializesHoconConfigurationFromNetConfigFile [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actor_should_be_able_to_resume_suspend [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actor_should_be_able_to_ReceiveTimeout_after_async_operation [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_use_ContinueWith [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_supervise_exception_ContinueWith [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_block_ask_message_loop [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_async_await_in_message_loop [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_suspend_reentrancy [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.UntypedActors_should_be_able_to_async_await_ask_message_loop [FAIL]
Akka.Tests.Dispatch.ActorAsyncAwaitSpec.Actors_should_be_able_to_async_await_ask_message_loop [FAIL]
Stacktrace:
Native stacktrace:
mono() [0x4a4ecf]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10d10) [0x7f4bab263d10]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7f4baaca7267]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f4baaca8eca]
mono() [0x63bbdf]
void Main()
{
dynamic foo = 1000000000000000;
// DOES NOT WORK
var x = Convert.ToInt64(foo);
// WORKS!!!
//long x = Convert.ToInt64(foo);
[TestFixture]
public class ResetScenario
{
private Stopwatch _stopwatch;
public void GivenX(int a)
{
}
echo "{nThreads:32,fileSizeMB:1000,r:true}" | sudo mongoperf
mongoperf
use -h for help
parsed options:
{ nThreads: 32, fileSizeMB: 1000, r: true }
creating test file size:1000MB ...
testing...
options:{ nThreads: 32, fileSizeMB: 1000, r: true }
wthr 32
new thread, total running : 1
echo "{nThreads:32,fileSizeMB:1000,w:true}" | sudo mongoperf
mongoperf
use -h for help
parsed options:
{ nThreads: 32, fileSizeMB: 1000, w: true }
creating test file size:1000MB ...
testing...
options:{ nThreads: 32, fileSizeMB: 1000, w: true }
wthr 32
new thread, total running : 1
ubuntu@connect-mongo-rs1b:/data$ echo "{nThreads:32,fileSizeMB:1000,r:true}" | sudo mongoperf
mongoperf
use -h for help
parsed options:
{ nThreads: 32, fileSizeMB: 1000, r: true }
creating test file size:1000MB ...
testing...
options:{ nThreads: 32, fileSizeMB: 1000, r: true }
wthr 32
new thread, total running : 1
public class ParentActor : ReceiveActor {
private ActorRef _child;
public ParentActor() {
_child = Context.ActorOf<Child>();
Receive<Start>(m => {
_child.Tell(new Child.Start{State = 123}));
});
}
void Main()
{
FormatUsingSerilog("{Message} {Number}", "Foo", 2).Dump(); // Outputs: "Foo" 2
FormatUsingSerilog("{@Foo}", new { Property = 2 }).Dump(); // Outputs: { Property = 2 }
FormatUsingSerilog("{@Foo}", new Foo { Property = 2 }).Dump(); // Outputs: UserQuery+Foo
}
static string FormatUsingSerilog(string format, params object[] args) {
var parser = new MessageTemplateParser();
var template = parser.Parse(format);