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

TaskActionToolbox: Remove allowOlderVersions, lift interval constraint #1663

Merged
merged 1 commit into from
Aug 26, 2015

Conversation

gianm
Copy link
Contributor

@gianm gianm commented Aug 25, 2015

allowOlderVersions has been stuck true for a while due to a bug (introduced in
566a3a6), but I think it's actually OK this way. I think it's reasonable to
expect tasks to choose versions in some way that makes sense, so long as they
don't choose one larger than their taskLock version. This is still verified.

The interval constraint was introduced to force tasks to break up their
segment insert lists into manageable chunks. They are already doing this, and
I think it's reasonable to expect them to do so without enforcement.

Lifting these constraints paves the way for transactional insertion of segments
that have varying versions and may be for varying intervals.

@fjy
Copy link
Contributor

fjy commented Aug 25, 2015

👍

@xvrl
Copy link
Member

xvrl commented Aug 25, 2015

@gianm sounds good, can we put your useful PR comments somewhere in the code?

@gianm
Copy link
Contributor Author

gianm commented Aug 25, 2015

@xvrl what/where were you thinking of adding? I did add a "word of warning" section about splitting up large segment sets. I didn't add anything about allowOlderVersions, since the lighter more useful constraint is still enforced (your version must be <= the lock version rather than == the lock version).

@xvrl
Copy link
Member

xvrl commented Aug 25, 2015

@gianm do we note anywhere that we "expect tasks to choose versions in some way that makes sense, so long as they don't choose one larger than their taskLock version"

…nstraint.

allowOlderVersions has been stuck true for a while due to a bug (introduced in
566a3a6), but I think it's actually OK this way. I think it's reasonable to
expect tasks to choose versions in some way that makes sense, so long as they
don't choose one larger than their taskLock version. This is still verified.

The interval constraint was introduced to force tasks to break up their
segment insert lists into manageable chunks. They are already doing this, and
I think it's reasonable to expect them to do so without enforcement.

Lifting these constraints paves the way for transactional insertion of segments
that have varying versions and may be for varying intervals.
@gianm gianm force-pushed the segment-insert-constraints branch from 1792871 to 3368152 Compare August 25, 2015 21:17
@gianm
Copy link
Contributor Author

gianm commented Aug 25, 2015

@xvrl ah, nope, I just added it to the javadoc.

xvrl added a commit that referenced this pull request Aug 26, 2015
TaskActionToolbox: Remove allowOlderVersions, lift interval constraint
@xvrl xvrl merged commit 5c19ffa into apache:master Aug 26, 2015
@gianm gianm deleted the segment-insert-constraints branch September 23, 2022 19:27
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.

3 participants