Project

General

Profile

Actions

Bug #50965

closed

In poweroff conditions BlueFS can create corrupted files

Added by Adam Kupczyk almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
pacific, octopus, nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

It is possible to create condition in which a BlueFS contains file that is corrupted.
It can happen when BlueFS replay log is on device A and we just wrote to device B.

Scenario:
1) write to file h1 on SLOW device
2) flush h1 (and trigger h1 mark to be added to bluefs replay log, but no fdatasync yet)
3) write to file h2 on DB
4) fsync h2 (forces replay log to be written, after fdatasync to DB)
5) poweroff

In result we have file h1 that is properly declared in replay log, but with uninitialized content.


Related issues 3 (0 open3 closed)

Copied to bluestore - Backport #51128: octopus: In poweroff conditions BlueFS can create corrupted filesResolvedActions
Copied to bluestore - Backport #51129: nautilus: In poweroff conditions BlueFS can create corrupted filesResolvedAdam KupczykActions
Copied to bluestore - Backport #51130: pacific: In poweroff conditions BlueFS can create corrupted filesResolvedActions
Actions #1

Updated by Adam Kupczyk almost 3 years ago

  • Pull request ID set to 41501
Actions #2

Updated by Kefu Chai almost 3 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Dan van der Ster almost 3 years ago

Why doesn't this need to be backported? The commit applies cleanly to pacific, at least.

Actions #4

Updated by Igor Fedotov almost 3 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to pacific, octopus, nautilus
Actions #5

Updated by Backport Bot almost 3 years ago

  • Copied to Backport #51128: octopus: In poweroff conditions BlueFS can create corrupted files added
Actions #6

Updated by Backport Bot almost 3 years ago

  • Copied to Backport #51129: nautilus: In poweroff conditions BlueFS can create corrupted files added
Actions #7

Updated by Backport Bot almost 3 years ago

  • Copied to Backport #51130: pacific: In poweroff conditions BlueFS can create corrupted files added
Actions #8

Updated by Loïc Dachary over 2 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF