Artem, Whats the OS are using? So far jetty 9 with solr 4.3.1 works ok under ubuntu 12.04. On 30 Jul 2013 17:23, "Alexandre Rafalovitch" <arafa...@gmail.com> wrote:
> Of course, I meant Jetty (not Tomcat). So apologies for spam and confusion > of my own. The rest of the statement stands. > > Personal website: http://www.outerthoughts.com/ > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch > - Time is the quality of nature that keeps events from happening all at > once. Lately, it doesn't seem to be working. (Anonymous - via GTD book) > > > On Tue, Jul 30, 2013 at 10:20 AM, Alexandre Rafalovitch > <arafa...@gmail.com>wrote: > > > Thanks for letting us know. See if you can add it to the documentation > > somewhere. > > > > Solr is not using Tomcat 9, but I believe that was primarily because > > Tomcat 9 requires Java 7 and Solr 4.x is staying with Java 6 as minimum > > requirement. > > > > Regards, > > Alex. > > > > Personal website: http://www.outerthoughts.com/ > > LinkedIn: http://www.linkedin.com/in/alexandrerafalovitch > > - Time is the quality of nature that keeps events from happening all at > > once. Lately, it doesn't seem to be working. (Anonymous - via GTD book) > > > > > > On Tue, Jul 30, 2013 at 10:09 AM, Artem Karpenko <a.karpe...@oxseed.com > >wrote: > > > >> Uh, sorry for spamming, but if anyone interested there is a way to > >> properly shutdown Jetty when it's launched with --exec flag. > >> You can use JMX to invoke method stop() on the Jetty's Server MBean. > This > >> triggers a proper shutdown with all Solr's close() callbacks executed. > >> I wonder why it's not noted at least in Jetty documentation. > >> > >> Regards, > >> Artem Karpenko. > >> > >> 30.07.2013 16:58, Artem Karpenko пишет: > >> > >> After some investigation I found that the problem is not with Jetty's > >>> version but usage of --exec flag. > >>> Namely, when --exec is used (to specify JVM args) then shutdown is not > >>> graceful, it seems that Java process that is just killed. > >>> Not sure how to handle this... > >>> > >>> Regards, > >>> Artem Karpenko. > >>> > >>> 29.07.2013 16:51, Artem Karpenko пишет: > >>> > >>>> Hi, > >>>> > >>>> I can't make Solr shut down properly when using Jetty 9. Tested this > >>>> with a simple plugin that only extends DirectUpdateHandler2, creates a > >>>> file in constructor and deletes it in close(). While it's working fine > >>>> in the example installation (the one that can be downloaded from Solr > >>>> site) and in the simple custom installation with Jetty 8, it won't in > >>>> Jetty 9. There is not much logging at shutdown at all, just Jetty's > >>>> "closing selector" or smth., unlike with Jetty 8 where it prints > various > >>>> "Graceful shutdown" messages from Solr. > >>>> > >>>> Installation procedure I used for both Jettys is rather simple: just > put > >>>> solr.war into webapps/ directory, plugin JAR into {core}/lib/ and > >>>> configure update handler in solrconfig.xml. > >>>> OS is Windows 7, Solr 4.4. > >>>> I tried to stop Jetty with both "Ctrl+C" and "java start.jar [port/key > >>>> params] --stop". For Jetty 8 it works fine even with Ctrl+C. > >>>> > >>>> Did anybody stumble on this issue? > >>>> > >>>> Best regards, > >>>> Artem. > >>>> > >>>> > >> > > >