Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded solr never reindexes on startup #403

Open
byxorna opened this issue Jan 27, 2016 · 0 comments
Open

Embedded solr never reindexes on startup #403

byxorna opened this issue Jan 27, 2016 · 0 comments

Comments

@byxorna
Copy link
Contributor

byxorna commented Jan 27, 2016

When using embedded solr, it appears that Collins will never trigger a full reindex on startup if the collins index is missing. You can see that it initializes the index, but never performs the repopulation (i do that manually by hitting /admin/solr). This is an issue when running collins in a container with a separate mysql instance. Each time the container is recreated, a reindex should be triggered (otherwise searching will return [] which is super undesirable).

2016-01-27 18:53:40,851 - [INFO] - c.u.c.Registry$ - p.a.LoggerLike$class:info:93 - Initializing configuration of typeclass collins.util.security.LdapAuthenticationProviderConfig$
2016-01-27 18:53:40,852 - [INFO] - c.u.c.Registry$ - p.a.LoggerLike$class:info:93 - Initializing configuration of typeclass collins.util.views.TagDecoratorConfig$
2016-01-27 18:53:40,855 - [INFO] - c.u.c.Registry$ - p.a.LoggerLike$class:info:93 - Initializing configuration of typeclass collins.intake.IntakeConfig$
2016-01-27 18:53:40,856 - [INFO] - c.u.c.Registry$ - p.a.LoggerLike$class:info:93 - Initializing configuration of typeclass collins.graphs.GangliaGraphConfig$
2016-01-27 18:53:40,856 - [INFO] - c.u.c.Registry$ - p.a.LoggerLike$class:info:93 - Initializing configuration of typeclass collins.graphs.FibrGraphConfig$
2016-01-27 18:53:40,858 - [INFO] - c.u.c.Registry$ - p.a.LoggerLike$class:info:93 - Initializing configuration of typeclass collins.frames.ViewsConfig$
2016-01-27 18:53:40,875 - [INFO] - c.h.HazelcastHelper$ - p.a.LoggerLike$class:info:93 - Initializing hazelcast, enabled - false
2016-01-27 18:53:40,886 - [DEBUG] - application - c.u.s.LdapAuthenticationProvider:<init>:63 - LDAP URL: ldaps://xxx.company.com
2016-01-27 18:53:41,058 - [INFO] - play - p.a.LoggerLike$class:info:93 - Starting application default Akka system.
2016-01-27 18:53:41,450 - [WARN] - o.a.s.c.SolrResourceLoader - o.a.s.c.SolrResourceLoader:addToClassLoader:191 - Can't find (or read) directory to add to classloader: lib (resolved as: /opt/collins/conf/
solr/lib).
2016-01-27 18:53:41,916 - [WARN] - o.a.s.c.SolrCore - o.a.s.c.SolrCore:initIndex:539 - [collins] Solr index directory '/opt/collins/conf/solr/cores/collins/data/index' doesn't exist. Creating new index...
2016-01-27 18:53:42,177 - [DEBUG] - application - c.s.Solr$:getNewEmbeddedServer:43 - Booting embedded Solr Server with solrhome conf/solr/
2016-01-27 18:53:42,190 - [INFO] - play - p.a.LoggerLike$class:info:93 - Application started (Prod)
2016-01-27 18:53:42,276 - [INFO] - play - p.a.LoggerLike$class:info:93 - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
2016-01-27 18:53:42,533 - [INFO] - u.s.PermissionsLoader - p.a.LoggerLike$class:info:93 - Loading permissions from conf/permissions.yaml
2016-01-27 18:53:42,543 - [INFO] - u.s.PermissionsLoader - p.a.LoggerLike$class:info:93 - Refreshing permissions from conf/permissions.yaml
2016-01-27 18:53:42,578 - [INFO] - a.e.s.Slf4jLogger - a.e.s.Slf4jLogger$$anonfun$receive$1:applyOrElse:80 - Slf4jLogger started
2016-01-27 18:53:42,619 - [DEBUG] - application - c.c.a.SecureAction:checkAuthorization:124 - Auth required for /resources and requested by gconradi was successful
2016-01-27 18:53:42,619 - [DEBUG] - application - c.c.a.SecureAction:checkAuthorization:126 - No credentials required for /resources, processing action
2016-01-27 18:53:42,673 - [DEBUG] - application - c.c.a.a.FindAction$$anonfun$execute$1:apply:49 - Performing local asset find
2016-01-27 18:53:42,895 - [DEBUG] - application - c.c.SecureController$$anonfun$1:apply:49 - Auth required and successful
2016-01-27 18:53:42,895 - [DEBUG] - application - c.c.SecureController$$anonfun$1:apply:51 - No credentials required, processing action
2016-01-27 18:53:45,228 - [DEBUG] - application - c.c.a.SecureAction:checkAuthorization:124 - Auth required for /resources and requested by gconradi was successful
2016-01-27 18:53:45,229 - [DEBUG] - application - c.c.a.SecureAction:checkAuthorization:126 - No credentials required for /resources, processing action
2016-01-27 18:53:45,240 - [DEBUG] - application - c.c.a.a.FindAction$$anonfun$execute$1:apply:49 - Performing local asset find
2016-01-27 18:53:45,269 - [DEBUG] - application - c.c.SecureController$$anonfun$1:apply:49 - Auth required and successful
2016-01-27 18:53:45,269 - [DEBUG] - application - c.c.SecureController$$anonfun$1:apply:51 - No credentials required, processing action
2016-01-27 18:53:48,442 - [DEBUG] - application - c.c.SecureController$$anonfun$1:apply:49 - Auth required and successful
2016-01-27 18:53:48,443 - [DEBUG] - application - c.c.SecureController$$anonfun$1:apply:55 - Credentials required and found, processing action
2016-01-27 18:53:48,445 - [WARN] - SolrPlugin - p.a.LoggerLike$class:warn:112 - Repopulating Solr index
2016-01-27 18:53:48,946 - [DEBUG] - application - c.c.SecureController$$anonfun$1:apply:49 - Auth required and successful
2016-01-27 18:53:48,947 - [DEBUG] - application - c.c.SecureController$$anonfun$1:apply:55 - Credentials required and found, processing action
2016-01-27 18:53:48,947 - [WARN] - SolrPlugin - p.a.LoggerLike$class:warn:112 - Repopulating Solr index
2016-01-27 18:53:48,966 - [DEBUG] - application - c.c.SecureController$$anonfun$1:apply:49 - Auth required and successful
2016-01-27 18:53:48,966 - [DEBUG] - application - c.c.SecureController$$anonfun$1:apply:51 - No credentials required, processing action
2016-01-27 18:53:49,180 - [INFO] - SolrPlugin - p.a.LoggerLike$class:info:93 - Indexed 7 assets
2016-01-27 18:53:49,195 - [INFO] - SolrPlugin - p.a.LoggerLike$class:info:93 - Indexed 7 assets
2016-01-27 18:53:50,134 - [INFO] - SolrPlugin - p.a.LoggerLike$class:info:93 - Indexed 1652 logs
2016-01-27 18:53:50,145 - [INFO] - SolrPlugin - p.a.LoggerLike$class:info:93 - Indexed 1652 logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant