-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix aliasing bug * implement replay checker * undo unnecessary change * add missing teeth: must fail unit tests on test hook errors * fix bug, remove unnecessary field * fix replay discrepancy on fields of outgoing messages * fix race condition when updating creation timestamp during prefetch * fix last commit * fix false errors caused by json property order
- Loading branch information
1 parent
f542c93
commit 885f7b9
Showing
35 changed files
with
680 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/DurableTask.Netherite/Abstractions/PartitionState/PartitionEffectTracker.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
namespace DurableTask.Netherite | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using DurableTask.Core; | ||
using DurableTask.Core.Common; | ||
|
||
/// <summary> | ||
/// Is used while applying an effect to a partition state, to carry | ||
/// information about the context, and to enumerate the objects on which the effect | ||
/// is being processed. | ||
/// </summary> | ||
abstract class PartitionEffectTracker : EffectTracker | ||
{ | ||
readonly Partition partition; | ||
|
||
public PartitionEffectTracker(Partition partition) | ||
{ | ||
this.partition = partition; | ||
if (partition == null) | ||
{ | ||
throw new ArgumentNullException(nameof(partition)); | ||
} | ||
} | ||
|
||
public override Partition Partition => this.partition; | ||
|
||
public override EventTraceHelper EventTraceHelper | ||
=> this.Partition.EventTraceHelper; | ||
|
||
public override EventTraceHelper EventDetailTracer | ||
=> this.Partition.EventDetailTracer; | ||
|
||
protected override void HandleError(string where, string message, Exception e, bool terminatePartition, bool reportAsWarning) | ||
=> this.Partition.ErrorHandler.HandleError(where, message, e, terminatePartition, reportAsWarning); | ||
|
||
public override void Assert(bool condition) | ||
=> this.Partition.Assert(condition); | ||
|
||
public override uint PartitionId | ||
=> this.Partition.PartitionId; | ||
|
||
public override double CurrentTimeMs | ||
=> this.Partition.CurrentTimeMs; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.