<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 29, 2013 at 3:56 PM, Mircea Markus <span dir="ltr">&lt;<a href="mailto:mmarkus@redhat.com" target="_blank">mmarkus@redhat.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Oct 29, 2013, at 3:08 PM, William Burns &lt;<a href="mailto:mudokonman@gmail.com">mudokonman@gmail.com</a>&gt; wrote:<br>
<br>
&gt; I agree, and I could have sworn there was a JIRA that detailed this,<br>
&gt; but I can&#39;t seem to locate it now.  I was hoping to get to it next<br>
&gt; release.<br>
<br>
</div>+1.<br>
<div class="im"><br>
&gt;<br>
&gt; This also is a very big improvement for non tx caches as well as the<br>
&gt; updating cache only has to send a single message, possibly reducing<br>
&gt; the overall amount of required JGroups messages by a third.<br>
<br>
</div>We&#39;re already doing this for non-tx caches, at least since the lock delegation was implemented.<br>
<div class="im"><br>
&gt;  Although<br>
&gt; the amount of bytes reduced is only a fixed amount less.<br>
&gt;<br>
&gt; Also it would make the consistency more correct since right now there<br>
&gt; is technically a window where you could have 2 concurrent updates but<br>
&gt; only 1 sees the correct returned value.<br>
<br>
</div>+1<br></blockquote><div><br></div><div>I&#39;m not sure about that... in non-tx caches we already return the previous value from the write command, and in pessimistic caches we acquire the remote lock *before* we retrieve the value.<br>

</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
&gt;<br>
&gt; On Tue, Oct 29, 2013 at 9:42 AM, Radim Vansa &lt;<a href="mailto:rvansa@redhat.com">rvansa@redhat.com</a>&gt; wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; Pedro suggested moving the following idea to separate thread (from the<br>
&gt;&gt; &#39;Improve WriteCommand processing code...&#39;). Re:<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve been wondering for a while why the fetch part is a separate message<br>
&gt;&gt; in the write flow. Is the return value of much use when it does not<br>
&gt;&gt; return really the replaced value but only some of the previous values?<br>
&gt;&gt; And this way you double* the latency. I think that returning the value<br>
&gt;&gt; from primary owner as the response for write would make more sense.<br>
&gt;&gt; Naturally, for optimistic txs you can only do the get, and for<br>
&gt;&gt; pessimistic ones you&#39;d have to return the value together with the<br>
&gt;&gt; locking, but still, the operations would make more sense.<br>
&gt;&gt;<br>
&gt;&gt; *: OK, it&#39;s not doubling as with the write the primary owner replicates<br>
&gt;&gt; the write to backups, but it&#39;s doubling  the amount of communication<br>
&gt;&gt; originating from the requestor node.<br>
&gt;&gt;<br>
&gt;&gt; WDYT?<br>
<br>
</div>+1<br>
Care to create a JIRA for this please?<br>
<div> </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
&gt;&gt;<br>
&gt;&gt; Radim<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; infinispan-dev mailing list<br>
&gt;&gt; <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
&gt; _______________________________________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
</div>Cheers,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Mircea Markus<br>
Infinispan lead (<a href="http://www.infinispan.org" target="_blank">www.infinispan.org</a>)<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</div></div></blockquote></div><br></div></div>