Project

General

Profile

Bug #9536

Updated by Loïc Dachary over 9 years ago

* giant backport http://tracker.ceph.com/issues/10152 

 commit:28c2b6e4f2bc6d77b9150fcf9a917d85c69c9ed1 

 "EC_ISA_VECTOR_OP_WORDSIZE":https://github.com/ceph/ceph/blob/master/src/erasure-code/isa/xor_op.h#L42 depends on the compiler version and other compile time facts. It is "used to compute the chunck size":https://github.com/ceph/ceph/blob/master/src/erasure-code/isa/ErasureCodeIsa.cc#L86 via the "get_alignment()":https://github.com/ceph/ceph/blob/master/src/erasure-code/isa/ErasureCodeIsa.cc#L327 function. It is therefore possible that two isa binaries will come up with different chunk sizes because they were compiled in different environment. This in turn will lead to OSDs disagreeing on the chunk size. 

 The simpler fix is to use a constant, unless this is problematic for some reason.

Back