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

lake: make rangeWrapper filters safe for concurrent use #2969

Merged
merged 1 commit into from
Aug 27, 2021

Conversation

nwt
Copy link
Member

@nwt nwt commented Aug 27, 2021

Because of concurrency in the ZNG scanner, separate filters returned by
a zbuf.Filter's methods must be safe for concurrent use in separate
goroutines. Filters returned by lake.rangeWrapper.AsFilter do not have
this property because they share the single expr.ValueCompareFn in
rangeWrapper.compare. Fix this by creating a new expr.ValueCompareFn
for each filter returned.

Closes #2960.

Because of concurrency in the ZNG scanner, separate filters returned by
a zbuf.Filter's methods must be safe for concurrent use in separate
goroutines.  Filters returned by lake.rangeWrapper.AsFilter do not have
this property because they share the single expr.ValueCompareFn in
rangeWrapper.compare.  Fix this by creating a new expr.ValueCompareFn
for each filter returned.
@nwt nwt requested a review from a team August 27, 2021 18:40
@nwt nwt merged commit a2b7592 into main Aug 27, 2021
@nwt nwt deleted the lake-rangeWrapper-concurrency branch August 27, 2021 19:51
brim-bot pushed a commit to brimdata/brimcap that referenced this pull request Aug 27, 2021
…nt use" by nwt

This is an auto-generated commit with a Zed dependency update. The Zed PR
brimdata/super#2969, authored by @nwt,
has been merged.

lake: make rangeWrapper filters safe for concurrent use

Because of concurrency in the ZNG scanner, separate filters returned by
a zbuf.Filter's methods must be safe for concurrent use in separate
goroutines.  Filters returned by lake.rangeWrapper.AsFilter do not have
this property because they share the single expr.ValueCompareFn in
rangeWrapper.compare.  Fix this by creating a new expr.ValueCompareFn
for each filter returned.

Closes brimdata/super#2960.
brim-bot pushed a commit to brimdata/brimcap that referenced this pull request Aug 27, 2021
…nt use" by nwt

This is an auto-generated commit with a Zed dependency update. The Zed PR
brimdata/super#2969, authored by @nwt,
has been merged.

lake: make rangeWrapper filters safe for concurrent use

Because of concurrency in the ZNG scanner, separate filters returned by
a zbuf.Filter's methods must be safe for concurrent use in separate
goroutines.  Filters returned by lake.rangeWrapper.AsFilter do not have
this property because they share the single expr.ValueCompareFn in
rangeWrapper.compare.  Fix this by creating a new expr.ValueCompareFn
for each filter returned.

Closes brimdata/super#2960.
brim-bot pushed a commit to brimdata/zui that referenced this pull request Aug 27, 2021
…nt use" by nwt

This is an auto-generated commit with a Zed dependency update. The Zed PR
brimdata/super#2969, authored by @nwt,
has been merged.

lake: make rangeWrapper filters safe for concurrent use

Because of concurrency in the ZNG scanner, separate filters returned by
a zbuf.Filter's methods must be safe for concurrent use in separate
goroutines.  Filters returned by lake.rangeWrapper.AsFilter do not have
this property because they share the single expr.ValueCompareFn in
rangeWrapper.compare.  Fix this by creating a new expr.ValueCompareFn
for each filter returned.

Closes brimdata/super#2960.
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.

panic on orig_bytes pool key
2 participants