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

sbt test in new project fails with error: Invalid yaml. Please remove properties [cdc_raw_directory] from your cassandra.yaml #723

Closed
TimMoore opened this issue May 5, 2017 · 7 comments
Assignees
Milestone

Comments

@TimMoore
Copy link
Contributor

TimMoore commented May 5, 2017

Version

1.3.3 (regression)

Reproduction

$ sbt -Dsbt.version=0.13.15 new https://github.com/lagom/lagom-scala.g8 --name=hello-scala-sbt`
# ...
Template applied in ./hello-scala-sbt

$ cd hello-scala-sbt/
/Users/tmoore/Projects/tmp/hello-scala-sbt
$ sbt test
# ...
Exception (org.apache.cassandra.exceptions.ConfigurationException) encountered during startup: Invalid yaml. Please remove properties [cdc_raw_directory] from your cassandra.yaml
2017-05-05 17:11:07,143 ERROR org.apache.cassandra.service.CassandraDaemon - Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml. Please remove properties [cdc_raw_directory] from your cassandra.yaml
	at org.apache.cassandra.config.YamlConfigurationLoader$MissingPropertiesChecker.check(YamlConfigurationLoader.java:188) ~[cassandra-all-3.0.9.jar:3.0.9]
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:119) ~[cassandra-all-3.0.9.jar:3.0.9]
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:95) ~[cassandra-all-3.0.9.jar:3.0.9]
	at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135) ~[cassandra-all-3.0.9.jar:3.0.9]
	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119) ~[cassandra-all-3.0.9.jar:3.0.9]
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:543) ~[cassandra-all-3.0.9.jar:3.0.9]
	at akka.persistence.cassandra.testkit.CassandraLauncher$.startEmbedded(CassandraLauncher.scala:141) [akka-persistence-cassandra_2.11-0.26.jar:na]
	at akka.persistence.cassandra.testkit.CassandraLauncher$.main(CassandraLauncher.scala:63) [akka-persistence-cassandra_2.11-0.26.jar:na]
	at akka.persistence.cassandra.testkit.CassandraLauncher.main(CassandraLauncher.scala) [akka-persistence-cassandra_2.11-0.26.jar:na]
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml. Please remove properties [cdc_raw_directory] from your cassandra.yaml
	at org.apache.cassandra.config.YamlConfigurationLoader$MissingPropertiesChecker.check(YamlConfigurationLoader.java:188)
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:119)
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:95)
	at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135)
	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:543)
	at akka.persistence.cassandra.testkit.CassandraLauncher$.startEmbedded(CassandraLauncher.scala:141)
	at akka.persistence.cassandra.testkit.CassandraLauncher$.main(CassandraLauncher.scala:63)
	at akka.persistence.cassandra.testkit.CassandraLauncher.main(CassandraLauncher.scala)
Exception in thread "main" java.lang.RuntimeException: Exception encountered during startup
	at org.apache.cassandra.service.CassandraDaemon.exitOrFail(CassandraDaemon.java:705)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:598)
	at akka.persistence.cassandra.testkit.CassandraLauncher$.startEmbedded(CassandraLauncher.scala:141)
	at akka.persistence.cassandra.testkit.CassandraLauncher$.main(CassandraLauncher.scala:63)
	at akka.persistence.cassandra.testkit.CassandraLauncher.main(CassandraLauncher.scala)
Caused by: org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml. Please remove properties [cdc_raw_directory] from your cassandra.yaml
	at org.apache.cassandra.config.YamlConfigurationLoader$MissingPropertiesChecker.check(YamlConfigurationLoader.java:188)
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:119)
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:95)
	at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135)
	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:543)
	... 3 more

Relates to #690 and akka/akka-persistence-cassandra#189

May be influenced by classpath ordering.

@ignasi35
Copy link
Contributor

ignasi35 commented May 5, 2017

Hi @TimMoore I can't reproduce the error described.

I have tried using sbt-launcher versions 0.13.13 and 0.13.15 and in both cases I got a successful completion of sbt test.

Is it possible your folder /Users/tmoore/Projects/tmp/hello-scala-sbt existed before and it had dirty content?

@ignasi35
Copy link
Contributor

ignasi35 commented May 5, 2017

Also, I noticed there's a trailing tick ` in your snippet but I think that was a side effect of copy pasting the terminal output.

@ignasi35
Copy link
Contributor

ignasi35 commented May 5, 2017


ignasi at imslightbend in ~/wip/support/tim
$ rm -rf hello-scala-sbt/
ignasi at imslightbend in ~/wip/support/tim
$  sbt -Dsbt.version=0.13.15 new https://github.com/lagom/lagom-scala.g8 --name=hello-scala-sbt
WARN: No sbt.version set in project/build.properties, base directory: /Users/ignasi/wip/support/tim
[warn] Executing in batch mode.
[warn]   For better performance, hit [ENTER] to switch to interactive mode, or
[warn]   consider launching sbt without any commands, or explicitly passing 'shell'
[info] Set current project to tim (in build file:/Users/ignasi/wip/support/tim/)

Template applied in ./hello-scala-sbt

ignasi at imslightbend in ~/wip/support/tim
$ cd hello-scala-sbt/
ignasi at imslightbend in ~/wip/support/tim/hello-scala-sbt
$ sbt sbtVersion
[info] Loading project definition from /Users/ignasi/wip/support/tim/hello-scala-sbt/project
[info] Updating {file:/Users/ignasi/wip/support/tim/hello-scala-sbt/project/}hello-scala-sbt-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to hello-scala-sbt (in build file:/Users/ignasi/wip/support/tim/hello-scala-sbt/)
[info] hello-scala-sbt-api/*:sbtVersion
[info] 	0.13.13
[info] hello-scala-sbt-impl/*:sbtVersion
[info] 	0.13.13
[info] hello-scala-sbt-stream-api/*:sbtVersion
[info] 	0.13.13
[info] hello-scala-sbt-stream-impl/*:sbtVersion
[info] 	0.13.13
[info] {.}/*:sbtVersion
[info] 	0.13.13
ignasi at imslightbend in ~/wip/support/tim/hello-scala-sbt
$ cd ..
ignasi at imslightbend in ~/wip/support/tim
$ sbt sbtVersion
[info] Set current project to tim (in build file:/Users/ignasi/wip/support/tim/)
[info] 0.13.13
ignasi at imslightbend in ~/wip/support/tim
$ cd hello-scala-sbt/
ignasi at imslightbend in ~/wip/support/tim/hello-scala-sbt
$ sbt test
[info] Loading project definition from /Users/ignasi/wip/support/tim/hello-scala-sbt/project
[info] Set current project to hello-scala-sbt (in build file:/Users/ignasi/wip/support/tim/hello-scala-sbt/)
[info] Updating {file:/Users/ignasi/wip/support/tim/hello-scala-sbt/}hello-scala-sbt-api...
[info] Updating {file:/Users/ignasi/wip/support/tim/hello-scala-sbt/}hello-scala-sbt-stream-api...
[info] Updating {file:/Users/ignasi/wip/support/tim/hello-scala-sbt/}hello-scala-sbt...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Resolving com.typesafe.play#play_2.11;2.5.10 ...
[info] Compiling 1 Scala source to /Users/ignasi/wip/support/tim/hello-scala-sbt/hello-scala-sbt-api/target/scala-2.11/classes...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Updating {file:/Users/ignasi/wip/support/tim/hello-scala-sbt/}hello-scala-sbt-impl...
[info] Resolving org.scala-lang.modules#scala-java8-compat_2.11;0.7.0 ...
[info] Updating {file:/Users/ignasi/wip/support/tim/hello-scala-sbt/}hello-scala-sbt-stream-impl...
[info] Resolving com.typesafe#ssl-config-core_2.11;0.2.1 ...
[info] Compiling 1 Scala source to /Users/ignasi/wip/support/tim/hello-scala-sbt/hello-scala-sbt-stream-api/target/scala-2.11/classes...
[info] Resolving com.lightbend.lagom#build-link;1.3.3 ...
[info] Done updating.
[info] Resolving org.scala-lang#scala-reflect;2.11.8 ...
[info] Compiling 3 Scala sources to /Users/ignasi/wip/support/tim/hello-scala-sbt/hello-scala-sbt-impl/target/scala-2.11/classes...
[info] Resolving com.lightbend.lagom#build-link;1.3.3 ...
[info] Done updating.
[info] Compiling 2 Scala sources to /Users/ignasi/wip/support/tim/hello-scala-sbt/hello-scala-sbt-stream-impl/target/scala-2.11/classes...
[warn] there was one deprecation warning; re-run with -deprecation for details
[warn] one warning found
[info] Compiling 2 Scala sources to /Users/ignasi/wip/support/tim/hello-scala-sbt/hello-scala-sbt-impl/target/scala-2.11/test-classes...
[warn] there was one deprecation warning; re-run with -deprecation for details
[warn] one warning found
[info] Run completed in 153 milliseconds.
[info] Total number of tests run: 0
[info] Suites: completed 0, aborted 0
[info] Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
[info] No tests were executed.
[info] HelloscalasbtEntitySpec:
[info] hello-scala-sbt entity
[info] - should say hello by default
[info] - should allow updating the greeting message
2017-05-05 17:09:52,437 ERROR org.apache.cassandra.service.StartupChecks - cassandra.jmx.local.port missing from cassandra-env.sh, unable to start local JMX service.
2017-05-05 17:09:58,049 WARN  com.datastax.driver.core.NettyUtil - Found Netty's native epoll transport, but not running on linux-based operating system. Using NIO instead.
[info] HelloscalasbtServiceSpec:
[info] hello-scala-sbt service
[info] - should say hello
[info] - should allow responding with a custom message
[info] Run completed in 14 seconds, 807 milliseconds.
[info] Total number of tests run: 4
[info] Suites: completed 2, aborted 0
[info] Tests: succeeded 4, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[success] Total time: 30 s, completed May 5, 2017 5:10:03 PM
ignasi at imslightbend in ~/wip/support/tim/hello-scala-sbt
$

@TimMoore
Copy link
Contributor Author

TimMoore commented May 9, 2017

Here's my output for the same commands:

[17:23:00] ~/Projects/tmp $ rm -rf hello-scala-sbt/
[17:23:12] ~/Projects/tmp $ sbt -Dsbt.version=0.13.15 new https://github.com/lagom/lagom-scala.g8 --name=hello-scala-sbt
WARN: No sbt.version set in project/build.properties, base directory: /Users/tmoore/Projects/tmp
[warn] Executing in batch mode.
[warn]   For better performance, hit [ENTER] to switch to interactive mode, or
[warn]   consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading global plugins from /Users/tmoore/.sbt/0.13/plugins
[info] Updating {file:/Users/tmoore/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to tmp (in build file:/Users/tmoore/Projects/tmp/)

Template applied in ./hello-scala-sbt

[17:23:37] ~/Projects/tmp $ cd hello-scala-sbt/
/Users/tmoore/Projects/tmp/hello-scala-sbt
[17:23:45] ~/Projects/tmp/hello-scala-sbt $ sbt sbtVersion
[info] Loading global plugins from /Users/tmoore/.sbt/0.13/plugins
[info] Updating {file:/Users/tmoore/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Loading project definition from /Users/tmoore/Projects/tmp/hello-scala-sbt/project
[info] Set current project to hello-scala-sbt (in build file:/Users/tmoore/Projects/tmp/hello-scala-sbt/)
[info] hello-scala-sbt-api/*:sbtVersion
[info] 	0.13.13
[info] hello-scala-sbt-impl/*:sbtVersion
[info] 	0.13.13
[info] hello-scala-sbt-stream-api/*:sbtVersion
[info] 	0.13.13
[info] hello-scala-sbt-stream-impl/*:sbtVersion
[info] 	0.13.13
[info] {.}/*:sbtVersion
[info] 	0.13.13
[17:24:05] ~/Projects/tmp/hello-scala-sbt $ cd ..
[17:24:08] ~/Projects/tmp $ sbt sbtVersion
WARN: No sbt.version set in project/build.properties, base directory: /Users/tmoore/Projects/tmp
[warn] Executing in batch mode.
[warn]   For better performance, hit [ENTER] to switch to interactive mode, or
[warn]   consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading global plugins from /Users/tmoore/.sbt/0.13/plugins
[info] Updating {file:/Users/tmoore/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to tmp (in build file:/Users/tmoore/Projects/tmp/)
[info] 0.13.15
[17:24:20] ~/Projects/tmp $ cd hello-scala-sbt/
/Users/tmoore/Projects/tmp/hello-scala-sbt
[17:24:42] ~/Projects/tmp/hello-scala-sbt $ sbt test
[info] Loading global plugins from /Users/tmoore/.sbt/0.13/plugins
[info] Updating {file:/Users/tmoore/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Loading project definition from /Users/tmoore/Projects/tmp/hello-scala-sbt/project
[info] Set current project to hello-scala-sbt (in build file:/Users/tmoore/Projects/tmp/hello-scala-sbt/)
[info] Compiling 1 Scala source to /Users/tmoore/Projects/tmp/hello-scala-sbt/hello-scala-sbt-stream-api/target/scala-2.11/classes...
[info] Compiling 1 Scala source to /Users/tmoore/Projects/tmp/hello-scala-sbt/hello-scala-sbt-api/target/scala-2.11/classes...
[info] Compiling 2 Scala sources to /Users/tmoore/Projects/tmp/hello-scala-sbt/hello-scala-sbt-stream-impl/target/scala-2.11/classes...
[info] Compiling 3 Scala sources to /Users/tmoore/Projects/tmp/hello-scala-sbt/hello-scala-sbt-impl/target/scala-2.11/classes...
[warn] there was one deprecation warning; re-run with -deprecation for details
[warn] one warning found
[info] Run completed in 34 milliseconds.
[info] Total number of tests run: 0
[info] Suites: completed 0, aborted 0
[info] Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
[info] No tests were executed.
[warn] there was one deprecation warning; re-run with -deprecation for details
[warn] one warning found
[info] Compiling 2 Scala sources to /Users/tmoore/Projects/tmp/hello-scala-sbt/hello-scala-sbt-impl/target/scala-2.11/test-classes...
[info] HelloscalasbtEntitySpec:
[info] hello-scala-sbt entity
[info] - should say hello by default
[info] - should allow updating the greeting message
Exception (org.apache.cassandra.exceptions.ConfigurationException) encountered during startup: Invalid yaml. Please remove properties [cdc_raw_directory] from your cassandra.yaml
2017-05-09 17:25:14,583 ERROR org.apache.cassandra.service.CassandraDaemon - Exception encountered during startup
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml. Please remove properties [cdc_raw_directory] from your cassandra.yaml
	at org.apache.cassandra.config.YamlConfigurationLoader$MissingPropertiesChecker.check(YamlConfigurationLoader.java:188) ~[cassandra-all-3.0.9.jar:3.0.9]
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:119) ~[cassandra-all-3.0.9.jar:3.0.9]
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:95) ~[cassandra-all-3.0.9.jar:3.0.9]
	at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135) ~[cassandra-all-3.0.9.jar:3.0.9]
	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119) ~[cassandra-all-3.0.9.jar:3.0.9]
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:543) ~[cassandra-all-3.0.9.jar:3.0.9]
	at akka.persistence.cassandra.testkit.CassandraLauncher$.startEmbedded(CassandraLauncher.scala:141) [akka-persistence-cassandra_2.11-0.26.jar:na]
	at akka.persistence.cassandra.testkit.CassandraLauncher$.main(CassandraLauncher.scala:63) [akka-persistence-cassandra_2.11-0.26.jar:na]
	at akka.persistence.cassandra.testkit.CassandraLauncher.main(CassandraLauncher.scala) [akka-persistence-cassandra_2.11-0.26.jar:na]
org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml. Please remove properties [cdc_raw_directory] from your cassandra.yaml
	at org.apache.cassandra.config.YamlConfigurationLoader$MissingPropertiesChecker.check(YamlConfigurationLoader.java:188)
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:119)
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:95)
	at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135)
	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:543)
	at akka.persistence.cassandra.testkit.CassandraLauncher$.startEmbedded(CassandraLauncher.scala:141)
	at akka.persistence.cassandra.testkit.CassandraLauncher$.main(CassandraLauncher.scala:63)
	at akka.persistence.cassandra.testkit.CassandraLauncher.main(CassandraLauncher.scala)
Exception in thread "main" java.lang.RuntimeException: Exception encountered during startup
	at org.apache.cassandra.service.CassandraDaemon.exitOrFail(CassandraDaemon.java:705)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:598)
	at akka.persistence.cassandra.testkit.CassandraLauncher$.startEmbedded(CassandraLauncher.scala:141)
	at akka.persistence.cassandra.testkit.CassandraLauncher$.main(CassandraLauncher.scala:63)
	at akka.persistence.cassandra.testkit.CassandraLauncher.main(CassandraLauncher.scala)
Caused by: org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml. Please remove properties [cdc_raw_directory] from your cassandra.yaml
	at org.apache.cassandra.config.YamlConfigurationLoader$MissingPropertiesChecker.check(YamlConfigurationLoader.java:188)
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:119)
	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:95)
	at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:135)
	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:119)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:543)
	... 3 more
[info] HelloscalasbtServiceSpec:
[info] com.example.helloscalasbt.impl.HelloscalasbtServiceSpec *** ABORTED ***
[info]   java.lang.RuntimeException: Cassandra did not start within 45 seconds
[info]   at akka.persistence.cassandra.testkit.CassandraLauncher$.tryConnect$1(CassandraLauncher.scala:245)
[info]   at akka.persistence.cassandra.testkit.CassandraLauncher$.waitForCassandraToListen(CassandraLauncher.scala:249)
[info]   at akka.persistence.cassandra.testkit.CassandraLauncher$.startForked(CassandraLauncher.scala:178)
[info]   at akka.persistence.cassandra.testkit.CassandraLauncher$.start(CassandraLauncher.scala:102)
[info]   at com.lightbend.lagom.scaladsl.testkit.ServiceTest$.startServer(ServiceTest.scala:192)
[info]   at com.example.helloscalasbt.impl.HelloscalasbtServiceSpec.<init>(HelloscalasbtServiceSpec.scala:13)
[info]   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[info]   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[info]   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[info]   at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
[info]   ...
[info]   Cause: java.net.ConnectException: Connection refused (Connection refused)
[info]   at java.net.PlainSocketImpl.socketConnect(Native Method)
[info]   at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
[info]   at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
[info]   at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
[info]   at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[info]   at java.net.Socket.connect(Socket.java:589)
[info]   at java.net.Socket.connect(Socket.java:538)
[info]   at java.net.Socket.<init>(Socket.java:434)
[info]   at java.net.Socket.<init>(Socket.java:211)
[info]   at akka.persistence.cassandra.testkit.CassandraLauncher$.tryConnect$1(CassandraLauncher.scala:238)
[info]   ...
[info] Run completed in 48 seconds, 54 milliseconds.
[info] Total number of tests run: 2
[info] Suites: completed 1, aborted 1
[info] Tests: succeeded 2, failed 0, canceled 0, ignored 0, pending 0
[info] *** 1 SUITE ABORTED ***
[error] Error during tests:
[error] 	com.example.helloscalasbt.impl.HelloscalasbtServiceSpec
[error] (hello-scala-sbt-impl/test:test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 59 s, completed 09/05/2017 5:25:59 PM

As I mentioned above, this could be influenced by classpath ordering, which might be affected by me having enabled the sbt coursier plugin globally.

In fact, when I disable it, I do get a passing test.

In any case, if we can avoid having this depend on classpath ordering, I think we should.

ignasi35 pushed a commit that referenced this issue May 10, 2017
* Use a non-conflicting Cassandra config file name

Fixes #723

* Remove reference to DefaultTestConfigResource
ignasi35 pushed a commit that referenced this issue May 10, 2017
* Use a non-conflicting Cassandra config file name

Fixes #723

* Remove reference to DefaultTestConfigResource
@lejoow
Copy link

lejoow commented May 16, 2017

Ah, I am actually getting hit by this issue at the moment. I am on 1.3.3.

I believe this issue will be addressed on the 1.3.4?

Thanks!

@ignasi35
Copy link
Contributor

Hi @lejoow, we've worked a solution that should get this sorted out, yes.

@mcamou
Copy link

mcamou commented May 16, 2017

Since the fix will only be available in 1.3.4+, I found a workaround for 1.3.3. Copy test-embedded-cassandra.yaml from com.lightbend.lagom:lagom-persistence-cassandra-core into src/main/resources for every service implementation. The issue is that there are 2 copies of that file: one from com.lightbend.lagom:lagom-persistence-cassandra-core and the second from com.typesafe.akka:akka.persistence.cassandra. The problem arises when the JVM picks up the second one instead of the first one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants