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

Ensure remote cluster is connected before fetching _field_caps #24845

Merged
merged 3 commits into from
May 24, 2017

Conversation

s1monw
Copy link
Contributor

@s1monw s1monw commented May 23, 2017

If a cluster disconnects and comes back up we should ensure that
we connected to the cluster before we fire the requests.

Closes #24763

If a cluster disconnects and comes back up we should ensure that
we connected to the cluster before we fire the requests.

Closes elastic#24763
Copy link
Member

@javanna javanna left a comment

Choose a reason for hiding this comment

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

LGTM thanks @s1monw

List<DiscoveryNode> knownNodes = new CopyOnWriteArrayList<>();
try (MockTransportService seedTransport = startTransport("seed_node", knownNodes, Version.CURRENT);
MockTransportService discoverableTransport = startTransport("discoverable_node", knownNodes, Version.CURRENT)) {
DiscoveryNode seedNode = seedTransport.getLocalDiscoNode();
Copy link
Member

Choose a reason for hiding this comment

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

can you fix the indentation here?

@s1monw s1monw merged commit ac6a6d6 into elastic:master May 24, 2017
s1monw added a commit that referenced this pull request May 24, 2017
The test `testEnsureConnected` was accidentially introduces during #24845
s1monw added a commit that referenced this pull request May 29, 2017
)

If a cluster disconnects and comes back up we should ensure that
we connected to the cluster before we fire the requests.

Closes #24763
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants