Contributing

Please feel free to contribute to Akka Persistence Spanner and the documentation by reporting issues you identify, or by suggesting changes to the code. Please refer to our contributing instructions to learn how it can be done.

We want Akka to strive in a welcoming and open atmosphere and expect all contributors to respect our code of conduct.

Running the tests

The tests expect a locally running Spanner Emulator.

It can be started with the docker-comopse file in the docker folder:

version: '2'
services:
  spanner:
    image: gcr.io/cloud-spanner-emulator/emulator
    ports:
      - "9010:9010"
      - "9020:9020"

Running tests against Google Spanner

To run the tests against Spanner set the JVM property akka.spanner.real-spanner to “true”.

The default configuration uses the project akka-team and the instance akka. These can be overridden in SpannerSpec.scala for all tests.

akka.persistence.spanner {
  database = ${databaseName.toLowerCase}
  instance = akka
  project = akka-team
  with-meta = $replicatedMetaEnabled
}
Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.