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

kvserver/rangefeed: move CatchUpScan() params to constructor #82452

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

erikgrinaker
Copy link
Contributor

@erikgrinaker erikgrinaker commented Jun 5, 2022

CatchUpIterator took keyspan and start time parameters both in the
constructor and when calling CatchUpScan(). This wasn't safe, because
the iterator could have been constructed with bounds that would not
satisfy the parameters passed to the scan -- for example, if passing a
wider key span or lower start time -- in which case the scan would omit
values.

This patch removes the keyspan and start time parameters to
CatchUpScan(), such that the caller must provide them during
construction

Release note: None

@erikgrinaker erikgrinaker requested review from stevendanna, miretskiy and a team June 5, 2022 12:33
@erikgrinaker erikgrinaker requested a review from a team as a code owner June 5, 2022 12:33
@erikgrinaker erikgrinaker self-assigned this Jun 5, 2022
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@erikgrinaker erikgrinaker force-pushed the rangefeed-catchup-params branch from d1b6388 to 040068b Compare June 5, 2022 14:17
Copy link
Collaborator

@stevendanna stevendanna left a comment

Choose a reason for hiding this comment

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

👍 on the 3rd commit here.

@erikgrinaker erikgrinaker force-pushed the rangefeed-catchup-params branch from 040068b to 03c63d5 Compare June 6, 2022 13:56
`CatchUpIterator` took keyspan and start time parameters both in the
constructor and when calling `CatchUpScan()`. This wasn't safe, because
the iterator could have been constructed with bounds that would not
satisfy the parameters passed to the scan -- for example, if passing a
wider key span or lower start time -- in which case the scan would omit
values.

This patch removes the keyspan and start time parameters to
`CatchUpScan()`, such that the caller must provide them during
construction

Release note: None
@erikgrinaker erikgrinaker force-pushed the rangefeed-catchup-params branch from 03c63d5 to 590da0d Compare June 7, 2022 15:58
@erikgrinaker
Copy link
Contributor Author

TFTRs!

bors r=stevendanna,miretskiy

@craig
Copy link
Contributor

craig bot commented Jun 7, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Jun 7, 2022

Build succeeded:

@craig craig bot merged commit 1fd6c45 into cockroachdb:master Jun 7, 2022
@erikgrinaker erikgrinaker deleted the rangefeed-catchup-params branch June 8, 2022 11:44
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