Skip to content

dep: Bump grpc-go version#24883

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
a-robinson:grpc-dep
May 17, 2018
Merged

dep: Bump grpc-go version#24883
craig[bot] merged 1 commit intocockroachdb:masterfrom
a-robinson:grpc-dep

Conversation

@a-robinson
Copy link
Copy Markdown
Contributor

And pull in new packages -- in particular, the encoding/proto package
isn't needed for compilation but is needed at runtime.

Release note: None


We should wait to merge this until they've cut the 1.12 release tag so that we aren't just at an arbitrary commit in their git history but I'm sending out the PR now so that I (or whoever would have done this) don't have to deal with debugging the missing encoding/proto package when it comes time to merge this.

As tested in #17370 (comment), this gives a 5-10% boost in whole-cluster throughput and improved tail latencies when run with a highly concurrent workload. It appears to have little performance effect for lower-concurrency workloads.

@a-robinson a-robinson requested a review from a team April 17, 2018 19:47
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@a-robinson
Copy link
Copy Markdown
Contributor Author

I'll also have to update https://github.com/cockroachdb/vendored when the time comes -- I just didn't bother in this case since I think we should wait until grpc-go creates the release tag.

@a-robinson
Copy link
Copy Markdown
Contributor Author

a-robinson commented May 14, 2018

grpc-go was released early last week. This is now ready for review/merge, using vendored commit cockroachdb/vendored@8254d79

@tbg
Copy link
Copy Markdown
Member

tbg commented May 14, 2018

Your vendor seems to conflict. LGTM otherwise and perhaps @bdarnell wants to sign off as well.

@bdarnell
Copy link
Copy Markdown
Contributor

:lgtm:

Any noteworthy changes?


Review status: 0 of 2 files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from Reviewable

@a-robinson
Copy link
Copy Markdown
Contributor Author

Yeah sorry, fixed now.

@a-robinson
Copy link
Copy Markdown
Contributor Author

Any noteworthy changes?

Mostly just performance improvements and bug fixes. A few error messages changed, but I don't believe any of them should affect us. https://github.com/grpc/grpc-go/releases for reference.

@a-robinson
Copy link
Copy Markdown
Contributor Author

I've had to remove the use of ErrClientConnClosing to satisfy staticcheck. It's now deprecated and just checking for the Canceled status is its replacement, which we were already doing.

I've also had to send a PR (grpc-ecosystem/grpc-gateway#654) upstream to the grpc-gateway code generator to fix staticcheck issues around the deprecation of the Printf method in google.golang.org/grpc/grpclog. Assuming that gets accepted in a timely manner, I'll then bump our dependency on grpc-gateway. If it isn't, I'm not sure what the best plan is. Is there a way to just ignore a certain issue in our usage staticcheck?

@bdarnell
Copy link
Copy Markdown
Contributor

We have some specific ignore rules in our invocation of staticcheck:

&lint.GlobIgnore{Pattern: "github.com/cockroachdb/cockroach/pkg/sql/parser/sql.go", Checks: []string{"SA4006"}},

We should feel free to ignore lint issues in generated files.

And pull in new packages -- in particular, the encoding/proto package
isn't needed for compilation but is needed at runtime.

Release note: None
@a-robinson
Copy link
Copy Markdown
Contributor Author

Perfect, thanks for the pointer!

@a-robinson
Copy link
Copy Markdown
Contributor Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 17, 2018

Canceled (will resume)

craig bot pushed a commit that referenced this pull request May 17, 2018
24883: dep: Bump grpc-go version r=a-robinson a=a-robinson

And pull in new packages -- in particular, the encoding/proto package
isn't needed for compilation but is needed at runtime.

Release note: None

---------------------

We should wait to merge this until they've cut the 1.12 release tag so that we aren't just at an arbitrary commit in their git history but I'm sending out the PR now so that I (or whoever would have done this) don't have to deal with debugging the missing encoding/proto package when it comes time to merge this.

As tested in #17370 (comment), this gives a 5-10% boost in whole-cluster throughput and improved tail latencies when run with a highly concurrent workload. It appears to have little performance effect for lower-concurrency workloads.

25410:  sql: run schema changes after CREATE TABLE in txn r=vivekmenezes a=vivekmenezes

Includes a commit from #25362 and should be reviewed after that change.

25612: util: fix `retry.WithMaxAttempts` context cancelled before run. r=windchan7 a=windchan7

If context gets cancelled right after `retry.WithMaxAttempts` runs, the function
passed to it will never gets run. Now `retry.WithMaxAttempts` will at least run
the function once otherwise an error will be returned.

Making this change because there are places such as `show_cluster_setting.go`
require the passed in function to be run at least once. Otherwise there will
be seg fault.

Fixes: #25600. 
Fixes: #25603.
Fixes: #25570. 
Fixes: #25567.
Fixes: #25566.
Fixes: #25511.
Fixes: #25485.
Release note: None

25625: storage: Adding testing knob to disable automatic lease renewals r=a-robinson a=a-robinson

In order to fix the test flakes caused by automatic lease renewals

Fixes #25537
Fixes #25540
Fixes #25568
Fixes #25573
Fixes #25576
Fixes #25589
Fixes #25594
Fixes #25599
Fixes #25605
Fixes #25620

Release note: None

Co-authored-by: Alex Robinson <alexdwanerobinson@gmail.com>
Co-authored-by: Vivek Menezes <vivek@cockroachlabs.com>
Co-authored-by: Victor Chen <victor@cockroachlabs.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 17, 2018

Build succeeded

@craig craig bot merged commit b161db8 into cockroachdb:master May 17, 2018
@a-robinson a-robinson deleted the grpc-dep branch May 18, 2018 20:34
a-robinson added a commit to a-robinson/cockroach that referenced this pull request May 23, 2018
Un-reverts cockroachdb#24883 to include grpc/grpc-go#2074

This also removed hdrhistogram-writer because it apparently isn't used
anymore.

Release note: None
craig bot pushed a commit that referenced this pull request May 23, 2018
25676: storage: Fix flaky TestReplicaNotLeaseHolderError r=a-robinson a=a-robinson

Caused by the proactive renewal of expiration-based leases (see #25322
and #25625 for more detail).

Fixes #25731

Release note: None

I'm not sure how many more of these flakes to expect over the next couple weeks. I'm currently running `stressrace` on all of `pkg/storage` on a gceworker to try and ferret them out if there are any more, but there's no guarantee that'll find all of them.

25816: ui: don't show login indicator unless login is enabled r=couchand a=couchand

In #25005 I accidentally let the login indicator leak even if the environment
variable wasn't set.  This corrects that issue.

Release note: None
Fixes: #25843

25853: dep: Bump grpc-go to include perf improvements and data race fix r=a-robinson a=a-robinson

Un-reverts #24883 to include grpc/grpc-go#2074

This also removed hdrhistogram-writer because it apparently isn't used
anymore.

Release note: None

Maybe we want to wait until they put this into a more formal release SHA, though.

Co-authored-by: Alex Robinson <alexdwanerobinson@gmail.com>
Co-authored-by: Andrew Couch <andrew@cockroachlabs.com>
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.

4 participants