jduo opened a new issue, #38737:
URL: https://github.com/apache/arrow/issues/38737

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   The cache of SqlInfo properties in the JDBC driver isn't thread-safe.
   
https://github.com/apache/arrow/blob/563078fb70f7d23e716a2c1c79e96f7409c02f3f/java/flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/ArrowDatabaseMetadata.java#L732
   
   If one thread starts populating the cache, and another thread requests a 
property while the cache is still populating, the second thread will see the 
cache is non-empty and think the cache has been fully populated when it might 
just have started populating. This will result in null properties values being 
retrieved and NPE errors.
   
   ### Component(s)
   
   FlightRPC, Java


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to