Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-95

simplification of solr_server.rb

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • clients - ruby - flare
    • None
    • Darwin Kernel Version 8.8.1

    Description

      solr_start() was using a system call to start solr, which resulted in three separate processes that needed to be killed with a process group id. This required solr_start() to disassociate itself from the parent process with setsid, and lookup the subprocesses' parent id.

      using exec() instead of system() makes this complexity go away fortunately. Also the solr_server.rb was renamed to test_helper.rb as it is likely to contain other methods/classes for clearing the index, etc...

      Attachments

        Activity

          People

            ehatcher Erik Hatcher
            edsu Ed Summers
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: