Presto: Use dockerized Accumulo in tests

Created on 17 May 2019  路  6Comments  路  Source: prestosql/presto

We can replace all of the code in AccumuloQueryRunner that starts Accumulo in the same JVM with a Docker instance using DockerContainer. See TestingSqlServer or DockerizedMySqlServer for an example.

good first issue maintenance test

Most helpful comment

I think the developer experience is the same, assuming you have Docker installed. The only usefulness of having it in the same JVM is if you want to debug or otherwise interact with the code. But we treat it as a black box external service, so I don't think there is any value there.

The advantages of this are

  • Possibly more realistic test environment
  • Allows testing against multiple versions
  • Removes some dependencies and simplifies the code

To me, this approach seems a lot cleaner.

All 6 comments

Isn't a better developer experience having everything in single JVM? Are you concern about MiniAccumuloCluster that is mocking to much?

I think the developer experience is the same, assuming you have Docker installed. The only usefulness of having it in the same JVM is if you want to debug or otherwise interact with the code. But we treat it as a black box external service, so I don't think there is any value there.

The advantages of this are

  • Possibly more realistic test environment
  • Allows testing against multiple versions
  • Removes some dependencies and simplifies the code

To me, this approach seems a lot cleaner.

We should dockerize Cassandra and test with multiple versions too, especially now that we have version discovery (https://github.com/prestosql/presto/pull/596)

(https://github.com/prestosql/presto/issues/2182)

@adamjshook is there a recommendable dockerized Accumulo we could use here?

@findepi I made one at https://github.com/prestosql/docker-images/pull/74 and we have an open PR to use it https://github.com/prestosql/presto/pull/5598 (currently using a different image but will update once docker-images is published). That should take care of this issue.

Closed by #5598

Was this page helpful?
0 / 5 - 0 ratings

Related issues

findepi picture findepi  路  4Comments

byungnam picture byungnam  路  4Comments

findepi picture findepi  路  4Comments

anismiles picture anismiles  路  3Comments

JamesRTaylor picture JamesRTaylor  路  5Comments