snazy opened a new issue, #763:
URL: https://github.com/apache/polaris/issues/763

   ### Describe the bug
   
   `PolarisEclipseLinkMetaStoreSessionImpl` uses a `ThreadLocal` containing a 
`EntityManager`. It is set and removed in all these `runInTransaction` 
functions.
   
   Calling functions like `lookupEntity` directly on `PolarisMetaStoreSession` 
will result in a `NullPointerException`.
   `PolarisMetaStoreSession` does not require calling `lookupEntity` via a 
`runInTransaction`, but instead [defines 
here](https://github.com/apache/polaris/blob/88994f495a844f420187b9404511504601081a1a/polaris-core/src/main/java/org/apache/polaris/core/persistence/PolarisMetaStoreSession.java#L45-L46):
 `The goal is to make it really easy to back this using databases like Postgres 
or simpler KV store.` - this is not the case, because it is implicitly required 
to use `runInTransaction` - but "simpler" KV stores do _*not*_ have 
transactions as in relational databases.
   
   ### To Reproduce
   
   _No response_
   
   ### Actual Behavior
   
   _No response_
   
   ### Expected Behavior
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   _No response_


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