jduo commented on issue #38253: URL: https://github.com/apache/arrow/issues/38253#issuecomment-1813218246
I can't reproduce this locally @YuriyGavrilov . However I do see a multi-threading bug in the code that populates getSqlInfo() properties: https://github.com/apache/arrow/blob/563078fb70f7d23e716a2c1c79e96f7409c02f3f/java/flight/flight-sql-jdbc-core/src/main/java/org/apache/arrow/driver/jdbc/ArrowDatabaseMetadata.java#L732 The checking of if this cache is populated isn't thread-safe. If one thread starts populating the cache, and another thread tries to access a property, the second thread will see the cache is non-empty and think _all_ properties have been cached rather than waiting for the rest of the cache to fill. -- 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]
