Skip to content

sunspot_solr still running after finishing the tests #30

@rocket-turtle

Description

@rocket-turtle

After I run my tests the sunspot_solr is still alive.

at_exit { Process.kill("TERM", pid) } does not run the ./solr stop.
server.start and server.stop can be used to workaround this.
I would be happy to provide a PR if someone is going to merge it.

at_exit { Process.kill("TERM", pid) }

$ ps aux | grep java
xxx 52735 0,1 0,3 4509468  53744 s001 S 2:11pm 0:21.76 /usr/bin/java -server -Xss256k -Xms512m -Xmx512m -XX:NewRatio=3 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 -XX:+CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50 -XX:CMSMaxAbortablePrecleanTime=6000 -XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -Xloggc:/Users/xxx/.rvm/gems/ruby-2.2.7@yyy/gems/sunspot_solr-2.2.7/solr/server/logs/solr_gc.log -Djetty.port=50176 -DSTOP.PORT=49176 -DSTOP.KEY=solrrocks -Duser.timezone=UTC -Djetty.home=/Users/xxx/.rvm/gems/ruby-2.2.7@yyy/gems/sunspot_solr-2.2.7/solr/server -Dsolr.solr.home=/Users/xxx/rails/develop/project/solr -Dsolr.install.dir=/Users/xxx/.rvm/gems/ruby-2.2.7@yyy/gems/sunspot_solr-2.2.7/solr -jar start.jar --module=http

Update:
The issue in sunspot has been fixed.
sunspot/sunspot#843

Note there is a Problem with server.stop so we should use at_exit { fork { server.stop } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions