Project

General

Profile

Actions

Bug #48945

closed

rgw rgw-orphan-list sort return different result in different OS platform

Added by dovefi Z about 3 years ago. Updated about 3 years ago.

Status:
Duplicate
Priority:
Normal
Target version:
% Done:

0%

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

Related issues 1 (0 open1 closed)

Is duplicate of rgw - Feature #49184: rgw: allow rgw-orphan-list to handle intermediate files w/ binary dataResolvedJ. Eric Ivancich

Actions
Actions #1

Updated by J. Eric Ivancich about 3 years ago

  • Assignee set to J. Eric Ivancich
Actions #2

Updated by J. Eric Ivancich about 3 years ago

Can you provide some examples and how it impacts the results?

Given the same platform sorts the outputs of rados and radosgw-admin would be sorted the same way and so it's unclear what the ultimate problem is.

Actions #3

Updated by dovefi Z about 3 years ago

ceph-diff-sorted print

filename is not in sorted order;

the code is

    if (this_line < prev_line) {
      std::cerr << "Error: " << filename << " is not in sorted order; \"" <<
    this_line << "\" follows \"" << prev_line << "\"." << std::endl;
      exit(4);
    }

my env

LANG=zh_CN
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="zh_CN" 
LC_TIME="zh_CN" 
LC_COLLATE="zh_CN" 
LC_MONETARY="zh_CN" 
LC_MESSAGES=en_US
LC_PAPER="zh_CN" 
LC_NAME="zh_CN" 
LC_ADDRESS="zh_CN" 
LC_TELEPHONE="zh_CN" 
LC_MEASUREMENT="zh_CN" 
LC_IDENTIFICATION="zh_CN" 
LC_ALL=

i guess , the result of sort -u with LANG=zh_CN if different with ceph-diff-sorted

Actions #4

Updated by J. Eric Ivancich about 3 years ago

I'm uncertain as to what is going on. rgw-orphan-list contains at line 7:

export LANG=C

So I thought that would have a) overrode the setting in the calling environment and b) affected all commands initiated from the script, including the two invocations of sort at lines 107 and 115 and the invocation of ceph-diff-sorted at line 119.

Can you verify that rgw-orphan-list has not been altered and that line 7 is as shown above?

Would you also be able to provide the full error produced by ceph-diff-sorted, so I can see the two lines that are out of order?

Thank you.

Actions #5

Updated by J. Eric Ivancich about 3 years ago

  • Status changed from New to Need More Info
Actions #6

Updated by J. Eric Ivancich about 3 years ago

Another request, would you be able to change line 7 in rgw-orphan-list to the following:

export LC_ALL=C

And then test whether rgw-orphan-list completes without that error?

Thanks!

Actions #7

Updated by J. Eric Ivancich about 3 years ago

  • Status changed from Need More Info to Duplicate

There has no additional info provided for a few months. I'm inclined to think that the:

    export LC_ALL=C

would address this issue, and that was part of this PR:

    https://github.com/ceph/ceph/pull/39312

I'm marking this as a duplicate.

Actions #8

Updated by J. Eric Ivancich about 3 years ago

  • Is duplicate of Feature #49184: rgw: allow rgw-orphan-list to handle intermediate files w/ binary data added
Actions

Also available in: Atom PDF