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

sql: fix license acquisition bug and add a flag to disable acquisition #46126

Merged
merged 1 commit into from
Mar 16, 2020

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Mar 15, 2020

Fixes #46117.

Release justification: bug fix

Release note (bug fix): This PR fixes a bug where sometimes using
cockroach demo -e would display a connection refused error.

Release note (cli change): This PR adds the flag --disable-demo-license
to provide another option to disable cockroach demo from attempting
to acquire a demo license.

@rohany rohany requested a review from knz March 15, 2020 02:31
@rohany rohany requested a review from a team as a code owner March 15, 2020 02:31
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

I'll do a more thorough review in a 2nd pass, thanks for looking at this already

Reviewed 4 of 4 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @rohany)


pkg/cli/interactive_tests/test_demo_partitioning.tcl, line 96 at r1 (raw file):

end_test

start_test "Expect an error if geo-partitioning is requested and the user disabled license acquisition"

I think this could be an Example_xxx test in cli_test.go?

please also add the -e tests:

  • license error with -e using a licensed feature and --disable-demo-license
  • no error with -e, licensed feature, without --disable-demo-license

Copy link
Contributor Author

@rohany rohany left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @knz)


pkg/cli/interactive_tests/test_demo_partitioning.tcl, line 96 at r1 (raw file):

Previously, knz (kena) wrote…

I think this could be an Example_xxx test in cli_test.go?

please also add the -e tests:

  • license error with -e using a licensed feature and --disable-demo-license
  • no error with -e, licensed feature, without --disable-demo-license

Done. I added those tests here though, because a CCL binary is required.

Fixes cockroachdb#46117.

Release justification: bug fix

Release note (bug fix): This PR fixes a bug where sometimes using
`cockroach demo -e` would display a `connection refused` error.

Release note (cli change): This PR adds the flag `--disable-demo-license`
to provide another option to disable `cockroach demo` from attempting
to acquire a demo license.
Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

:lgtm: nice thanks

Reviewed 3 of 3 files at r2.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@rohany
Copy link
Contributor Author

rohany commented Mar 16, 2020

bors r=knz

@craig
Copy link
Contributor

craig bot commented Mar 16, 2020

Build failed

@rohany
Copy link
Contributor Author

rohany commented Mar 16, 2020

js oom

bors r=knz

@craig
Copy link
Contributor

craig bot commented Mar 16, 2020

Build succeeded

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.

cli/demo: regression: -e is broken when used with --empty
3 participants