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

Remove admin privilege for force_retry #39243 #39246

Merged
merged 2 commits into from Aug 5, 2019
Merged

Conversation

Inconnu08
Copy link
Contributor

Resolves #39243

@Inconnu08 Inconnu08 requested a review from a team August 1, 2019 20:31
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@bdarnell
Copy link
Member

bdarnell commented Aug 2, 2019

Thanks!

There's also a test for this error that needs to be removed (in logic_test/crdb_internal)

@Inconnu08
Copy link
Contributor Author

@bdarnell you're welcome!

@bdarnell
Copy link
Member

bdarnell commented Aug 5, 2019

bors r+

craig bot pushed a commit that referenced this pull request Aug 5, 2019
39246: Remove admin privilege for force_retry #39243 r=bdarnell a=Inconnu08

Resolves #39243

Co-authored-by: Taufiq Rahman <taufiqrx8@gmail.com>
@craig
Copy link
Contributor

craig bot commented Aug 5, 2019

Build succeeded

@jseldess
Copy link
Contributor

@bdarnell, this hasn't changed in our auto-generated functions doc. Still shows up as crdb_internal.force_retry under https://www.cockroachlabs.com/docs/dev/functions-and-operators.html#system-info-functions. That ok, or should this look different?

@bdarnell
Copy link
Member

Yeah, 'system info functions' is still the right place for it. Nothing needs to change because the admin privilege was removed, but now that we're using this in our examples we should probably give it some actual docs instead of "internal use only".

rmloveland added a commit to cockroachdb/docs that referenced this pull request Sep 12, 2019
Also, delete the comments in the Python code that state that
`crdb_internal.force_retry()` must be run as root.  This restriction was
lifted in cockroachdb/cockroach#39246.

The 19.1 Python code samples were updated in #5085 and #5173.  We then
forgot to port those changes to 19.2.  This commit remedies that
oversight.

Addresses part of #5176.
rmloveland added a commit to cockroachdb/docs that referenced this pull request Sep 16, 2019
Also, delete the comments in the Python code that state that
`crdb_internal.force_retry()` must be run as root.  This restriction was
lifted in cockroachdb/cockroach#39246.

The 19.1 Python code samples were updated in #5085 and #5173.  We then
forgot to port those changes to 19.2.  This commit remedies that
oversight.

Addresses part of #5176.
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.

sql: force_retry shouldn't require admin
4 participants