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 PagesSpatialIndexFactory reference counting #652

Merged
merged 3 commits into from
Apr 23, 2019
Merged

Conversation

findepi
Copy link
Member

@findepi findepi commented Apr 19, 2019

Before the change, the reference accounting didn't consider the fact an
operator factory can be duplicated.

For example, after creating a new factory
SpatialJoinOperatorFactory#duplicate and closing one of the factories
with noMoreOperators() (either the original one or the new one), the
PagesSpatialIndexFactory would be disposed even though there can be
SpatialJoinOperator yet to be created.

Inspired by prestodb/presto#12673. A different implementation though.
Fixes prestodb/presto#12672

@cla-bot cla-bot bot added the cla-signed label Apr 19, 2019
@martint
Copy link
Member

martint commented Apr 22, 2019

Can you add some details to the "Fix PagesSpatialIndexFactory reference counting" commit explaining how it was broken before?

@findepi findepi force-pushed the spat branch 2 times, most recently from a86031b to cc33ee3 Compare April 22, 2019 21:39
@findepi
Copy link
Member Author

findepi commented Apr 22, 2019

@martint added

@martint martint self-assigned this Apr 22, 2019
Before the change, the reference accounting didn't consider the fact an
operator factory can be duplicated.

For example, after creating a new factory
`SpatialJoinOperatorFactory#duplicate` and closing one of the factories
with `noMoreOperators()` (either the original one or the new one), the
`PagesSpatialIndexFactory` would be disposed even though there can be
`SpatialJoinOperator` yet to be created.
@findepi findepi merged commit c5fa9c0 into trinodb:master Apr 23, 2019
@findepi findepi deleted the spat branch April 23, 2019 12:57
@findepi findepi mentioned this pull request Apr 23, 2019
4 tasks
@findepi findepi added this to the 309 milestone Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Spatial join fails when running on top of colocated right outer join
3 participants