Coder Social home page Coder Social logo

Comments (5)

rnewson avatar rnewson commented on August 17, 2024

Ah, good catch. I'll improve the handling here.

from couchdb-lucene.

rnewson avatar rnewson commented on August 17, 2024

If the main() method exists, couch will still complain.

Is the purpose of your patch to get better error output? It doesn't appear that it will stop couch restarting the external over and over, and the exception above is much more useful (to me) that a log message.

from couchdb-lucene.

hntrmrrs avatar hntrmrrs commented on August 17, 2024

I agree. To fully solve the problem, I expect that Couch will need to pay more attention to why the process died. I think the log message is useful when first configuring Lucene because new users who aren't familiar with Java will struggle to pinpoint why it's failing to start with a bad couchdb.lucene.dir configuration option.

In the meantime, I'll look at possible ways of notifying Couch that the process won't start and thus shouldn't be continually restarted.

from couchdb-lucene.

rnewson avatar rnewson commented on August 17, 2024

right. I'm shoring up error handling right now so I'll add your check (or equivalent).

I can arrange for a non-zero exit code in the event of these errors, if that would help with the couch modifications?

from couchdb-lucene.

rnewson avatar rnewson commented on August 17, 2024

Ok, for now, I test for a few conditions and log a clearer error message if the directory isn't writable (with the absolute path for clarity).

If couch provides a more nuanced interaction for this kind of error handling, I'll gladly enhance further.

from couchdb-lucene.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.