sbp commented on issue #299: URL: https://github.com/apache/tooling-trusted-releases/issues/299#issuecomment-3563772441
There are many potential solutions. For example, we could: * Open one session per request, and keep it open until it returns. * Configure models to be read only. * Use continuation passing style instead of `with` blocks. * Require that no `atr.models.sql` types are passed to writer methods. * Use advanced AST, symbolic, or type driven linting. The underlying problem is that attached objects leak from `with` blocks and are no longer attached. This very closely resembles use after free. I consider continuation passing style to be the only solution that really solves the underlying problem, but it's also the most cumbersome. Since some of these solutions are more comprehensive than others, we could also combine multiple ones to make different tradeoffs. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
