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

make FasterLogScanIterator read behavior consistent in the face of iterator disposal #418

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

hiteshmadan
Copy link
Contributor

make FasterLogScanIterator read behavior consistent across the following two flows:

  1. a. caller initiates GetNext
    b. Log gets disposed

  2. a. Log gets disposed
    b. a GetNext is initiated

In flow 1 today, we get a return-value of false from GetNext, whereas
In flow 2 today, we get an ObjectDisposedException.

…ing two flows:

1.
    a. caller initiates GetNext
    b. Log gets disposed (to be deleted)

2.
    a. Log gets disposed
    b. at the same time, a GetNext is initiated

In flow 1 today, we get a return-value of false from GetNext, whereas
In flow 2 today, we get an ObjectDisposedException.
@hiteshmadan hiteshmadan requested a review from badrishc March 4, 2021 23:37
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