<div dir="ltr"><div><div><div>Just a head-up, compat mode is being deprecated and will be replaced by on demand cache conversions (aka cache.getAdvancedCache.withEncodig(...))<br></div></div></div><br><div><div><div><div><div>Gustavo<br></div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 3, 2017 at 3:27 PM, Galder Zamarreño <span dir="ltr">&lt;<a href="mailto:galder@redhat.com" target="_blank">galder@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">I already explained in another email thread, but let me make it explicit here:<br>
<br>
The way compatibility mode works has a big influence on how useful redeploying marshallers is.<br>
<br>
If compatibility is lazy, redeployment of marshaller could be useful since all the conversions happen lazily. So, conversions would only happen when data is requested. So, if data comes from Hot Rod in byte[], only when reading it might be converted into a POJO. If data comes as POJO, say from embedded, you&#39;d keep it as is, and only when read from Hot Rod you&#39;d convert to binary.<br>
<br>
If compatibility is eager, the conversion happens on write, and that can be have negative impact if marshaller is redeployed. If data has been unmarshalled with marshaller A, and then you deploy marshaller B, it might result in converting the unmarshalled POJO into a binary format that the client can&#39;t understand.<br>
<br>
So, IMO, if compat mode is lazy, redeployment could work... but I think redeployments add a layer of complexity that users might not really need it. I&#39;d rather not have redeployments and instead of focus on rolling upgrade or freezing capabilities like Tristan mention to be able to bring a server down and up wo/ issues for the user.<br>
<br>
Cheers,<br>
--<br>
Galder Zamarreño<br>
Infinispan, Red Hat<br>
<div class="m_-4715395970002184510HOEnZb"><div class="m_-4715395970002184510h5"><br>
&gt; On 3 Jul 2017, at 09:52, Tristan Tarrant &lt;<a href="mailto:ttarrant@redhat.com" target="_blank">ttarrant@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I like it a lot.<br>
&gt; To follow up on my comment on the PR, but to get a wider distribution,<br>
&gt; we really need to think about how to deal with redeployments and<br>
&gt; resource restarts.<br>
&gt; I think restarts are unavoidable: a redeployment means dumping and<br>
&gt; replacing a classloader with all of its classes. There are two<br>
&gt; approaches I can think of:<br>
&gt;<br>
&gt; - &quot;freezing&quot; and &quot;thawing&quot; a cache via some form of persistence (which<br>
&gt; could also mean adding a temporary cache store<br>
&gt; - separate the wildfly service lifecycle from the cache lifecycle,<br>
&gt; detaching/reattaching a cache without stopping when the wrapping service<br>
&gt; is restarted.<br>
&gt;<br>
&gt; Tristan<br>
&gt;<br>
&gt; On 6/29/17 5:20 PM, Adrian Nistor wrote:<br>
&gt;&gt; People, don&#39;t be shy, the PR is in now, but things can still change<br>
&gt;&gt; based on you feedback. We still have two weeks until we release the Final.<br>
&gt;&gt;<br>
&gt;&gt; On 06/29/2017 03:45 PM, Adrian Nistor wrote:<br>
&gt;&gt;&gt; This pr [1] adds a new approach for defining the compat marshaller class<br>
&gt;&gt;&gt; and the indexed entity classes (in server), and the same approach could<br>
&gt;&gt;&gt; be used in future for deployment of encoders,  lucene analyzers and<br>
&gt;&gt;&gt; possilby other code bits that a user would want to add a server in order<br>
&gt;&gt;&gt; to implement an extension point that we support.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Your feedback is wellcome!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; [1] <a href="https://github.com/infinispan/infinispan/pull/5233" rel="noreferrer" target="_blank">https://github.com/infinispan/<wbr>infinispan/pull/5233</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt;&gt; infinispan-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/infinispan-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; infinispan-dev mailing list<br>
&gt;&gt; <a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/infinispan-dev</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Tristan Tarrant<br>
&gt; Infinispan Lead<br>
&gt; JBoss, a division of Red Hat<br>
&gt; ______________________________<wbr>_________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/infinispan-dev</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org" target="_blank">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/infinispan-dev</a></div></div></blockquote></div><br></div></div></div></div></div></div></div>