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

reader/csv: use exception-safe locks #2258

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

Riolku
Copy link
Contributor

@Riolku Riolku commented Oct 24, 2023

Closes #2253. Exceptions in the CSV parsing could cause a task to never wake up from sleeping on a lock.

@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1b73895) 89.61% compared to head (6dcb420) 89.62%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2258      +/-   ##
==========================================
+ Coverage   89.61%   89.62%   +0.01%     
==========================================
  Files        1016     1016              
  Lines       35808    35806       -2     
==========================================
+ Hits        32088    32091       +3     
+ Misses       3720     3715       -5     
Files Coverage Δ
src/include/processor/operator/persistent/reader.h 100.00% <100.00%> (ø)
src/processor/operator/persistent/reader.cpp 100.00% <ø> (ø)
src/processor/operator/persistent/reader_state.cpp 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/include/processor/operator/persistent/reader.h Outdated Show resolved Hide resolved
test/test_files/csv/errors.test Show resolved Hide resolved
@Riolku Riolku force-pushed the reader-exception-safe-locks branch from 4670f71 to 77a3194 Compare October 24, 2023 20:55
Closes #2253. Exceptions in the CSV parsing could cause a task to never wake up from
sleeping on a lock.
@Riolku Riolku force-pushed the reader-exception-safe-locks branch from 77a3194 to 6dcb420 Compare October 24, 2023 23:07
@Riolku Riolku merged commit bb5c8bd into master Oct 25, 2023
12 checks passed
@Riolku Riolku deleted the reader-exception-safe-locks branch October 25, 2023 00:00
@acquamarin acquamarin mentioned this pull request Dec 8, 2023
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.

copying from CSV file with (PARALLEL=false) may get stuck if error is encountered
2 participants