OpenSearch/modules
Tim Brooks b22bbf94da Avoid blocking on channel close on network thread (#25521)
Currently when we close a channel in Netty4Utils.closeChannels we
block until the closing is complete. This introduces the possibility
that a network selector thread will block while waiting until a
separate network selector thread closes a channel.

For instance: T1 closes channel 1 (which is assigned to a T1 selector).
Channel 1's close listener executes the closing of the node. That
means that T1 now tries to close channel 2. However, channel 2 is
assigned to a selector that is running on T2. T1 now must wait until T2
closes that channel at some point in the future.

This commit addresses this by adding a boolean to closeChannels
indicating if we should block on close. We only set this boolean to true
if we are closing down the server channels at shutdown. This call is
never made from a network thread. When we call the closeChannels method
with that boolean set to false, we do not block on close.
2017-07-10 10:50:51 -05:00
..
aggs-matrix-stats Remove QueryParseContext (#25486) 2017-07-03 17:30:40 +02:00
analysis-common Move more token filters to analysis-common module 2017-07-07 10:02:52 +02:00
ingest-common fix sort and string processor tests around targetField (#25358) 2017-06-22 13:14:18 -07:00
lang-expression Upgrade to lucene-7.0.0-snapshot-ad2cb77. (#25349) 2017-06-22 12:35:33 +02:00
lang-mustache Remove QueryParseContext (#25486) 2017-07-03 17:30:40 +02:00
lang-painless Update Painless to Allow Augmentation from Any Class (#25360) 2017-06-22 12:16:46 -07:00
parent-join Index ids in binary form. (#25352) 2017-07-07 14:22:47 +02:00
percolator Bump version to 6.0.0-beta1 2017-07-09 18:12:50 -04:00
reindex Adds check for negative search request size (#25397) 2017-07-04 10:51:38 +01:00
repository-url Tests: Change rest test extension from .yaml to .yml (#24659) 2017-05-16 17:24:35 -07:00
transport-netty4 Avoid blocking on channel close on network thread (#25521) 2017-07-10 10:50:51 -05:00
build.gradle Build: Change `gradle run` to use zip distribution (#21001) 2016-10-18 11:48:58 -07:00