<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Thanks for your reply!</div>
<div>I understand the three PUTs by the proxy server and how the replicator works.</div>
<div><br>
</div>
<div>What I don’t understand is the update of the container DB. The update is sent by individual object servers which don’t know whether a PUT (from the client’s perspective) succeeds. </div>
<div>Consider the following scenario:</div>
<ol>
<li>Proxy server sends three requests to three object servers.</li><li>One object server writes the object successfully, sends an update to the container DB and an “OK” reply to the proxy server. But the other two fail, so they send “failed” to the proxy server.</li><li>The proxy server sends back “failed” to the client because it doesn’t meet the quorum. But the container DB still gets the update to insert an entry of this object.</li></ol>
<div>I must have missed something. Thanks for your help!</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Kuo Hugo <<a href="mailto:tonytkdk@gmail.com">tonytkdk@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, November 28, 2013 at 12:31 PM<br>
<span style="font-weight:bold">To: </span>Minglong Shao <<a href="mailto:minglong.shao@netapp.com">minglong.shao@netapp.com</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>" <<a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack] [Swift] Container DB update after object PUT<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Proxy sends requests to *three* replicas's object servers simultaneously. <br>
A successful PUT request depends on at least 1/2 replicas were success. Or Proxy will return PUT failed to user.
<div><br>
</div>
<div>If 1/3 replica is not there, the replicator will handle it later. </div>
<div>It won't have any problem with container DB. </div>
<div><br>
</div>
<div> </div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div dir="ltr">
<div><br>
</div>
<div>+Hugo Kuo+</div>
<div>(+886) 935004793<br>
</div>
<div>SwiftStack Inc.<br>
</div>
</div>
</div>
<br>
<br>
<div class="gmail_quote">2013/11/28 Shao, Minglong <span dir="ltr"><<a href="mailto:Minglong.Shao@netapp.com" target="_blank">Minglong.Shao@netapp.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>
<div>Hi there,</div>
<div><br>
</div>
<div>After an object server writes an object in the local file system, it updates the container DB asynchronously (send a message to insert an entry in the object table). But the object server doesn’t really know whether the object PUT is considered successful
or not because the other two replicas could fail. In this case, the container DB could have an entry for an object which is not successfully PUT. Can someone shed some light on this? Am I missing something?</div>
<div><br>
</div>
<div>Many thanks!</div>
</div>
</div>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>