Skip to content

Stream Recovery Tests - #1289

Merged
jdom merged 4 commits into
dotnet:masterfrom
jason-bragg:RecoverableStreamTests
Jan 20, 2016
Merged

jdom merged 4 commits into
dotnet:masterfrom
jason-bragg:RecoverableStreamTests

Conversation

@jason-bragg

Copy link
Copy Markdown
Contributor

Added testing for some basic stream recovery tests.
Tests use test generated streams
Tests are limited to implicit subscriptions
Tests transient stream processing errors, exercising delivery retry and stream rewind logic.
Tests non-transient stream processing errors, exercising exhaustion of delivery retries and error notification.

Added testing for some basic stream recovery tests.
Tests use test generated streams
Tests are limited to implicit subscriptions
Tests transient stream processing errors, exercising delivery retry and stream rewind logic.
Tests non-transient stream processing errors, exercising exhaustion of delivery reties and error notification.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need those GetConfigurationForNode calls?
is it to cause the new settings to get propagated to the silos?
We should then at least rename them to be explicit about that intent.
Even better, the base class HostedTestClusterPerFixture should be doing that. Especially with the new explicit base classes that @jdom added, this should be done by the framework, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are there for the queue balancer. The DeploymentBasedQueueBalancer using the StaticClusterDeploymentConfiguration requires all nodes be defined in the cluster configuration. The GetConfigurationForNode creates a node configuration for the silo names provided. Without this, these nodes are not part of the cluster configuration and the DeploymentBasedQueueBalancer will not work.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what to recommend here, as I'm not sure I understand what it's trying to accomplish. Can't we just set the configuration directing instead of having a base config and then updating it? or are these knobs not exposed in some other way?

@gabikliot

Copy link
Copy Markdown
Contributor

Right, so it is like I wrote: "to cause the new settings to get propagated to the silos?"

Can we please improve this in one of the ways I proposed above? The best solution I think is to do it in the base Test Host class. @jdom is an expert on those now, so it should be a breeze between two of you. You have to agree that GetConfigurationForNode is very ugly and does not explain the intent of "make all those setting also apply to this other silo as well".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its a grain, right? So no need in ConcurrentDictionary. Regular Dictionary will be enough.

Ohh, its static. Hmmm....

@jason-bragg

Copy link
Copy Markdown
Contributor Author

@gabikliot

Right, so it is like I wrote: "to cause the new settings to get propagated to the silos?"

No. I'm unclear how you came to this conclusion from my response. It's so each silo contains all of the other silos in it's cluster config because the StaticClusterDeploymentConfiguration requires this for the DeploymentBasedQueueBalancer to work.

For the DeploymentBasedQueueBalancer to optimally balance queues across all of the silos in the cluster it needs to know, at start time, what silos are expected in the cluster. It's sub-optimal to build the list on the fly. In Azure, which this algorithm was originally designed for, the role environment contains a full list of hosts. For this to work in stand alone Orleans clusters, as we have in these tests, the full list of hosts must be listed as nodes in the cluster configuration. This is not usually the case for cluster configurations, so we modify the cluster configuration in the test hook adding nodes for each silo. There is even a comment explaining why these nodes are being added.

Can we please improve this in one of the ways I proposed above?

The assumption you're working from regarding why these lines are in the test hook is incorrect, so the corrective actions you propose do not apply.

@jason-bragg

Copy link
Copy Markdown
Contributor Author

Updating comment of GetConfigurationForNode calls to be more clear.

@jdom

jdom commented Jan 20, 2016

Copy link
Copy Markdown
Member

@gabikliot I'm merging since the comments seem to be on just how to start up the tests, and may already be addressed. If they are not, Jason can submit a follow up PR with a cleanup, but at this point it is blocking him from submitting other PRs that depend on this code being merged.
BTW, he is already inheriting from HostedTestClusterPerFixture as he should be.

jdom added a commit that referenced this pull request Jan 20, 2016
@jdom
jdom merged commit 74ea5ba into dotnet:master Jan 20, 2016
@gabikliot

Copy link
Copy Markdown
Contributor

@jason-bragg , can you please submit a follow up PR which will replace the calls GetConfigurationForNode with something like UpdateConfigurationForNode, or PropogateXXX, or AddSiloToAllConfiguration or anything that will clearly indicate mutation/change.

GetXXX is supposed to be side effect free.

Even better would be is this call to Add/Update/Propogate will happen in the base method AdjustConfig.

@jason-bragg

Copy link
Copy Markdown
Contributor Author

Follow up in GetOrAddConfigurationForNode #1313

@github-actions github-actions Bot locked and limited conversation to collaborators Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants