-
Notifications
You must be signed in to change notification settings - Fork 125
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
SNOW-723750: Panic with readonly file system #700
Comments
hi, thank you for submitting this issue with us and appreciate the detailed error description! we'll take a look. |
quick update: team found that the file encryption/decryption also create temporary directory and they are looking to stream the encrypted data instead of writing it into a file before upload. |
Thank you for the update @sfc-gh-dszmolka! Hope it will be possible to use this driver without any temp files being generated during processing |
PR #828 aims to address this issue |
Thank you for taking this on! I had a quick look at the PR and I have some questions:
|
these are very valid questions. the second one, I'll work with the Documentation team to get it into the official product documentation. the first one, I think you can directly comment on the PR at this point, it's still very early. |
so the 'bug' part of the issue is fixed with the linked PR which will be part of the next release (coming towards mid- or end of July) the 'enhancement' part is tracked separately internally (ability to specify temp directory and generally making the driver more resilient in read-only environments), and i think it would be worth creating a separate issue here too. |
@sfc-gh-dszmolka OK, thank you! I opened #832 to track the enhancements. |
version 1.6.23 of the driver has been released with the fix |
This new release contains a bunch of fixes: - Fix panic with readonly file system: snowflakedb/gosnowflake#700 - Bump up Arrow dependency to 12.0.1 to fix 32bit builds: snowflakedb/gosnowflake#822 Signed-off-by: Mihai Todor <[email protected]>
This new release contains a bunch of fixes: - Fix panic with readonly file system: snowflakedb/gosnowflake#700 - Bump up Arrow dependency to 12.0.1 to fix 32bit builds: snowflakedb/gosnowflake#822 Signed-off-by: Mihai Todor <[email protected]>
This new release contains a bunch of fixes: - Fix panic with readonly file system: snowflakedb/gosnowflake#700 - Bump up Arrow dependency to 12.0.1 to fix 32bit builds: snowflakedb/gosnowflake#822 Signed-off-by: Mihai Todor <[email protected]>
This new release contains a bunch of fixes: - Fix panic with readonly file system: snowflakedb/gosnowflake#700 - Bump up Arrow dependency to 12.0.1 to fix 32bit builds: snowflakedb/gosnowflake#822 Signed-off-by: Mihai Todor <[email protected]> Co-authored-by: Ashley Jeffs <[email protected]>
Issue description
The
gosnowflake
driver panics for PUT operations when run in a container with a readonly file system. The panic happens here and the issue comes from here. I see a similar problem for download operations here.Why does the driver require a disk buffer? I don't see any mention of this in the docs and there isn't any Snowflake-specific configuration variable for the disk path.
I can work around it by setting the
TMPDIR
environment variable as described in the Go docs here, but not being able to run this with a fully read-only file system can cause security challenges.Example code
The sample code from the docs here should suffice.
Error log
Configuration
Driver version (or git SHA):
v1.6.16
Go version: run
go version
in your consolego version go1.19.4 darwin/amd64
Server version: E.g. 1.90.1
You may get the server version by running a query:
7.0.0
Client OS: E.g. Debian 8.1 (Jessie), Windows 10
golang:1.18-alpine
Docker container.The text was updated successfully, but these errors were encountered: