Skip to content

Commit

Permalink
Bump AkkaVersion from 1.5.26 to 1.5.28 (#424)
Browse files Browse the repository at this point in the history
* Bump AkkaVersion from 1.5.26 to 1.5.28

Bumps `AkkaVersion` from 1.5.26 to 1.5.28.

Updates `Akka.Cluster.Sharding` from 1.5.26 to 1.5.28
- [Release notes](https://github.com/akkadotnet/akka.net/releases)
- [Changelog](https://github.com/akkadotnet/akka.net/blob/dev/RELEASE_NOTES.md)
- [Commits](akkadotnet/akka.net@1.5.26...1.5.28)

Updates `Akka.Persistence.Query` from 1.5.26 to 1.5.28
- [Release notes](https://github.com/akkadotnet/akka.net/releases)
- [Changelog](https://github.com/akkadotnet/akka.net/blob/dev/RELEASE_NOTES.md)
- [Commits](akkadotnet/akka.net@1.5.26...1.5.28)

Updates `Akka.Persistence.TCK` from 1.5.26 to 1.5.28
- [Release notes](https://github.com/akkadotnet/akka.net/releases)
- [Changelog](https://github.com/akkadotnet/akka.net/blob/dev/RELEASE_NOTES.md)
- [Commits](akkadotnet/akka.net@1.5.26...1.5.28)

---
updated-dependencies:
- dependency-name: Akka.Cluster.Sharding
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: Akka.Persistence.Query
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: Akka.Persistence.TCK
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Port akkadotnet/akka.net#7313: Made `DateTime.UtcNow` the default timestamp for `SnapshotMetdata`

(cherry picked from commit 916d18b)

* Make operation cheaper

(cherry picked from commit 1f8c3f6)

* Fix port code to take DateTime.MinValue into account

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gregorius Soedharmo <arkatufus@yahoo.com>
  • Loading branch information
dependabot[bot] and Arkatufus authored Sep 11, 2024
1 parent 5ad7a15 commit 6bf4c18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion src/Akka.Persistence.Azure/Snapshot/AzureBlobSnapshotStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,21 @@ protected override async Task DeleteAsync(SnapshotMetadata metadata)
cts.CancelAfter(_settings.RequestTimeout);
using (cts)
{
await blobClient.DeleteIfExistsAsync(cancellationToken: cts.Token);
if (metadata.Timestamp == DateTime.MinValue)
{
// Short-circuit the timestamp query if the metadata does not require us to check for timestamp
await blobClient.DeleteIfExistsAsync(cancellationToken: cts.Token);
}
else
{
var response = await blobClient.GetPropertiesAsync(cancellationToken: cts.Token);
if (response.HasValue)
{
var timestamp = new DateTime(long.Parse(response.Value.Metadata[TimeStampMetaDataKey]));
if(timestamp <= metadata.Timestamp)
await blobClient.DeleteAsync(cancellationToken: cts.Token);
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<AkkaVersion>1.5.26</AkkaVersion>
<AkkaVersion>1.5.28</AkkaVersion>
<AkkaHostingVersion>1.5.25</AkkaHostingVersion>
</PropertyGroup>
<!-- App dependencies -->
Expand Down

0 comments on commit 6bf4c18

Please sign in to comment.