Project

General

Profile

Bug #34541

deep scrub cannot find the bitrot if the object is cached

Added by Kefu Chai over 5 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Correctness/Safety
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
luminous, mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

quote from https://github.com/ceph/ceph/pull/23629

Say a object who has data caches, but in a while later, caches' underlying
physical device has silent disk erros accidentally, then caches and physical
data are not same. In such case, deep-scrub operation still tries to read
caches firstly and won't do crc checksum, then deep-scrub won't find such
data corruptions timely.

Here introduce a new flag 'CEPH_OSD_OP_FLAG_BYPASS_CACHE' which tells
deep-scrub to bypass object caches. Note that we only bypass cache who is in
STATE_CLEAN state. For STATE_WRITING caches, currently they are not written
to physical device, so deep-scrub operation can not read physical device and
can read these dirty caches safely. Once they are in STATE_CLEAN state(or not
added to bluestore cache), next round deep-scurb can check them correctly.


Related issues

Copied to RADOS - Backport #35067: luminous: deep scrub cannot find the bitrot if the object is cached Resolved
Copied to RADOS - Backport #35068: mimic: deep scrub cannot find the bitrot if the object is cached Resolved

History

#1 Updated by Kefu Chai over 5 years ago

  • Status changed from New to Pending Backport

#2 Updated by Nathan Cutler over 5 years ago

  • Copied to Backport #35067: luminous: deep scrub cannot find the bitrot if the object is cached added

#3 Updated by Nathan Cutler over 5 years ago

  • Copied to Backport #35068: mimic: deep scrub cannot find the bitrot if the object is cached added

#4 Updated by Nathan Cutler over 5 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF