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

indexserver: Wait for frontend to start #30

Merged
merged 2 commits into from
Oct 1, 2019
Merged

Conversation

keegancsmith
Copy link
Member

This should stop the logspam we see when indexserver starts up faster than the
frontend pod.

Fixes https://github.com/sourcegraph/sourcegraph/issues/3371

This should stop the logspam we see when indexserver starts up faster than the
frontend pod.

Change-Id: I9f6f1cd7707ad08034886d8c6e11787ad692496a
@keegancsmith keegancsmith requested a review from kzh September 30, 2019 15:59
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("ping: bad HTTP response status %d", resp.StatusCode)
}
body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 1024))
Copy link
Contributor

@kzh kzh Sep 30, 2019

Choose a reason for hiding this comment

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

Would changing 1024 to 16 allow us to avoid doing the truncating logic below?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes it would! will update.

Change-Id: Ica973bd9e952c8c298cc6930b9cf7efb6402eba9
@keegancsmith keegancsmith merged commit fb5ac48 into master Oct 1, 2019
@keegancsmith keegancsmith deleted the ping-frontend branch October 1, 2019 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

search: replace zoekt-wrapper script sleep hack
2 participants