influxdb/influxdb_iox/tests/jdbc_client
Martin Hilton f87f4c1869
fix: racy JDBC tests (#7678)
* fix: racing JDBC tests

The JDBC tests have been flaky since adding additional tests. Use
the makefile to build the client to avoid the clients racing.

* chore: pre-download JDBC drive in integration test

* fix: remove stray lockfile
2023-04-27 09:07:06 +00:00
..
.gitignore feat: JDBC integration tests with FlightSQL (#6693) 2023-01-25 22:21:18 +00:00
Main.java feat(service_grpc_flight): JDBC compatible Handshake (#7660) 2023-04-26 13:52:49 +00:00
Makefile fix: racy JDBC tests (#7678) 2023-04-27 09:07:06 +00:00
README.md feat(flightsql): support `database`, `bucket`, and `bucket-name` as grpc header names (#7511) 2023-04-12 16:58:44 +00:00
flight-sql-jdbc-driver-10.0.0.jar.sha feat: JDBC integration tests with FlightSQL (#6693) 2023-01-25 22:21:18 +00:00
jdbc_client fix: racy JDBC tests (#7678) 2023-04-27 09:07:06 +00:00

README.md

This directory contains a JDBC client program that is used for testing InfluxBD IOx using the FlightSQL JDBC driver

Local Execution:

Run IOx

influxdb_iox -v

Run the JDBC test

To run the JDBC test program, specify the target database in the JDBC URL:

# run the jdbc client driver program, downloading the JDBC driver if needed
./jdbc_client "jdbc:arrow-flight-sql://localhost:8082?useEncryption=false&database=26f7e5a4b7be365b_917b97a92e883afc" query 'select * from cpu'

Cleanup:

Clean up any intermediate files (like JDBC driver)

make clean