Skip to content

include: interval_set: Re-introduce the original behaviour strict interval set#61693

Merged
aclamk merged 1 commit intoceph:mainfrom
aainscow:interval_set_strict
Feb 24, 2025
Merged

include: interval_set: Re-introduce the original behaviour strict interval set#61693
aclamk merged 1 commit intoceph:mainfrom
aainscow:interval_set_strict

Conversation

@aainscow
Copy link
Contributor

@aainscow aainscow commented Feb 7, 2025

PR 60250 introduced a new interval set insert function that was less strict than the default insert. A less strict erase overload was also introduced.

The new overloaded erase is considered too relaxed for existing purposes.

The new solution is to introduce a templated "strict" mode - which is on my default.

I have also enhanced the test harness to assert that using the strict insert actually corrupts things.

I have also used this PR to provide a fix for tracker 69862

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@github-actions github-actions bot added the tests label Feb 7, 2025
@aainscow aainscow self-assigned this Feb 7, 2025
@aainscow aainscow requested a review from aclamk February 7, 2025 09:15
…default.

The strict behaviour can be turned off in the template.

Signed-off-by: Alex Ainscow <[email protected]>
@aainscow aainscow force-pushed the interval_set_strict branch from 310a2fb to 0c57b71 Compare February 7, 2025 09:53
Copy link
Contributor

@aclamk aclamk left a comment

Choose a reason for hiding this comment

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

Great clarity.

@aclamk
Copy link
Contributor

aclamk commented Feb 7, 2025

Added bluestore label - BlueStore uses interval_set extensively.

@aainscow aainscow changed the title interval_set: Re-introduce the original behaviour strict interval set include: interval_set: Re-introduce the original behaviour strict interval set Feb 7, 2025
@aainscow
Copy link
Contributor Author

aainscow commented Feb 7, 2025

jenkins test api

@aclamk aclamk added the aclamk-testing-phoebe bluestore testing label Feb 11, 2025
@aclamk
Copy link
Contributor

aclamk commented Feb 24, 2025

@aclamk aclamk merged commit 290894c into ceph:main Feb 24, 2025
13 checks passed
zmc pushed a commit to zmc/ceph that referenced this pull request Feb 26, 2025
include: interval_set: Re-introduce the original behaviour strict interval set
@aainscow aainscow added the no-backport-required Label that can be optionally added to show that we do not need to backport. label Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aclamk-testing-phoebe bluestore testing bluestore no-backport-required Label that can be optionally added to show that we do not need to backport. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants