Skip to content

Instantly share code, notes, and snippets.

@shawnfeldman
Last active April 26, 2017 15:12
Show Gist options
  • Select an option

  • Save shawnfeldman/ec90756d886f47a3d32e2499cfc390d8 to your computer and use it in GitHub Desktop.

Select an option

Save shawnfeldman/ec90756d886f47a3d32e2499cfc390d8 to your computer and use it in GitHub Desktop.
replicate solr cloud issues
git clone git@github.com:sendgrid/solr-go.git
navigate to clone dir
"docker-compose up"
open browser to http://solr:admin@localhost:8983/solr/admin
navigate to cloud and find the leader ip
open new terminal
navigate to clone dir
run "docker inspect --format '{{ .NetworkSettings.IPAddress }} - {{ .Name }}' $(docker ps -q)"
note the node name with the leader ip name and omit the slash e.g. /solrgo_solr1_1 becomes solrgo_solr1_1
open new terminal
navigate to clone dir
"docker-compose run solrtests bash"
in the container
"cd runner"
"go run solr-runner.go"
open a new terminal
navigate to the clone dir
run "docker stop {nodename};docker start {nodename}"
final count in solr will be below desire count and the go run will panic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment