John Sherman has uploaded a new patch set (#4). Change subject: IMPALA-5394: Handle blocked HS2 connections ......................................................................
IMPALA-5394: Handle blocked HS2 connections - TThreadPoolServer calls getTransport() on a client from the Server thread (the thread that does the accepts). - TSaslServerTransport->getTransport() calls TSaslTransport->open() - TSaslServerTransport->open() tries to negotiate SASL which calls read/write - If read/write blocks, the TThreadPoolServer cannot accept connections - Set the underlying TSocket's recvTimeout and sendTimeout before the TSaslServerTransport->open() and reset them to 0 after open() completes. - Added sasl_connect_tcp_timeout_ms flag that defaults to 300000 milliseconds (5 minutes) - Changed the Thrift server type for hs2 connections from ThreadPool to Threaded to take advantage of the AcceptQueueServer implementation. - Add the ability for the TAcceptQueueServer to limit the maximum number of tasks at a time - Removed the previously unenforced thread limit requests from StatestoreService, StatestoreSubscriber, CatalogService. Change-Id: I56a5f3d9cf931cff14eae7f236fea018236a6255 --- M be/src/catalog/catalogd-main.cc M be/src/rpc/TAcceptQueueServer.cpp M be/src/rpc/TAcceptQueueServer.h M be/src/rpc/thrift-server.cc M be/src/rpc/thrift-server.h M be/src/service/impala-server.cc M be/src/statestore/statestore-subscriber.cc M be/src/statestore/statestored-main.cc M be/src/transport/TSaslServerTransport.cpp M common/thrift/metrics.json 10 files changed, 77 insertions(+), 36 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/61/7061/4 -- To view, visit http://gerrit.cloudera.org:8080/7061 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I56a5f3d9cf931cff14eae7f236fea018236a6255 Gerrit-PatchSet: 4 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: John Sherman <j...@arcadiadata.com> Gerrit-Reviewer: Dan Hecht <dhe...@cloudera.com> Gerrit-Reviewer: Henry Robinson <he...@cloudera.com> Gerrit-Reviewer: John Sherman <j...@arcadiadata.com> Gerrit-Reviewer: Matthew Jacobs <m...@cloudera.com> Gerrit-Reviewer: Sailesh Mukil <sail...@cloudera.com>