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

Avoid crashing live loader in case the network is interrupted. #5268

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Apr 22, 2020

Live loader currently runs x.Fatalf the moment it has a connection interrupt. Instead, it should just retry indefinitely.

Also, remove a %+v error print for aborting transactions, which causes the entire error stack trace to be printed, which makes it look like a crash.


This change is Reviewable

@manishrjain manishrjain requested a review from a team as a code owner April 22, 2020 02:18
Copy link
Contributor

@danielmai danielmai left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@manishrjain manishrjain merged commit 32266db into master Apr 22, 2020
@manishrjain manishrjain deleted the mrjn/nocrash-live-loader branch April 22, 2020 02:44
danielmai pushed a commit that referenced this pull request Apr 22, 2020
Live loader currently runs `x.Fatalf` the moment it has a connection interrupt. Instead, it should just retry indefinitely.

Also, remove a `%+v` error print for aborting transactions, which causes the entire error stack trace to be printed, which makes it look like a crash.
danielmai pushed a commit that referenced this pull request Apr 22, 2020
Live loader currently runs `x.Fatalf` the moment it has a connection interrupt. Instead, it should just retry indefinitely.

Also, remove a `%+v` error print for aborting transactions, which causes the entire error stack trace to be printed, which makes it look like a crash.
danielmai added a commit that referenced this pull request Apr 22, 2020
#5276)

Cherry-pick of #5268 onto release/v1.2:

Live loader currently runs `x.Fatalf` the moment it has a connection interrupt. Instead, it should just retry indefinitely.

Also, remove a `%+v` error print for aborting transactions, which causes the entire error stack trace to be printed, which makes it look like a crash.

Co-authored-by: Manish R Jain <[email protected]>
danielmai added a commit that referenced this pull request Apr 24, 2020
#5275)

Live loader currently runs `x.Fatalf` the moment it has a connection interrupt. Instead, it should just retry indefinitely.

Also, remove a `%+v` error print for aborting transactions, which causes the entire error stack trace to be printed, which makes it look like a crash.

Co-authored-by: Manish R Jain <[email protected]>
dna2github pushed a commit to dna2fork/dgraph that referenced this pull request Jul 18, 2020
…modeinc#5268)

Live loader currently runs `x.Fatalf` the moment it has a connection interrupt. Instead, it should just retry indefinitely.

Also, remove a `%+v` error print for aborting transactions, which causes the entire error stack trace to be printed, which makes it look like a crash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants