Skip to content
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

Remove transport client from tests #42457

Merged
merged 5 commits into from
May 24, 2019

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented May 23, 2019

This commit removes testing infrastructure for using the transport
client.

This commit removes testing infrastructure for using the transport
client.
@rjernst rjernst added :Delivery/Build Build or test infrastructure >refactoring v8.0.0 labels May 23, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

* transport client does not understand based on the fact that it only presents the node-and-transport-client-feature.
*/
@ESIntegTestCase.ClusterScope(scope = TEST)
public class ClusterStateIT extends ESIntegTestCase {
Copy link
Member

Choose a reason for hiding this comment

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

@rjernst and I discussed this. This test is testing functionality that is currently only used for the transport client as far as I can see. This is based on the following code:

if (custom.getRequiredFeature().isPresent()) {
final String requiredFeature = custom.getRequiredFeature().get();
// if it is a transport client we are lenient yet for a connected node it must have the required feature
return out.hasFeature(requiredFeature) || out.hasFeature(TransportClient.TRANSPORT_CLIENT_FEATURE) == false;

At this point in time, the removal of the transport client leaves us with the NodeClient but since the NodeClient is a node, the node must have the same plugins/features that the other nodes have. Given this, I do not see a way for this test to continue to be valid without the transport client. In the future, we may decide to use the feature aware logic for remote cluster connections if we need to serialize the cluster state but this is not in place today which is why I think removal of this test is ok.

@jasontedor is this ok with you?

Copy link
Member

Choose a reason for hiding this comment

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

That's fine with me. Thanks for checking.

Copy link
Member

@jaymode jaymode left a comment

Choose a reason for hiding this comment

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

LGTM

@rjernst rjernst merged commit 1b6dc17 into elastic:master May 24, 2019
@rjernst rjernst deleted the remove_transport_client3 branch May 24, 2019 17:30
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
This commit removes testing infrastructure for using the transport
client.
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >refactoring Team:Delivery Meta label for Delivery team v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants