lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: RMI, Searchable and RemoteSearchable
Date Sat, 27 Sep 2008 01:52:39 GMT

On Sep 26, 2008, at 8:19 PM, Anthony Urso wrote:

> I am using the RMI RemoteSearchable. I don't use a central RMI
> registry for the cluster (it's not particularly beneficial to do so),
> so I have had none of the problems described above.  It just works out
> of the box.
> Why not work towards RemoteSearchable instead of Searchable extending
> java.rmi.Remote?

Yeah, that's what I am proposing.  And, it will be in a separate  
contrib.  I believe, and maybe you can help here, Anthony, b/c RMI is  
not my strength, is we can just move it out to it's own JAR, and then  
people using it need just to include the new JAR and possibly recompile.

Do you think that would work?  It would remove the RMI dependency from  
core, but still keep those using RMI happy.

> Cheers,
> Anthony
> PS: I would happily upgrade to the Hadoop RPC version of
> RemoteSearchable that was discussed here earlier if it is moved into
> contrib.
> On Fri, Sep 26, 2008 at 9:12 AM, mark harwood  
> <> wrote:
>>>> since not many people, I think, even use the RMI stuff
>> I certainly binned RMI in my distributed work.
>> It just would not reliably stop/restart cleanly in my experience -  
>> despite following all the RMI guidelines for clean shutdowns.
>> I'd happily see all RMI dependencies banished from core.
>> Cheers
>> Mark
>> ----- Original Message ----
>> From: Grant Ingersoll <>
>> To:
>> Sent: Friday, 26 September, 2008 17:01:25
>> Subject: Re: RMI, Searchable and RemoteSearchable
>> Right, I think we could mark the RMI stuff on Searchable as  
>> deprecated
>> and note that it will be moved in 3.0.
>> I will open a JIRA.
>> On Sep 26, 2008, at 11:57 AM, DM Smith wrote:
>>> Grant Ingersoll wrote:
>>>> Came across:
>>>> The gist of it is, that on Android doesn't provide the RMI
>>>> package.  Thus, Lucene core can't work on Android b/c of Searchable
>>>> extending java.rmi.Remote.
>>>> This has always seemed a little weird to me.  I'm no RMI expert,
>>>> but couldn't we drop the extension on Searchable, and add it to
>>>> RemoteSearchable, and then move RemoteSearchable and all the RMI
>>>> stuff to a separate contrib?  This, in my view, would be consistent
>>>> with keeping core, core, since not many people, I think, even use
>>>> the RMI stuff and it certainly isn't required in most cases.
>>>> I haven't looked into what would break in doing it, so it is just a
>>>> suggestion at this point.  Seems like it could be "mostly" back-
>>>> compatible, though, since we would just be requiring someone to get
>>>> the new JAR, unless of course they implemented their own extension
>>>> of Searchable that relied on the Remote marker interface.
>>>> Thoughts?
>>> If done, it should be done soon. Once we get to 2.9/3.0 we are kind
>>> of stuck for a long time.
>>> -- DM

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message