swift/test/unit/proxy/controllers
Samuel Merritt 666bf06c26 EC: don't 503 on marginally-successful PUT
On EC PUT in an M+K scheme, we require M+1 fragment archives to
durably land on disk. If we get that, then we go ahead and ask the
object servers to "commit" the object by writing out .durable
files. We only require 2 of those.

When we got exactly M+1 fragment archives on disk, and then one
connection timed out while writing .durable files, we should still be
okay (provided M is at least 3). However, we'd take our M > 2
remaining successful responses and pass that off to best_response()
with a quorum size of M+1, thus getting a 503 even though everything
worked well enough.

Now we pass 2 to best_response() to avoid that false negative.

There was also a spot where we were getting the quorum size wrong. If
we wrote out 3 fragment archives for a 2+1 policy, we were only
requiring 2 successful backend PUTs. That's wrong; the right number is
3, which is what the policy's .quorum() method says. There was a spot
where the right number wasn't getting plumbed through, but it is now.

Change-Id: Ic658a199e952558db329268f4d7b4009f47c6d03
Co-Authored-By: Clay Gerrard <clay.gerrard@gmail.com>
Closes-Bug: 1452468
2015-05-26 11:38:57 -07:00
..
__init__.py re-use headers_to_container_info on container GET 2012-11-01 18:46:47 -07:00
test_account.py Add Storage Policy support to Object Server 2014-06-18 17:31:38 -07:00
test_base.py Fix best response to return correct status 2015-04-16 12:55:40 +00:00
test_container.py Consistently apply node error limiting rules in proxy 2014-11-17 20:49:43 -08:00
test_info.py Added discoverable capabilities. 2013-11-22 15:54:13 -06:00
test_obj.py EC: don't 503 on marginally-successful PUT 2015-05-26 11:38:57 -07:00