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

Fix infinite loop in MultiFileCloudPartitionReaderBase #2873

Merged
merged 3 commits into from
Jul 8, 2021

Conversation

jlowe
Copy link
Member

@jlowe jlowe commented Jul 6, 2021

While refactoring some code, I stumbled across an infinite loop in the next() method for MultiFileCloudPartitionReaderBase. It recurses to itself without changing any of the state that led to the recursion point.

Signed-off-by: Jason Lowe <jlowe@nvidia.com>
@jlowe jlowe added the bug Something isn't working label Jul 6, 2021
@jlowe jlowe requested a review from wbo4958 July 6, 2021 23:10
@jlowe jlowe self-assigned this Jul 6, 2021
@jlowe
Copy link
Member Author

jlowe commented Jul 6, 2021

build

@wbo4958
Copy link
Collaborator

wbo4958 commented Jul 7, 2021

Thx Jason, Great catch. Could we have a unit test for this? I believe we don't have such unit test for this.

tgravescs
tgravescs previously approved these changes Jul 7, 2021
@jlowe
Copy link
Member Author

jlowe commented Jul 7, 2021

Added a unit test that fails with a StackOverflowError without the fix and passes with it.

@jlowe
Copy link
Member Author

jlowe commented Jul 7, 2021

build

@jlowe
Copy link
Member Author

jlowe commented Jul 7, 2021

build

@jlowe jlowe requested a review from wbo4958 July 7, 2021 22:23
Copy link
Collaborator

@wbo4958 wbo4958 left a comment

Choose a reason for hiding this comment

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

Thx Jason

Copy link
Collaborator

@gerashegalov gerashegalov left a comment

Choose a reason for hiding this comment

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

LGTM

@jlowe jlowe merged commit 881dee6 into NVIDIA:branch-21.08 Jul 8, 2021
@jlowe jlowe deleted the fix-infinite-loop branch September 10, 2021 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants