Bug #48945
closedrgw rgw-orphan-list sort return different result in different OS platform
0%
Updated by J. Eric Ivancich over 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.
Updated by dovefi Z over 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
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.
Updated by J. Eric Ivancich about 3 years ago
- Status changed from New to Need More Info
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!
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.
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