jduo opened a new pull request, #38739:
URL: https://github.com/apache/arrow/pull/38739

   ### Rationale for this change
   The cache of SqlInfo properties that ArrowDatabaseMetaData maintains isn't 
populated in a thread-safe way. This can cause JDBC applications trying to 
retrieve several properties from DatabaseMetaData to encounter missing 
properties when they shouldn't.
   
   ### What changes are included in this PR?
   - Changed the checking for the cache being populated to be based on an 
AtomicBoolean marking that the cache is fully populated, rather than just 
checking if the cache is empty.
   - Avoid having multiple threads call getSqlInfo() if they see that the cache 
is empty concurrently.
   
   ### Are these changes tested?
   Verified existing unit tests.
   
   ### Are there any user-facing changes?
   No.


-- 
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