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

[core] fix the collect of overlapped snapshots #3755

Closed
wants to merge 5 commits into from

Conversation

askwang
Copy link
Contributor

@askwang askwang commented Jul 16, 2024

Purpose

When call findOverlappedSnapshots(List<Snapshot> taggedSnapshots, long beginInclusive, long endExclusive).
If beginInclusive is 10, endExclusive is 15, the range is [10, 15), and the taggedSnapshots is [8, 9, 11, 12, 15].
In previous way, the overlapped snapshots is [9, 11, 12]. Actually is only [11, 12].

Tests

API and Format

Documentation

@JingsongLi
Copy link
Contributor

Hi @askwang , can you add test cases?

@askwang askwang changed the title [core] fix the collect of overlapped snapshtos [core] fix the collect of overlapped snapshots Jul 16, 2024
@askwang
Copy link
Contributor Author

askwang commented Jul 16, 2024

Hi @askwang , can you add test cases?

test added.

@askwang askwang force-pushed the fix-overlapped-snapshot branch from e82b40e to 3848268 Compare August 23, 2024 01:59
@askwang
Copy link
Contributor Author

askwang commented Aug 23, 2024

@JingsongLi can you help take a look, ths

@askwang askwang closed this Sep 2, 2024
@askwang askwang reopened this Sep 2, 2024
@JingsongLi
Copy link
Contributor

Hi @askwang

Please try not to modify the code solely based on its naming. Instead, identify issues through practical application, as the naming of the code may simply be a previous naming error.

This should include 'previous', which is the safe boundary for checking.

@JingsongLi JingsongLi closed this Oct 15, 2024
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.

2 participants