OpenSearch/x-pack/plugin/sql/sql-client
Bogdan Pintea ec4a6aa1c6 SQL: JDBC: fix temporary directory locked test errors in Windows (#56917)
* Fix temp dir locked errors

The tests involving a temporary directory (containing the JDBC JAR) fail
on Windows because they can't be deleted, due to still being in use.
This commit forces a premature closing of the JAR file, which mitigates
the failure by giving the JVM more time to collect any open FDs.
(Calling the System.gc() in the tests is another working alternative
fix.)

The stream-based JAR access is taken care by disabling the cache usage

(cherry picked from commit 04f97333a015404a68e8f19223f33aadeb396687)
2020-05-20 19:46:57 +02:00
..
licenses Upgrade to Jackson 2.10.4 (#56188) 2020-05-06 17:20:23 -04:00
src SQL: JDBC: fix temporary directory locked test errors in Windows (#56917) 2020-05-20 19:46:57 +02:00
build.gradle Use task avoidance with forbidden apis (#55034) 2020-04-15 13:27:53 -07:00