Project

General

Profile

Actions

Bug #48323

closed

"size 0 != clone_size 10" in clog - clone size mismatch when deduped object is evicted

Added by Myoungwon Oh over 3 years ago. Updated over 3 years ago.

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

0%

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

Description

When evicting deduped object which is cloned,
we try to shrink its size to zero if all chunks are in chunk_map.
However, we did not set clone_size to zero, resulting in
clone size mismatch.

Specifically, build_push_op appends zero data with reference to
copy_set set by clone_size, but actual size in oi.size is zero.

/a/myoungwon-2020-11-07_10\:57\:24-rados-wip-revamp-tier-flush-distro-basic-smithi/5599728/remote/smithi196/log/ceph-osd.4.log

20-11-07T13:27:40.320+0000 7f871c92f700 2 osd.4 pg_epoch: 508 pg[58.5( v 468'89 (468'86,468'89] local-lis/les=493/494 n=9 ec=67/67 lis/c=493/493 les/c/f=494/494/0 sis=493) [4,1,0] r=0 lpr=493 crt=468'89 lcod 468'88 mlcod 0'0 active+clean+scrubbing ps=[1d~1]] 58.5 shard 1 soid 58:a5e6ff78:test-rados-api-smithi138-38851-74::foo:23 : candidate size 10 info size 0 mismatch
58.5 shard 1 soid 58:a5e6ff78:test-rados-api-smithi138-38851-74::foo:23 : size 10 != size 0 from auth oi 58:a5e6ff78:test-rados-api-smithi138-38851-74::foo:23(468'89 client.5644.0:6865 dirty|data_digest|manifest s 0 uv 75 dd c1e5c18f alloc_hint [0 0 0] manifest(chunked {0=(len: 10 oid: 196:69014a31:test-rados-api-smithi138-38851-74::chunk2:0 offset: 0 flags: has_reference)})), size 10 != size 0 from shard 4
58.5 shard 1 soid 58:a5e6ff78:test-rados-api-smithi138-38851-74::foo:24 : candidate size 10 info size 0 mismatch
58.5 shard 1 soid 58:a5e6ff78:test-rados-api-smithi138-38851-74::foo:24 : size 10 != size 0 from auth oi 58:a5e6ff78:test-rados-api-smithi138-38851-74::foo:24(468'88 client.5644.0:6863 dirty|data_digest|manifest s 0 uv 77 dd c1e5c18f alloc_hint [0 0 0] manifest(chunked {0=(len: 2 oid: 196:b9c59ffe:test-rados-api-smithi138-38851-74::chunk4:0 offset: 0 flags: has_reference),2=(len: 2 oid: 196:7c25851d:test-rados-api-smithi138-38851-74::chunk3:0 offset: 0 flags: has_reference),4=(len: 2 oid: 196:c32c7e0c:test-rados-api-smithi138-38851-74::chunk1:0 offset: 0 flags: has_reference),6=(len: 2 oid: 196:69014a31:test-rados-api-smithi138-38851-74::chunk2:0 offset: 0 flags: has_reference),8=(len: 2 oid: 196:b9c59ffe:test-rados-api-smithi138-38851-74::chunk4:0 offset: 0 flags: has_reference)})), size 10 != size 0 from shard 4

2020-11-07T13:27:40.320+0000 7f871c92f700 -1 log_channel(cluster) log [ERR] : 58.5 shard 1 soid 58:a5e6ff78:test-rados-api-smithi138-38851-74::foo:23 : candidate size 10 info size 0 mismatch


Related issues 1 (0 open1 closed)

Has duplicate RADOS - Bug #47945: scrubbing failureDuplicate

Actions
Actions #2

Updated by Myoungwon Oh over 3 years ago

  • Project changed from Ceph to RADOS
Actions #3

Updated by Neha Ojha over 3 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 38237
Actions #4

Updated by Kefu Chai over 3 years ago

  • Subject changed from clone size mismatch when deduped object is evicted to "size 0 != clone_size 10" in clog - clone size mismatch when deduped object is evicted
Actions #5

Updated by Kefu Chai over 3 years ago

  • Has duplicate Bug #47945: scrubbing failure added
Actions #6

Updated by Kefu Chai over 3 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF