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

Hack: Trap nil res.Row and raise an error so higher layers can retry. #376

Closed
wants to merge 1 commit into from
Closed

Conversation

whitaker
Copy link
Contributor

This happens occasionally but regularly and w/o this hack triggers
a panic when res.Row.Families is dereferenced. I don't think this
seems normal but haven't been able to identify the root cause.
However, retrying seems to be correct because I'm not seeing
duplicate writes after this error is caught + retried.

This happens occasionally but regularly and w/o this hack triggers
a panic when res.Row.Families is dereferenced.  I don't think this
seems normal but haven't been able to identify the root cause.
However, retrying seems to be correct because I'm not seeing
duplicate writes after this error is caught + retried.
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@whitaker whitaker closed this Sep 19, 2016
@jba
Copy link
Contributor

jba commented Sep 19, 2016

cc @garye

@jba jba reopened this Sep 19, 2016
@jba jba closed this Sep 19, 2016
@twmb
Copy link

twmb commented Sep 19, 2016

Note that only res.Rows can be nil in the code, which would result from an empty bit of rows from the rpc response.

@garye
Copy link
Contributor

garye commented Sep 20, 2016

@twmb @whitaker This has been close twice, is it supposed to be an open pull request? We can discuss here but move to gerrit to actually make a change (see CONTRIBUTING.md).

@whitaker
Copy link
Contributor Author

@garye: Sorry I was opening a PR under the Fastly repo's fork but accidentally based it off here. I closed immediately but looks like @jba later found it and CC'd you.

It's a real issue I'm patching over but the current fix is only a workaround, so I wouldn't expect you to accept it. I think that means this PR should be closed and we can follow up with a fix for the root cause once it's identified & tested.

@garye
Copy link
Contributor

garye commented Sep 20, 2016

Ok, sounds good. Let me know if you make any more progress.

On Mon, Sep 19, 2016, 8:23 PM Brad Whitaker notifications@github.com
wrote:

@garye https://github.com/garye: Sorry I was opening a PR under the
Fastly repo's fork but accidentally based it off here. I closed immediately
but looks like @jba https://github.com/jba later found it and CC'd you.

It's a real issue I'm patching over but the current fix is only a
workaround, so I wouldn't expect you to accept it. I think that means this
PR should be closed and we can follow up with a fix for the root cause once
it's identified & tested.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#376 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACTr4dhhiA90jvT2BveN0AGznU-Ilhmks5qrydxgaJpZM4KA_P6
.

semistrict pushed a commit to semistrict/google-cloud-go that referenced this pull request Jun 11, 2018
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.

None yet

5 participants