java binding: marker to detect threads used by the Operator/AsyncOperator #5077
-
I use blocking Operator via Since creation of threads is not controlled by users (I found only API to provide int number of cores), I wonder if there is a way to somehow mark threads created by OpenDAL, for example assign names with pre-defined prefix. Context: We use I always got report about leaked daemon threads after test passes. I think it's a false positive alert and would like to filter OpenDAL threads like https://github.com/crate/crate/blob/master/server/src/testFixtures/java/io/crate/lucene/CrateLuceneTestCase.java#L173 Thread names look like Observation: thread leak report always shows 12 threads and 12 is the number of processors on my machine, Even though I use
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi, I believe all thread created by tokio should default to |
Beta Was this translation helpful? Give feedback.
-
Customized thread prefix is possible. Let me take a look. Maybe you can open an issue for it? Looks like a new feature proposal. |
Beta Was this translation helpful? Give feedback.
-
Work out a way: Will send a PR soon. |
Beta Was this translation helpful? Give feedback.
Customized thread prefix is possible. Let me take a look. Maybe you can open an issue for it? Looks like a new feature proposal.