Conversation
|
I assume this is still WIP? |
|
@ibauersachs yes, we are adding a performance test case and |
|
@ibauersachs When testing |
8caac86 to
7cb9151
Compare
|
Please use the 3.4.2-SNAPSHOT, it's fixed there. The |
|
@ibauersachs great, I'll try that, thank you! |
|
Note that the performance/deadlock test initially posted in dnsjava/dnsjava#211 isn't reliably failing. My dev-machine has an 8-core CPU and I had to lower the timeout to << 5s to reproduce the problem. If you use |
|
@ibauersachs yes that's a good point, I'm thinking that at this point we might not need |
|
It might still be useful to keep that test, but maybe add |
|
@ibauersachs Thank you! We will look into using |
|
@ibauersachs thank you for reviewing! |
|
@ibauersachs do you plan to make a release of 3.4.2 in |
|
I don't have a date in mind yet, but most likely not before next week. |
|
@ibauersachs Is it possible for you to make a release early this week? :) We think we can merge this PR but would like to avoid using the snapshot version. |
|
@fdfzcq Sorry, no. There's still a very related issue open in the DoH resolver that needs fixing (locking the initial request and limiting the number of parallel requests blocks the async threadpool). I hope I can finish it this weekend. Did you do enough tests with the snapshot in the meantime so we can be confident the changes really work as expected and you don't need an immediate 3.4.3 follow-up? |
|
@ibauersachs Thank you for the information, and no worries we can wait for the next release. We've tested resolving using custom executor on a prod service that had issues and can confirm it works for us. |
erikjoh
left a comment
There was a problem hiding this comment.
Just some final nit-picks
Add new methods while deprecating old ones to keep backwards compatibility. Add custom executor to DnsSrvResolvers.java Use dnsjava version 3.4.2
0003102 to
7558328
Compare
Original PR by @ibauersachs : #46
This aims to mitigate performance issue caused by lookups using common forkjoin pool as described in dnsjava/dnsjava#211 .
In
dnsjavaversion3.4.2-SNAPSHOT@ibauersachs has added support for using custom executors in resolvers dnsjava/dnsjava@dbda661Changes:
LookupSessionDnsSrvResolverbuilderNext steps from Spotify side are:
LookupFactoryclass.