Bug #48945
rgw rgw-orphan-list sort return different result in different OS platform
0%
History
#1 Updated by J. Eric Ivancich about 1 month ago
- Assignee set to J. Eric Ivancich
#2 Updated by J. Eric Ivancich about 1 month 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.
#3 Updated by dovefi Z 30 days 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
#4 Updated by J. Eric Ivancich 22 days 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.
#5 Updated by J. Eric Ivancich 22 days ago
- Status changed from New to Need More Info
#6 Updated by J. Eric Ivancich 22 days 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!