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

importccl: fix panic when importing tables with storage options #66899

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

pbardea
Copy link
Contributor

@pbardea pbardea commented Jun 25, 2021

Previously, when IMPORT encountered a table schema that specified
certain geospacial storage options, it would cause the node to panic.
Setting some options on geospacial tables/indexes would trigger a notice
to be sent. However, IMPORT's synthesized evalCtx (used to create the
schema) did not set a ClientNoticeSender, causing any notices sent
during IMPORT schema creation to panic.

This change updates the synthesized evalCtx to use a dummy client, which
is appropriate in the context of an import job since there may be no
client to send the notice back to.

Fixes #66905.

Release note (bug fix): Fix a case where IMPORT would panic when parsing
geospacial schemas with spacial index tuning parameters. In particular,
this bug could be triggered by specifying the fillfactor option, or
setting the autovacuum_enabled option to false.

@pbardea pbardea requested review from a team and dt and removed request for a team June 25, 2021 19:26
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, when IMPORT encountered a table schema that specified
certain geospacial storage options, it would cause the node to panic.
Setting some options on geospacial tables/indexes would trigger a notice
to be sent. However, IMPORT's synthesized evalCtx (used to create the
schema) did not set a ClientNoticeSender, causing any notices sent
during schema creation to panic.

This change updates the synthesized evalCtx to use a dummy client, which
is appropriate in the context of an import job since there may be no
client to send the notice back to.

Release note (bug fix): Fix a case where IMPORT would panic when parsing
geospacial schemas with spacial index tuning parameters. In particular,
this bug could be triggered by specifying the `fillfactor` option, or
setting the `autovacuum_enabled` option to false.
@pbardea
Copy link
Contributor Author

pbardea commented Jul 6, 2021

TFTR!
bors r+

@craig
Copy link
Contributor

craig bot commented Jul 6, 2021

Build succeeded:

@craig craig bot merged commit 4807e81 into cockroachdb:master Jul 6, 2021
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.

import: IMPORT panics when importing spacial data with some storage options
3 participants