SOLR-15209: Make the LegacyAssignStrategy the DefaultPlacementPlugin#512
Conversation
murblanc
left a comment
There was a problem hiding this comment.
I see you're considering SOLR-15209 as making LegacyAssignStrategy the default placement, when it originally was (and still is in Jira) "Make the AffinityPlacementFactory the default placement plugin".
With this new goal of SOLR-15209 the PR seems reasonable, I've left a few comments.
The original goal of SOLR-15209 was to make the realistic placement strategy (affinity placement) the default one to 1. have better/more flexible placement overall, and 2. make sure this code is running (in installations, in tests) to find issues with it.
As it stands, tests still run against the legacy strategy and do not test the "real" placement plugin.
solr/core/src/java/org/apache/solr/cloud/api/collections/Assign.java
Outdated
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/cluster/placement/plugins/DefaultPlacementFactory.java
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/cluster/placement/plugins/DefaultPlacementFactory.java
Outdated
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/cluster/placement/plugins/DefaultPlacementFactory.java
Outdated
Show resolved
Hide resolved
Fair enough, I thought about creating a new ticket, which I still can. I ended up not because making the legacy strategy a plugin, like the rest, was a part of the description. If you would like a new JIRA to track this, so that SOLR-15209 can be used to track changing the default, I am happy to make the new one and link it 🙂
We can always do this (even under a different ticket), then decide to change the default implementation separately. I'm perfectly fine with that as long as we test how the performance of cluster operations are affected. But I definitely agree that there should be more tests around these. (I think while writing this, I found some issues that I will surface in new JIRAs) |
|
I hope eventually we can make another placement plugin (the affinity placement one) the default placement, but I don't have time any time soon to look at the tests, understand them and make them work with it. |
|
Ok I will then rename the I will leave a TODO comment for the future. |
https://issues.apache.org/jira/browse/SOLR-15209
There are some issues with each of the placementPlugins, but will follow up separately.