Repository navigation
Stream Recovery Tests - #1289
Conversation
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
|
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 |
There was a problem hiding this comment.
its a grain, right? So no need in ConcurrentDictionary. Regular Dictionary will be enough.
Ohh, its static. Hmmm....
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.
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. |
|
Updating comment of GetConfigurationForNode calls to be more clear. |
|
@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. |
|
@jason-bragg , can you please submit a follow up PR which will replace the calls
Even better would be is this call to |
|
Follow up in GetOrAddConfigurationForNode #1313 |
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.