zhztheplayer commented on PR #13728: URL: https://github.com/apache/gluten/pull/13728#issuecomment-7140049184
> Recently, HDFS has a fix to address this problem: [HDFS-16021](https://issues.apache.org/jira/browse/HDFS-16021) makes libhdfs detach only threads it attached. If that fix is available, we may not need such workaround. @guowangy This sounds super helpful. Once we get sure that 3rd doesn't detach, we can remove the workarounds and move the attach / detach code to a [thread manager](https://github.com/apache/gluten/blob/main/cpp/core/threads/ThreadManager.cc). Drawback is we need to attach every thread but it shouldn't visibly impact perf I guess. Benefit is our code can make the whole process assertive: attach once, detach once, assert attached at runtime. @philo-he would love to hear your thoughts on this. -- 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]
