]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ECBackend: suppress 'Error -2 reading object' if EC fast reads 24225/head
authorSage Weil <sage@redhat.com>
Sat, 22 Sep 2018 15:42:20 +0000 (10:42 -0500)
committerSage Weil <sage@redhat.com>
Sat, 22 Sep 2018 15:42:20 +0000 (10:42 -0500)
commit9ef5a956cb2aab43e44e022f6d086403053675b1
treea7f39cf4cd97c0f30705c428c0e4913ad15f289f
parent57c34b1905c89c5f0d7c3ec2a3e66e4a27abc918
osd/ECBackend: suppress 'Error -2 reading object' if EC fast reads

When fast reads are enabled, it's possible for the ordering of a shard
read to not be enforced with respect to writes that come after because
the read completes on the primary before all shards reply.  This can lead
to an ENOENT on the non-primary, and an ERR message in the cluster log,
even though everything is fine.  (The reply will go back to the primary
with the error but it will be ignored since the read has completed.)

Suppress the error message so we don't see these ERR messages in the
cluster log during the normal course of events.

Fixes: http://tracker.ceph.com/issues/26972
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ECBackend.cc