Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Commit 3e300ff

Browse files
Merge pull request #179 from akkadotnet/cleanup-merge
v1.4.11 Release
2 parents 0ccb2ae + 7a96b5b commit 3e300ff

File tree

4 files changed

+116
-5
lines changed

4 files changed

+116
-5
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
#### 1.4.10 August 21 2020 ####
2-
* Upgrades to Akka.NET v1.4.10
3-
* Resolves high memory consumption issues with the `SqlJournal` as a result of https://github.com/akkadotnet/akka.net/issues/4524
1+
#### 1.4.11 November 11 2020 ####
2+
* Upgrades to [Akka.NET v1.4.11](https://github.com/akkadotnet/akka.net/releases/tag/1.4.11)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// -----------------------------------------------------------------------
2+
// <copyright file="BatchingSqlServerJournalPerfSpec.cs" company="Akka.NET Project">
3+
// Copyright (C) 2013 - 2020 .NET Foundation <https://github.com/akkadotnet/akka.net>
4+
// </copyright>
5+
// -----------------------------------------------------------------------
6+
7+
using System;
8+
using Akka.Configuration;
9+
using Akka.Persistence.TestKit.Performance;
10+
using Xunit;
11+
using Xunit.Abstractions;
12+
13+
namespace Akka.Persistence.SqlServer.Tests
14+
{
15+
[Collection("SqlServerSpec")]
16+
public class BatchingSqlServerJournalPerfSpec : JournalPerfSpec
17+
{
18+
private static Config InitConfig(SqlServerFixture fixture)
19+
{
20+
//need to make sure db is created before the tests start
21+
DbUtils.Initialize(fixture.ConnectionString);
22+
23+
var specString = $@"
24+
akka.persistence {{
25+
publish-plugin-commands = on
26+
journal {{
27+
plugin = ""akka.persistence.journal.sql-server""
28+
sql-server {{
29+
class = ""Akka.Persistence.SqlServer.Journal.BatchingSqlServerJournal, Akka.Persistence.SqlServer""
30+
plugin-dispatcher = ""akka.actor.default-dispatcher""
31+
table-name = EventJournal
32+
schema-name = dbo
33+
auto-initialize = on
34+
connection-string = ""{DbUtils.ConnectionString}""
35+
}}
36+
}}
37+
}}";
38+
39+
return ConfigurationFactory.ParseString(specString);
40+
}
41+
42+
public BatchingSqlServerJournalPerfSpec(ITestOutputHelper output, SqlServerFixture fixture)
43+
: base(InitConfig(fixture), "BatchingSqlServerJournalPerfSpec", output)
44+
{
45+
EventsCount = 1000;
46+
ExpectDuration = TimeSpan.FromMinutes(10);
47+
MeasurementIterations = 1;
48+
}
49+
50+
protected override void Dispose(bool disposing)
51+
{
52+
base.Dispose(disposing);
53+
DbUtils.Clean();
54+
}
55+
}
56+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// -----------------------------------------------------------------------
2+
// <copyright file="SqlServerJournalPerfSpec.cs" company="Akka.NET Project">
3+
// Copyright (C) 2013 - 2020 .NET Foundation <https://github.com/akkadotnet/akka.net>
4+
// </copyright>
5+
// -----------------------------------------------------------------------
6+
7+
using System;
8+
using Akka.Configuration;
9+
using Akka.Persistence.TestKit.Performance;
10+
using Xunit;
11+
using Xunit.Abstractions;
12+
13+
namespace Akka.Persistence.SqlServer.Tests
14+
{
15+
[Collection("SqlServerSpec")]
16+
public class SqlServerJournalPerfSpec : JournalPerfSpec
17+
{
18+
private static Config InitConfig(SqlServerFixture fixture)
19+
{
20+
//need to make sure db is created before the tests start
21+
DbUtils.Initialize(fixture.ConnectionString);
22+
23+
var specString = $@"
24+
akka.persistence {{
25+
publish-plugin-commands = on
26+
journal {{
27+
plugin = ""akka.persistence.journal.sql-server""
28+
sql-server {{
29+
class = ""Akka.Persistence.SqlServer.Journal.SqlServerJournal, Akka.Persistence.SqlServer""
30+
plugin-dispatcher = ""akka.actor.default-dispatcher""
31+
table-name = EventJournal
32+
schema-name = dbo
33+
auto-initialize = on
34+
connection-string = ""{DbUtils.ConnectionString}""
35+
}}
36+
}}
37+
}}";
38+
39+
return ConfigurationFactory.ParseString(specString);
40+
}
41+
42+
public SqlServerJournalPerfSpec(ITestOutputHelper output, SqlServerFixture fixture)
43+
: base(InitConfig(fixture), "SqlServerJournalPerfSpec", output)
44+
{
45+
EventsCount = 1000;
46+
ExpectDuration = TimeSpan.FromMinutes(10);
47+
MeasurementIterations = 1;
48+
}
49+
50+
protected override void Dispose(bool disposing)
51+
{
52+
base.Dispose(disposing);
53+
DbUtils.Clean();
54+
}
55+
}
56+
}

src/common.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
</PropertyGroup>
1212
<PropertyGroup>
1313
<XunitVersion>2.4.1</XunitVersion>
14-
<AkkaVersion>1.4.10</AkkaVersion>
15-
<TestSdkVersion>16.7.1</TestSdkVersion>
14+
<AkkaVersion>1.4.11</AkkaVersion>
15+
<TestSdkVersion>16.8.0</TestSdkVersion>
1616
<NetCoreTestVersion>netcoreapp3.1</NetCoreTestVersion>
1717
<NetFrameworkTestVersion>net461</NetFrameworkTestVersion>
1818
<NetStandardLibVersion>netstandard2.0</NetStandardLibVersion>

0 commit comments

Comments
 (0)