Project

General

Profile

Actions

Bug #9143

closed

Incorrect key sequence in encoding object name to key for GenericObjectMap

Added by Haomai Wang over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
High
Assignee:
Category:
OSD
Target version:
-
% Done:

0%

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

Description

For example, two oid has same hash and their name is:
A: "rb.data.123"
B: "rb-123"

In ghobject_t compare level, A < B. But GenericObjectMap encode "." to
"%e", so the key in DB is:
A: GHOBJTOSEQ:blah!51615000!!none!!rb%edata%e123!head
B: GHOBJTOSEQ:blah!51615000!!none!!rb-123!head

A > B

And it seemed that the escape function is useless and should be disabled.

Actions #1

Updated by Greg Farnum over 9 years ago

How did you run across this? Is it feasible to fix it by typing the escaped strings and writing a custom comparator?

Actions #2

Updated by Haomai Wang over 9 years ago

  • Status changed from 12 to Rejected
Actions

Also available in: Atom PDF