Hi,<br><br>I&#39;m wondering if it is reasonable to have multiple threads/nodes that modifies indexes in Lucene Directory based on Infinispan? Let&#39;s assume that two nodes try to update index in this same time. First one creates IndexWriter and obtains <br>
write lock. There is high propability that second node throws LockObtainFailedException (as one IndexWriter is allowed on single index) and index is not modified. How is that? Should be always only one node that makes changes in <br>
the index?<br><br>Cheers,<br>Lukasz<br><br><div class="gmail_quote">W dniu 15 września 2009 01:39 użytkownik Łukasz Moreń <span dir="ltr">&lt;<a href="mailto:lukasz.moren@gmail.com">lukasz.moren@gmail.com</a>&gt;</span> napisał:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, <br><br>With using JMeter I wanted to check if Infinispan dir does not crash
under heavy load in &quot;real&quot; use and check performance in comparison with none/other
directories.<br>
However appeared problem when multiple IndexWriters tries to modify
index (test InfinispanDirectoryTest) - random deadlocks, and Lucene
exceptions.<br>
IndexWriter tries to access files in index that were removed before. I&#39;m looking into it, but not having good idea. <br>
<br>Concerning the last part, I think similar thing is done in
InfinispanDirectoryProviderTest. Many threads are making changes and
searching (not checking if db is in sync with index).<br>
If threads finish their work, with Lucene query I&#39;m checking if index contains as many results as expected. Maybe you meant something else?<br>
Would be good to run each node in different VM.<div class="im"><br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Great ! Looking forward to it. What state are things in at the moment<br>


if I want to play around with it ?<br></blockquote></div><div><br>Should work with  with one master(updates index) and one many slave nodes (sends changes to master). I tried with one master and one slave (both with jms and jgroups backend) and worked ok. Still fails if multiple nodes want to modify index.<br>

</div>
<br>I&#39;ve attached patch with current version.<br><br>
Cheers,<br>
Łukasz<br><br><div class="gmail_quote">2009/9/13 Michael Neale <span dir="ltr">&lt;<a href="mailto:michael.neale@gmail.com" target="_blank">michael.neale@gmail.com</a>&gt;</span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Great ! Looking forward to it. What state are things in at the moment<br>
if I want to play around with it ?<br>
<br>
Sent from my phone.<br>
<br>
On 13/09/2009, at 7:26 PM, Sanne Grinovero &lt;<a href="mailto:sanne.grinovero@gmail.com" target="_blank">sanne.grinovero@gmail.com</a>&gt;<br>
wrote:<br>
<div><div></div><div><br>
&gt; 2009/9/12 Michael Neale &lt;<a href="mailto:michael.neale@gmail.com" target="_blank">michael.neale@gmail.com</a>&gt;:<br>
&gt;&gt; That does sounds pretty cool. Would be nice if the lucene indexes<br>
&gt;&gt; could scale along with how people will want to use infinispan.<br>
&gt;&gt; Probably worth playing with.<br>
&gt;<br>
&gt; Sure, this is the goal of Łukasz&#39;s work; We know compass has<br>
&gt; some good Directories, but we&#39;re building our own as one based<br>
&gt; on Infinispan is not yet available.<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Sent from my phone.<br>
&gt;&gt;<br>
&gt;&gt; On 13/09/2009, at 8:37 AM, Jeff Ramsdale &lt;<a href="mailto:jeff.ramsdale@gmail.com" target="_blank">jeff.ramsdale@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m afraid I haven&#39;t followed the Infinispan-Lucene implementation<br>
&gt;&gt;&gt; closely, but have you looked at the Compass Project?<br>
&gt;&gt;&gt; (<a href="http://www.compass-project.org/overview.html" target="_blank">http://www.compass-project.org/overview.html</a>) It provides a<br>
&gt;&gt;&gt; simplified interface to Lucene (optional) as well as Directory<br>
&gt;&gt;&gt; implementations built on Terracotta, Gigaspaces and Coherence. The<br>
&gt;&gt;&gt; latter, in particular, might be a useful guide for the Infinispan<br>
&gt;&gt;&gt; implementation. I believe it&#39;s mature enough to have solved many of<br>
&gt;&gt;&gt; the most difficult problems of implementing Directory on a<br>
&gt;&gt;&gt; distributed<br>
&gt;&gt;&gt; Map.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; If someone has any experience with Compass (particularly it&#39;s<br>
&gt;&gt;&gt; Directory implementations) I&#39;d be interested in hearing about it...<br>
&gt;&gt;&gt; It&#39;s Apache 2.0 licensed, btw.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -jeff<br>
&gt;&gt;&gt; _______________________________________________<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" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
&gt;&gt; _______________________________________________<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" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<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" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
<br>
_______________________________________________<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" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></div></div></blockquote></div></div></div><br>
</blockquote></div><br>