On Sun, Aug 17, 2008 at 7:03 PM, Norberto Meijome <[EMAIL PROTECTED]>wrote:

> hi guys,
> First of all, thanks for DIH - it's great :)
>
> One thing I noticed during my tests ( nightly, 2008-08-16) is that, if the
> DB is not available during SOLR startup time, the whole core won't
> initialise .- the error is shown below.
>
> I was wondering,
> 1) would it be possible to have DIH bomb out in this situation, but not
> bring down the whole core from running?  I think it would be desirable ,
> with a big warning , possibly... thoughts ?
>

I don't think it should even try to make a connection during core init. No
point in making a connection and keeping it if it is not going to be used
immeadiately. It anyway refreshes connection which are idle for more than 10
seconds to avoid connection timeouts.

I've made the changes so that it will initalize all data sources but will
not try to connect on core startup. It will open connections when the user
first makes the import commands. If it is not able to open connections, it
will just fail the requested import operations and let the user figure out
what to do next. Please try the trunk code to verify if your problem is
solved.

Note that in cases of failure, you can run the import again in debug+verbose
mode which will tell you the exception(s) which happened:

http://localhost:8080/solr/dataimport?command=full-import&debug=on&verbose=on

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to