You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.
class SolrManagerSuite extends FunSuite with Matchers with BeforeAndAfterAll with BeforeAndAfter
{
val solrManager = new SolrManager
before {
// throws an exception, this is not reported to TeamCity
solrManager.delete(":")
solrManager.commit()
}
test(....){...}
}
But I can see the exception in the teamcity buildlog:
[12:17:50][Step 1/1] org.apache.solr.client.solrj.SolrServerException: Server refused connection at: http://localhost:8983/solr/collection1
[12:17:50][Step 1/1] at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:496)
[12:17:50][Step 1/1] at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:197)
[12:17:50][Step 1/1] at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
[12:17:50][Step 1/1] at org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:285)
[12:17:50][Step 1/1] at org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:271)
[12:17:50][Step 1/1] at solr.manager.SolrManager.delete(SolrManager.scala:36)
[12:17:50][Step 1/1] at solr.manager.SolrManager.delete(SolrManager.scala:34)
[12:17:50][Step 1/1] at solr.SolrManagerSuite$$anonfun$4.apply(SolrManagerSuite.scala:80)
[12:17:50][Step 1/1] at solr.SolrManagerSuite$$anonfun$4.apply(SolrManagerSuite.scala:79)
[12:17:50][Step 1/1] at org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:195)
[12:17:50][Step 1/1] at solr.SolrManagerSuite.runTest(SolrManagerSuite.scala:10)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:199)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:199)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)
[12:17:50][Step 1/1] at scala.collection.immutable.List.foreach(List.scala:318)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:199)
[12:17:50][Step 1/1] at org.scalatest.FunSuite.runTests(FunSuite.scala:1559)
[12:17:50][Step 1/1] at org.scalatest.Suite$class.run(Suite.scala:1423)
[12:17:50][Step 1/1] at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1559)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:203)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:203)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine.runImpl(Engine.scala:545)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:203)
[12:17:50][Step 1/1] at solr.SolrManagerSuite.org$scalatest$BeforeAndAfterAll$$super$run(SolrManagerSuite.scala:10)
[12:17:50][Step 1/1] at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)
[12:17:50][Step 1/1] at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)
[12:17:50][Step 1/1] at solr.SolrManagerSuite.org$scalatest$BeforeAndAfter$$super$run(SolrManagerSuite.scala:10)
[12:17:50][Step 1/1] at org.scalatest.BeforeAndAfter$class.run(BeforeAndAfter.scala:241)
[12:17:50][Step 1/1] at solr.SolrManagerSuite.run(SolrManagerSuite.scala:10)
[12:17:50][Step 1/1] at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:444)
[12:17:50][Step 1/1] at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:651)
[12:17:50][Step 1/1] at sbt.TestRunner.runTest$1(TestFramework.scala:84)
[12:17:50][Step 1/1] at sbt.TestRunner.run(TestFramework.scala:94)
[12:17:50][Step 1/1] at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:219)
[12:17:50][Step 1/1] at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:219)
[12:17:50][Step 1/1] at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:207)
[12:17:50][Step 1/1] at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:219)
[12:17:50][Step 1/1] at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:219)
[12:17:50][Step 1/1] at sbt.TestFunction.apply(TestFramework.scala:224)
[12:17:50][Step 1/1] at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
[12:17:50][Step 1/1] at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
[12:17:50][Step 1/1] at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
[12:17:50][Step 1/1] at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
[12:17:50][Step 1/1] at sbt.std.Transform$$anon$4.work(System.scala:64)
[12:17:50][Step 1/1] at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
[12:17:50][Step 1/1] at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
[12:17:50][Step 1/1] at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
[12:17:50][Step 1/1] at sbt.Execute.work(Execute.scala:244)
[12:17:50][Step 1/1] at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
[12:17:50][Step 1/1] at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
[12:17:50][Step 1/1] at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
[12:17:50][Step 1/1] at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
[12:17:50][Step 1/1] at java.util.concurrent.FutureTask.run(FutureTask.java:262)
[12:17:50][Step 1/1] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[12:17:50][Step 1/1] at java.util.concurrent.FutureTask.run(FutureTask.java:262)
[12:17:50][Step 1/1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[12:17:50][Step 1/1] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[12:17:50][Step 1/1] at java.lang.Thread.run(Thread.java:744)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For example
class SolrManagerSuite extends FunSuite with Matchers with BeforeAndAfterAll with BeforeAndAfter
{
val solrManager = new SolrManager
// throws an exception, this is not reported to TeamCity
solrManager.delete(":")
solrManager.commit()
}
test(....){...}
}
But I can see the exception in the teamcity buildlog:
[12:17:50][Step 1/1] org.apache.solr.client.solrj.SolrServerException: Server refused connection at: http://localhost:8983/solr/collection1
[12:17:50][Step 1/1] at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:496)
[12:17:50][Step 1/1] at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:197)
[12:17:50][Step 1/1] at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
[12:17:50][Step 1/1] at org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:285)
[12:17:50][Step 1/1] at org.apache.solr.client.solrj.SolrServer.deleteByQuery(SolrServer.java:271)
[12:17:50][Step 1/1] at solr.manager.SolrManager.delete(SolrManager.scala:36)
[12:17:50][Step 1/1] at solr.manager.SolrManager.delete(SolrManager.scala:34)
[12:17:50][Step 1/1] at solr.SolrManagerSuite$$anonfun$4.apply(SolrManagerSuite.scala:80)
[12:17:50][Step 1/1] at solr.SolrManagerSuite$$anonfun$4.apply(SolrManagerSuite.scala:79)
[12:17:50][Step 1/1] at org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:195)
[12:17:50][Step 1/1] at solr.SolrManagerSuite.runTest(SolrManagerSuite.scala:10)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:199)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:199)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)
[12:17:50][Step 1/1] at scala.collection.immutable.List.foreach(List.scala:318)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:199)
[12:17:50][Step 1/1] at org.scalatest.FunSuite.runTests(FunSuite.scala:1559)
[12:17:50][Step 1/1] at org.scalatest.Suite$class.run(Suite.scala:1423)
[12:17:50][Step 1/1] at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1559)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:203)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:203)
[12:17:50][Step 1/1] at org.scalatest.SuperEngine.runImpl(Engine.scala:545)
[12:17:50][Step 1/1] at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:203)
[12:17:50][Step 1/1] at solr.SolrManagerSuite.org$scalatest$BeforeAndAfterAll$$super$run(SolrManagerSuite.scala:10)
[12:17:50][Step 1/1] at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)
[12:17:50][Step 1/1] at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)
[12:17:50][Step 1/1] at solr.SolrManagerSuite.org$scalatest$BeforeAndAfter$$super$run(SolrManagerSuite.scala:10)
[12:17:50][Step 1/1] at org.scalatest.BeforeAndAfter$class.run(BeforeAndAfter.scala:241)
[12:17:50][Step 1/1] at solr.SolrManagerSuite.run(SolrManagerSuite.scala:10)
[12:17:50][Step 1/1] at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:444)
[12:17:50][Step 1/1] at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:651)
[12:17:50][Step 1/1] at sbt.TestRunner.runTest$1(TestFramework.scala:84)
[12:17:50][Step 1/1] at sbt.TestRunner.run(TestFramework.scala:94)
[12:17:50][Step 1/1] at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:219)
[12:17:50][Step 1/1] at sbt.TestFramework$$anon$2$$anonfun$$init$$1$$anonfun$apply$8.apply(TestFramework.scala:219)
[12:17:50][Step 1/1] at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:207)
[12:17:50][Step 1/1] at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:219)
[12:17:50][Step 1/1] at sbt.TestFramework$$anon$2$$anonfun$$init$$1.apply(TestFramework.scala:219)
[12:17:50][Step 1/1] at sbt.TestFunction.apply(TestFramework.scala:224)
[12:17:50][Step 1/1] at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
[12:17:50][Step 1/1] at sbt.Tests$$anonfun$7.apply(Tests.scala:196)
[12:17:50][Step 1/1] at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
[12:17:50][Step 1/1] at sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:45)
[12:17:50][Step 1/1] at sbt.std.Transform$$anon$4.work(System.scala:64)
[12:17:50][Step 1/1] at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
[12:17:50][Step 1/1] at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
[12:17:50][Step 1/1] at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
[12:17:50][Step 1/1] at sbt.Execute.work(Execute.scala:244)
[12:17:50][Step 1/1] at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
[12:17:50][Step 1/1] at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
[12:17:50][Step 1/1] at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
[12:17:50][Step 1/1] at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
[12:17:50][Step 1/1] at java.util.concurrent.FutureTask.run(FutureTask.java:262)
[12:17:50][Step 1/1] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[12:17:50][Step 1/1] at java.util.concurrent.FutureTask.run(FutureTask.java:262)
[12:17:50][Step 1/1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[12:17:50][Step 1/1] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[12:17:50][Step 1/1] at java.lang.Thread.run(Thread.java:744)
The text was updated successfully, but these errors were encountered: