constellio 3.0.2852, the solrcloud got a "Could not find collection" msg when creating a new collection, and cannot config the new collection

230 views
Skip to first unread message

sunx...@gmail.com

unread,
Nov 4, 2014, 10:46:41 PM11/4/14
to const...@googlegroups.com
Hi, 
I test the newest constellio code, on win7CN, tomcat7.0.56, JDK1.7.0_67,and want to report a bug (maybe not?)
1) I checkout http://svn.constellio.com/constellio/trunk/HEAD revision
2) unzip the solr-4.10.0.zip
3) change the build.gradle 
   add this line at the bottom: [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
4) gradlew.bat war -> successful
5) copy the consstellio/build/libs/constellio.war to tomcat/webapp/constellio.war
6) start solrcloud by doubleclick solr-4.10.0/start_all.bat
7) start tomcat and login on admin/password

when i create a new collection,
the slor throws:
INFO  - 2014-11-05 10:59:15.034; org.apache.solr.cloud.Overseer$ClusterStateUpdater; Update state numShards=1 message={
  "operation":"state",
  "core_node_name":"core_node2",
  "numShards":"1",
  "shard":"shard1",
  "roles":null,
  "state":"active",
  "core":"_search_log_shard1_replica2",
  "collection":"_search_log",
  "node_name":"10.70.24.8:8982_solr",
INFO  - 2014-11-05 10:59:15.245; org.apache.solr.common.cloud.ZkStateReader$2; A cluster state change: WatchedEvent state:SyncConnected type:NodeDataChanged path:/clusterstate.json, has occurred - updating... (live nodes size: 2)
INFO  - 2014-11-05 10:59:16.104; org.apache.solr.handler.admin.CollectionsHandler; Reloading Collection : name=ttt&action=RELOAD&wt=javabin&qt=/admin/collections&version=2
INFO  - 2014-11-05 10:59:16.110; org.apache.solr.cloud.DistributedQueue$LatchChildWatcher; LatchChildWatcher fired on path: /overseer/collection-queue-work state: SyncConnected type NodeChildrenChanged
INFO  - 2014-11-05 10:59:16.120; org.apache.solr.cloud.OverseerCollectionProcessor; Overseer Collection Processor: Get the message id:/overseer/collection-queue-work/qn-0000000010 message:{
  "operation":"reloadcollection",
  "name":"ttt"}
WARN  - 2014-11-05 10:59:16.125; org.apache.solr.cloud.OverseerCollectionProcessor; OverseerCollectionProcessor.processMessage : reloadcollection , {
  "operation":"reloadcollection",
  "name":"ttt"}
INFO  - 2014-11-05 10:59:16.129; org.apache.solr.cloud.OverseerCollectionProcessor; Executing Collection Cmd : action=RELOAD
ERROR - 2014-11-05 10:59:16.131; org.apache.solr.common.SolrException; Collection reloadcollection of reloadcollection failed:org.apache.solr.common.SolrException: Could not find collection : ttt
at org.apache.solr.common.cloud.ClusterState.getCollection(ClusterState.java:162)
at org.apache.solr.cloud.OverseerCollectionProcessor.collectionCmd(OverseerCollectionProcessor.java:2431)
at org.apache.solr.cloud.OverseerCollectionProcessor.processMessage(OverseerCollectionProcessor.java:557)
at org.apache.solr.cloud.OverseerCollectionProcessor$Runner.run(OverseerCollectionProcessor.java:2621)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


i think the constellio maybe not create the new collection "ttt" before reload it, i don't know if this is a bug.

and anthor issues, when the solrcloud init, throws this:

INFO  - 2014-11-05 10:59:07.500; org.apache.solr.cloud.ZkController; Register replica - core:_search_log_shard1_replica1 address:http://10.70.24.8:8983/solr collection:_search_log shard:shard1
INFO  - 2014-11-05 10:59:07.497; org.apache.solr.cloud.ZkController; Register replica - core:_search_compile_log_shard1_replica1 address:http://10.70.24.8:8983/solr collection:_search_compile_log shard:shard1
INFO  - 2014-11-05 10:59:07.501; org.apache.solr.cloud.ZkController; Register replica - core:_click_compile_log_shard1_replica1 address:http://10.70.24.8:8983/solr collection:_click_compile_log shard:shard1
INFO  - 2014-11-05 10:59:07.500; org.apache.solr.servlet.SolrDispatchFilter; user.dir=e:\solr-4.10.0\solr-4.10.0\example
INFO  - 2014-11-05 10:59:07.525; org.apache.solr.servlet.SolrDispatchFilter; SolrDispatchFilter.init() done
ERROR - 2014-11-05 10:59:07.552; org.apache.solr.common.SolrException; org.apache.solr.common.SolrException: undefined field text
at org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1267)
at org.apache.solr.schema.IndexSchema$SolrQueryAnalyzer.getWrappedAnalyzer(IndexSchema.java:433)
at org.apache.lucene.analysis.DelegatingAnalyzerWrapper$DelegatingReuseStrategy.getReusableComponents(DelegatingAnalyzerWrapper.java:74)
at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:175)
at org.apache.lucene.util.QueryBuilder.createFieldQuery(QueryBuilder.java:207)
at org.apache.solr.parser.SolrQueryParserBase.newFieldQuery(SolrQueryParserBase.java:374)
at org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:742)
at org.apache.solr.parser.SolrQueryParserBase.handleBareTokenQuery(SolrQueryParserBase.java:541)
at org.apache.solr.parser.QueryParser.Term(QueryParser.java:299)
at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:185)
at org.apache.solr.parser.QueryParser.Query(QueryParser.java:107)
at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:96)
at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:151)
at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:50)
at org.apache.solr.search.QParser.getQuery(QParser.java:141)
at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:148)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:197)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1967)
at org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:64)
at org.apache.solr.core.SolrCore$5.call(SolrCore.java:1739)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

INFO  - 2014-11-05 10:59:07.579; org.apache.solr.cloud.ShardLeaderElectionContext; Running the leader process for shard shard1
INFO  - 2014-11-05 10:59:07.569; org.apache.solr.cloud.ShardLeaderElectionContext; Running the leader process for shard shard1

i want to findout how can i resolve this issue


sunx...@gmail.com

unread,
Nov 4, 2014, 10:50:16 PM11/4/14
to const...@googlegroups.com
sorry, i forgot to say thanks..  :(
thanks very much..

Nicolas Bélisle

unread,
Nov 5, 2014, 2:49:05 AM11/5/14
to const...@googlegroups.com
Hi, 

The issue is with the Solr package. 
We recently added a few security jars (based on ManifoldCF). 

I'll update the SVN tomorrow, but you can try the package from here : https://dl.dropboxusercontent.com/u/68731549/solr-4.10.0.zip

* Keep us informed about your testing.

Regards, 

Nicolas

2014-11-04 22:50 GMT-05:00 <sunx...@gmail.com>:
sorry, i forgot to say thanks..  :(
thanks very much..

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "Constellio".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse constellio+...@googlegroups.com.
Pour envoyer un message à ce groupe, envoyez un e-mail à l'adresse const...@googlegroups.com.
Visitez ce groupe à l'adresse http://groups.google.com/group/constellio.
Pour obtenir davantage d'options, consultez la page https://groups.google.com/d/optout.

sunx...@gmail.com

unread,
Nov 6, 2014, 2:27:28 AM11/6/14
to const...@googlegroups.com
Hi, Nicolas

Thanks for your reply.
update the code to the HEAD revision(2858) and rebuild war, 

I find the issue is still appear. i send the logs, maybe the logs would be helpful.

thans you again

Best regards

Sunxk

在 2014年11月5日星期三UTC+8下午3时49分05秒,Nicolas Bélisle写道:
example2_solr.log
example_solr.log

sunx...@gmail.com

unread,
Nov 13, 2014, 12:10:09 AM11/13/14
to const...@googlegroups.com
Hi, Nicolas

I found that I made a mistake when creating collections, the new solr works well, but the "undefined field text" issue still exist.

And, another question:
when creating a connector, there are only two connector types (http and file) ,  how could I enable other connectors, like cmis, alfresco, etc.??

thank you.

regards..

 
Reply all
Reply to author
Forward
0 new messages