From dev-return-67083-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Thu Sep 6 00:18:44 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id C69F4180654 for ; Thu, 6 Sep 2018 00:18:43 +0200 (CEST) Received: (qmail 41547 invoked by uid 500); 5 Sep 2018 22:18:37 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 41533 invoked by uid 99); 5 Sep 2018 22:18:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2018 22:18:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BF4001A1473 for ; Wed, 5 Sep 2018 22:18:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.111 X-Spam-Level: X-Spam-Status: No, score=-0.111 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 4EKqSL_cf0yg for ; Wed, 5 Sep 2018 22:18:36 +0000 (UTC) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 35EC95F125 for ; Wed, 5 Sep 2018 22:18:35 +0000 (UTC) Received: by mail-pg1-f177.google.com with SMTP id s15-v6so4110834pgv.8 for ; Wed, 05 Sep 2018 15:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=013ReQtLkZhyw7ignygpwZldQxu7AnwoTX1mL7n4GpY=; b=clcxho/m3D5sLh8oTsk4J/fDsBIxWsSAnFmI14qnGFi6F043gtD7XId4CsRoXthAOD 1HWEZD2xf5HiKeXwfzW6krBdi1Ng8E+QpMcTrDqYhgv7gWfISmtUHtPBXJuteRtXh7nw wd/VFolpG32TLcHudiekEnG+WUvkkJVV6j6QmWXfI/n/AxS5YVwqzIpt5+Wvf4JZsbw4 tO9z82LdworGmxv0xbe8qsMk/QAnQGNc1QRgLk94+4Sdn4nofXiPPhpqe0mVyS7Hu0yT Bxpaskvd/S29C0rnlPsy8/unW5yHIvT1yB6JX0HnPT/t8Q6WCqAgPD55PM2D9Gi7MjqM rvaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=013ReQtLkZhyw7ignygpwZldQxu7AnwoTX1mL7n4GpY=; b=F4CDHS95ER9lxzO4K6SWTpGKHd+i9T8s9NdtLe9ifm0QMPPrbDSfCsHicaKMmkp55x k4ZyMShlKUDsvJZxJGy8+XpIU/GZWA2EkgrXL4rKLIRWkM3kEic2hFqM2cBqODCQ+0Sa 7Ssm1flo/lQI4nBPgeOo6zUkHVgUxEuqmVs1B7UFqQJ3rKt4h0XcES7d59OtP1Lxu4mI j9p3ZVMqZoOoEyA/EKkQVN4URB47nrNM6TspWbTYit5nO2u5FnA5pzgKlFKm63k7vaUY zBtHoD89ywT/BJSIIFuA06jqDkEazmf5rMRFU3DbzsHo6A985SQkucJGMKdHJ1R2jc3/ gd8g== X-Gm-Message-State: APzg51Dl7+ODOs3wgq8vMUexal2Q/X3FMfdVVWDtcy53lR0fT0/Na07g H/3gFxIV7mavalzCz9c5NpYQhw3vbeMAAYbeOlcp3hNV X-Google-Smtp-Source: ANB0VdYaokNRzFyz92WJMBlgGUMN65xv745pHQiCvBTEZoC5E2J9pUEdG+Xlkf0zYiQ8yrbe2djEFDQuAd20OGHf3k8= X-Received: by 2002:a63:e811:: with SMTP id s17-v6mr38770032pgh.176.1536185907981; Wed, 05 Sep 2018 15:18:27 -0700 (PDT) MIME-Version: 1.0 From: Clebert Suconic Date: Wed, 5 Sep 2018 18:18:16 -0400 Message-ID: Subject: [DISCUSS] Network cable disconnected To: dev@activemq.apache.org Content-Type: text/plain; charset="UTF-8" TL;DR: Should we make use of Netty_CONNECTION_TIMEOUT by default, as the connection would block forever if the IP on the live server is gone. Long version: I'm kind of proud of this little test I wrote, which I have committed here: https://github.com/apache/activemq-artemis/commit/05ce7c6ecd1c70fc571764af9027767f04538ccd The test will use sudo to create and remove networks. Along the test the IP will disappear. The test will validate if you have authorization to sudo, and if you don't it will tell you what to do in order to run it. And it will be ignored if you don't have the required configuration. However, there's an issue I'm not sure I should define it as a bug or just an user configuration. hence the discuss here: If the network disappears, failover will not kick in unless you configure NETTY_CONNECTION_TIMEOUT. As the TCP would be blocking waiting forever. I'm inclined to ellect a connection_timeout by default (say 2 seconds) if none is selected. But I wanted to discuss and get some ideas around. Ideas?