Conversation
A number of utils methods in TransportVersionUtils, MlConfigVersionUtils, VersionUtils, IndexVersionUtils and TransformConfigVersionUtils had a random parameter that was only ever passed in as Lucene.test.random(). This removes the unnecessary parameter.
|
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
DaveCTurner
left a comment
There was a problem hiding this comment.
Ok with the ones that remove the random() argument from method calls, just a little supicious about the ones that remove actual methods. Let's see what core/infra say about #140222 - maybe there's some good reason why we were passing a Random around everywhere here?
|
I was only removing the method because it was overloading a parameterless one, and so me removing the parameter made a duplicate method. E.g: by removing which has a duplicate of the existing, hence the whole method got removed |
|
To clarify, I did not remove any method that according to IntelliJ "wasn't used anywhere". That was reserved for #140222 so it could be a separate discussion |
|
As a note, #140222 has been merged |
…lastic/elasticsearch into random-compatible-version-random-param
…lastic/elasticsearch into random-compatible-version-random-param
A number of utils methods in TransportVersionUtils, MlConfigVersionUtils, VersionUtils, IndexVersionUtils and TransformConfigVersionUtils had a random parameter that was only ever passed in as Lucene.test.random(). This removes the unnecessary parameter.
A number of utils methods in
TransportVersionUtils,MlConfigVersionUtils,VersionUtils,IndexVersionUtilsandTransformConfigVersionUtilshad a random parameter that was only ever passed in asLucene.test.random(). This removes the unnecessary parameter.