๐๐ฎ๐๐ฎ, ๐๐ป๐ฎ๐น๐๐๐ถ๐ฐ๐ & ๐๐. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
fix: Avoid duplicate temp file name for install-snapshot requests
This commit resolves an issue where duplicate temporary file names were
generated when two install-snapshot requests were received in close
temporal proximity. This could potentially lead to conflicts and
erroneous behavior during snapshot installation.
Changes:
Added logic to generate unique temporary file names for each
install-snapshot request to prevent naming conflicts.
Additionally, this commit enhances error handling by including context
information in the io::Error returned from SnapshotStoreV002. This
improvement aids in better understanding the source and nature of
errors when they occur.
Tests
[x] Unit Test
[ ] Logic Test
[ ] Benchmark Test
[ ] No Test - Explain why
Type of change
[x] Bug Fix (non-breaking change which fixes an issue)
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
fix: Avoid duplicate temp file name for install-snapshot requests
This commit resolves an issue where duplicate temporary file names were generated when two install-snapshot requests were received in close temporal proximity. This could potentially lead to conflicts and erroneous behavior during snapshot installation.
Changes:
Added logic to generate unique temporary file names for each install-snapshot request to prevent naming conflicts.
Additionally, this commit enhances error handling by including context information in the
io::Error
returned fromSnapshotStoreV002
. This improvement aids in better understanding the source and nature of errors when they occur.Tests
Type of change
Related Issues
This change isโ