nesscomputing / components-ness-pg Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Closeables.closeQuietly(Closeable)
has been removed in Guava 16, so this fails now:
java.lang.NoSuchMethodError: com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
at com.nesscomputing.db.postgres.embedded.EmbeddedPostgreSQL.close(EmbeddedPostgreSQL.java:280)
at com.nesscomputing.db.postgres.embedded.EmbeddedPostgreSQLRule.after(EmbeddedPostgreSQLRule.java:48)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:50)
at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Since downstream projects like Presto use this when building in Travis CI, it would be great to have this also use Travis CI to verify compatibility (which is currently broken). Plus Travis CI is pretty awesome :)
Thanks for the project! One of my colleagues heard about it from a conference and we're just trying it out and it's working great.
There is one small problem where it seems to be necessary to add symlinks for /lib/x86_64-linux-gnu/libssl.so.1.0.0
and /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
on Debian-flavoured Linux's to libssl.so.10
and libcrypto.so.10
respectively. Wondering if there's an easy fix for this... For example there are a few other so
files in the unpacked lib
folder, would it be possible to somehow tar them up as well?
When multiple embedded postgreSQL tests are run in parallel, they seem to delete each other's folders when they close.
When I kill a test run without giving the junit rule a chance to proper shutdown PG, I can't rerun the test without first deleting the PG instance's temporary folder:
09:45:22.118 [main] INFO c.n.d.p.embedded.EmbeddedPostgreSQL - Detected a Darwin x86_64 system
09:45:22.270 [main] INFO c.n.d.p.embedded.EmbeddedPostgreSQL - Postgres binaries at /var/folders/7v/fj0xwdn97qn1qq48y8dl7b_w0000gn/T/embedded-pg/PG-04fcf92a7d0b707185e4a38efeb68442
09:45:22.340 [main] INFO c.n.d.p.embedded.EmbeddedPostgreSQL - Found stale data directory /var/folders/7v/fj0xwdn97qn1qq48y8dl7b_w0000gn/T/embedded-pg/6c0476ac-f3d2-4566-bd58-d0886c6fefb7
java.lang.IllegalStateException: Process [/var/folders/7v/fj0xwdn97qn1qq48y8dl7b_w0000gn/T/embedded-pg/PG-04fcf92a7d0b707185e4a38efeb68442/bin/pg_ctl, -D, /var/folders/7v/fj0xwdn97qn1qq48y8dl7b_w0000gn/T/embedded-pg/6c0476ac-f3d2-4566-bd58-d0886c6fefb7, stop, -m, fast, -t, 5, -w] failed
pg_ctl: could not send stop signal (PID: 72218): No such process
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.