From issues-return-6145-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Wed Dec 4 20:53:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E9DCD180656 for ; Wed, 4 Dec 2019 21:53:01 +0100 (CET) Received: (qmail 93008 invoked by uid 500); 4 Dec 2019 20:53:01 -0000 Mailing-List: contact issues-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list issues@lucene.apache.org Received: (qmail 92995 invoked by uid 99); 4 Dec 2019 20:53:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Dec 2019 20:53:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9B3B6E027F for ; Wed, 4 Dec 2019 20:53:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 1691B7802BF for ; Wed, 4 Dec 2019 20:53:00 +0000 (UTC) Date: Wed, 4 Dec 2019 20:53:00 +0000 (UTC) From: "Andrzej Bialecki (Jira)" To: issues@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SOLR-13975) ConcurrentUpdateSolrClient connection stall prevention MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-13975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrzej Bialecki updated SOLR-13975: ------------------------------------ Attachment: SOLR-13975.patch > ConcurrentUpdateSolrClient connection stall prevention > ------------------------------------------------------ > > Key: SOLR-13975 > URL: https://issues.apache.org/jira/browse/SOLR-13975 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Affects Versions: 8.3, 8.4 > Reporter: Andrzej Bialecki > Assignee: Andrzej Bialecki > Priority: Major > Fix For: 8.4 > > Attachments: SOLR-13975.patch, SOLR-13975.patch > > > When a Solr process, which hosts replicas of a collection, is suspended - that is, the OS process is suspended using eg. {{kill -STOP }} - a long stall may occur in CUSC until a socket timeout is reached. > During this stall updates from the leader are not forwarded to any replica, even though other replicas are still active and can receive updates. If the sender uses CUSC (eg. via {{CloudSolrClient}}) then it becomes stalled because the leader stops processing updates, too. > This situation is caused by several issues: > * when a process is suspended its sockets remain open - so there is no immediate disconnect as if the process died, but the process becomes unresponsive. Eventually, a socket timeout will be reached (distribUpdateSoTimeout) - but in the default version of {{solr.xml}} this is set to 10 min. During this time all indexing to that shard will be stuck. > * there are several infinite {{for}} loops in CUSC (eg. in {{blockUntilFinished}}, {{waitForEmptyQueue}} and even in {{request}}), which rely either on the relatively quick success of the call or an exception to be thrown. However, in this situation neither happens quickly - the call is stuck waiting for the remote end until soTimeout expires. > This issue proposes to add a stall prevention logic, which would break these infinite loops long before the socket timeout occurs based on the progress of the queue processing. > This is a follow-up to SOLR-13896. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org For additional commands, e-mail: issues-help@lucene.apache.org