-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log Consistency Providers #1854
Merged
sergeybykov
merged 15 commits into
dotnet:master
from
sebastianburckhardt:geo-logviewproviders
Jan 14, 2017
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
657ca9b
revised #1854, for naming, packaging, and log-consistency provider se…
sebastianburckhardt f774fae
add LogStorage log-consistency provider (stores entire log, using sta…
sebastianburckhardt d6a1980
change some details to fix vNext build
sebastianburckhardt c00cbf1
add two tests and one JournaledGrain method that I accidentally omitted.
sebastianburckhardt c6fe836
copy-paste error in previous commit - used wrong name for method. Sigh.
sebastianburckhardt 7c9008a
rename FetchAllEventsNow() to RefreshNow() because the former is too …
sebastianburckhardt 08160dc
break activation of log view adaptor into two steps - so initial load…
sebastianburckhardt 7c14e2e
add general check to catch errors where protocol messages are sent to…
sebastianburckhardt 5e3f603
some renaming (LogConsistencyProtocol instead of Protocol), and a few…
sebastianburckhardt 9008b1b
fix some access modifiers, remove an unused field, add some comments,…
sebastianburckhardt 711a9c6
Change Silo.ClusterId to return Pseudo-ID, not null, if no multi-clus…
sebastianburckhardt c4d48b7
Merge branch 'orleans-master' into geo-logviewproviders
sebastianburckhardt 8d4cbdc
fix confllict: pass provider runtime in constructor of LogConsistency…
sebastianburckhardt eca92aa
remove logging severity overloads from ILogConsistencyProtocolServices
sebastianburckhardt 641f53d
use DeploymentId when creating a pseudo-multicluster-configuration, i…
sebastianburckhardt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Orleans.LogConsistency | ||
{ | ||
|
||
/// <summary> | ||
/// Represents information about connection issues encountered inside log consistency protocols. | ||
/// It is used both inside the protocol to track retry loops, and is made visible to users | ||
/// who want to monitor their log-consistent grains for communication issues. | ||
/// </summary> | ||
[Serializable] | ||
public abstract class ConnectionIssue | ||
{ | ||
/// <summary> | ||
/// The UTC timestamp of the last time at which the issue was observed | ||
/// </summary> | ||
public DateTime TimeStamp { get; set; } | ||
|
||
/// <summary> | ||
/// The UTC timestamp of the first time we observed this issue | ||
/// </summary> | ||
public DateTime TimeOfFirstFailure { get; set; } | ||
|
||
/// <summary> | ||
/// The number of times we have observed this issue since the first failure | ||
/// </summary> | ||
public int NumberOfConsecutiveFailures { get; set; } | ||
|
||
/// <summary> | ||
/// The delay we are waiting before the next retry | ||
/// </summary> | ||
public TimeSpan RetryDelay { get; set; } | ||
|
||
/// <summary> | ||
/// Computes the retry delay based on the rest of the information. Is overridden by subclasses | ||
/// that represent specific categories of issues. | ||
/// </summary> | ||
/// <param name="previous">The previously used retry delay</param> | ||
/// <returns></returns> | ||
public abstract TimeSpan ComputeRetryDelay(TimeSpan? previous); | ||
} | ||
|
||
|
||
|
||
/// <summary> | ||
/// Represents information about notification failures encountered inside log consistency protocols. | ||
/// </summary> | ||
[Serializable] | ||
public abstract class NotificationFailed : ConnectionIssue | ||
{ | ||
/// <summary> | ||
/// The clusterId of the remote cluster to which we had an issue when sending change notifications. | ||
/// </summary> | ||
public string RemoteClusterId { get; set; } | ||
|
||
/// <summary> | ||
/// The exception we caught, or null if the problem was not caused by an exception. | ||
/// </summary> | ||
public Exception Exception { get; set; } | ||
} | ||
|
||
|
||
|
||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't find any usages of this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intellisense glitch? At first I did not see any either, but now it reports 6 references. For example, in OrleansEventSourcing\Common\PrimaryBasedLogViewAdaptor.