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

Opendal writes partial bytes without raising errors #2382

Closed
WenyXu opened this issue Sep 13, 2023 · 0 comments · Fixed by #2383
Closed

Opendal writes partial bytes without raising errors #2382

WenyXu opened this issue Sep 13, 2023 · 0 comments · Fixed by #2383
Labels
C-bug Category Bugs

Comments

@WenyXu
Copy link
Member

WenyXu commented Sep 13, 2023

What type of bug is this?

Data corruption

What subsystems are affected?

Standalone mode

What happened?

Opendal writes partial bytes without raising errors.

See also:

What operating system did you use?

Ubuntu 23.04

Relevant log output and stack trace

No response

How can we reproduce the bug?

  1. Creates small file (~2M)
fallocate -l 512K disk.img 
mkfs disk.img 
mkdir ./td
sudo mount -o loop td.img ./td
chmod a+wr ./td
  1. Uses above directory as data_home
  2. Starts a standalone instance and inserts data until standalone raises a no space error from the wal.
  3. Clean up the data_home, and starts a standalone instance, and inserts data before it raises a no space error from wal, flushes the target table, the instance will panic.
  4. Copy the above data to a no-space-limited directory
  5. Reboot the standalone, you will find the target table is missing.
@WenyXu WenyXu added the C-bug Category Bugs label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category Bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant