Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4, 6.0
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      When you run bin/solr -f, bash invokes java as a sub-process.
      If you kill -TERM the script, java gets terminated uncleanly.
      The script should invoke java using exec: then, when you send a TERM, it stops ServerConnector and shuts down the core. And you save yourself a process in the process.

      See this patch https://gist.github.com/makuk66/5ba75e8d592bf5428611

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1708700 from Timothy Potter in branch 'dev/trunk'
        [ https://svn.apache.org/r1708700 ]

        SOLR-8107: bin/solr -f should use exec to start the JVM

        Show
        ASF subversion and git services added a comment - Commit 1708700 from Timothy Potter in branch 'dev/trunk' [ https://svn.apache.org/r1708700 ] SOLR-8107 : bin/solr -f should use exec to start the JVM
        Hide
        Timothy Potter added a comment -
        Show
        Timothy Potter added a comment - Thanks Martijn Koster !
        Hide
        ASF subversion and git services added a comment -

        Commit 1708702 from Timothy Potter in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1708702 ]

        SOLR-8107: bin/solr -f should use exec to start the JVM

        Show
        ASF subversion and git services added a comment - Commit 1708702 from Timothy Potter in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1708702 ] SOLR-8107 : bin/solr -f should use exec to start the JVM

          People

          • Assignee:
            Timothy Potter
            Reporter:
            Martijn Koster
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development