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

storageccl: accept and ignore a node-ID in the host of nodelocal:// uri #34797

Merged
merged 1 commit into from Feb 12, 2019

Conversation

dt
Copy link
Member

@dt dt commented Feb 11, 2019

This doesn't change the actual behavior of node-local storage -- it only allows (and then ignores) a nodeID to appear in the Host componant of the URI.

Previously the host componant had to be empty. It still can be after this change or it can be a number.
This paves the way to updating docs/usage/etc to show it used with a node-ID before changing it in a future version to require the nodeID.
Exact semantics of that change are TBD, but we wanted to get the change in that allows the node-ID to be passed so that we could begin to show it used and start the multi-release process required for a breaking change.

Release note (enterprise chage): nodelocal:// storage paths for BACKUP, RESTORE and IMPORT may include a node-ID in the Host part of the URI. It is not currently used (any node can get sent work and will look in its local IO directory) but will likely be required in the future.

This doesn't change the actual behavior of node-local storage -- it only allows (and then ignores) a nodeID to appear in the Host componant of the URI.

Previously the host componant had to be empty. It still can be after this change or it can be a number.
This paves the way to updating docs/usage/etc to show it used with a node-ID before changing it in a future version to _require_ the nodeID.
Exact semantics of that change are TBD, but we wanted to get the change in that _allows_ the node-ID to be passed so that we could begin to show it used and start the multi-release process required for a breaking change.

Release note (enterprise chage): nodelocal:// storage paths for BACKUP, RESTORE and IMPORT may include a node-ID in the Host part of the URI. It is not currently used (any node can get sent work and will look in its local IO directory) but will likely be required in the future.
@dt dt requested review from maddyblue, rolandcrosby, bdarnell and a team February 11, 2019 21:24
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link

@rolandcrosby rolandcrosby left a comment

Choose a reason for hiding this comment

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

Just to be clear, “host” in this context means the string between nodelocal:// and the next /, and we’re going to start allowing integer node IDs in that position? If so, sounds good to me.

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

@dt
Copy link
Member Author

dt commented Feb 12, 2019

Yes, currently you're allowed to do nodelocal:/some/path or nodelocal:///some/path but you are not allowed to do nodelocal://some/path. After this change, the first two are still fine and the last is still an error -- what changes is now it is also fine to do nodelocal://2/some/path whereas previously it was not.

@dt
Copy link
Member Author

dt commented Feb 12, 2019

bors r+

craig bot pushed a commit that referenced this pull request Feb 12, 2019
34797: storageccl: accept and ignore a node-ID in the host of nodelocal:// uri r=dt a=dt

This doesn't change the actual behavior of node-local storage -- it only allows (and then ignores) a nodeID to appear in the Host componant of the URI.

Previously the host componant had to be empty. It still can be after this change or it can be a number.
This paves the way to updating docs/usage/etc to show it used with a node-ID before changing it in a future version to _require_ the nodeID.
Exact semantics of that change are TBD, but we wanted to get the change in that _allows_ the node-ID to be passed so that we could begin to show it used and start the multi-release process required for a breaking change.

Release note (enterprise chage): nodelocal:// storage paths for BACKUP, RESTORE and IMPORT may include a node-ID in the Host part of the URI. It is not currently used (any node can get sent work and will look in its local IO directory) but will likely be required in the future.

Co-authored-by: David Taylor <tinystatemachine@gmail.com>
@craig
Copy link
Contributor

craig bot commented Feb 12, 2019

Build succeeded

@craig craig bot merged commit 5012c23 into cockroachdb:master Feb 12, 2019
@dt dt deleted the node-local-host branch February 12, 2019 15:43
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