You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/05/06 18:20:50 UTC
[GitHub] [solr] magibney commented on pull request #841: SOLR-16046: Thread leak in TestLeaderElectionZkExpiry
magibney commented on PR #841:
URL: https://github.com/apache/solr/pull/841#issuecomment-1119873442
LGTM. I was looking at SOLR-16046 as well and opened #842, which I think should complement this PR nicely.
One thing I found myself wondering, wrt the `killer` thread as it exists on `main` at the moment (and as it has existed since its inception): why is it a separate thread at all?
```java
Thread t = new Thread(() -> doStuff());
t.start();
t.join();
```
... why not just do?:
```java
doStuff();
```
It should execute in the same order, unless there's something "magical" about this being done from a different thread?
--
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: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org