Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8F983200CFC for ; Thu, 28 Sep 2017 15:07:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8DE7D1609CD; Thu, 28 Sep 2017 13:07:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D3CEE1609C2 for ; Thu, 28 Sep 2017 15:07:52 +0200 (CEST) Received: (qmail 62484 invoked by uid 500); 28 Sep 2017 13:07:51 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 62472 invoked by uid 99); 28 Sep 2017 13:07:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2017 13:07:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 102A21811DA for ; Thu, 28 Sep 2017 13:07:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.045 X-Spam-Level: **** X-Spam-Status: No, score=4.045 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id utQ7TEes3C2a for ; Thu, 28 Sep 2017 13:07:44 +0000 (UTC) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 89F295F6C2 for ; Thu, 28 Sep 2017 13:07:44 +0000 (UTC) Received: by mail-it0-f47.google.com with SMTP id d192so1307054itd.1 for ; Thu, 28 Sep 2017 06:07:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=WLX948T+JkQtVRb60NDQdialLepJTscvfZZlI0UQWCQ=; b=iGlFOX8TRVdTATOzhCF6zjZ38B/5aP6l7OOkkPlP99+xBAJw4WnfQ0N5fIGjVpWpfK 5yZ3Idq5Alk/KDUW2bFAvHk5AJSHThxIcsqLLhOPrx5Rje5eWXhnMysHZOvMVJQMNN1U 4alISnOkGxuP7IOCAm4f8ShA0XVsuAxmBhAV5GSflzKq8A/P4eaNItT43bP2Xb8PZITF fiyPp2JayBxuLsCBHByOl+Au3o1BpTPmxe73qT2LRQ2/us4mlBEPRTU5bIDvC034v8mo S4yJvakUjc+QmpHuEA8i8boltu35zSEHKuJFswhBUMP1DRW9G7mgsrWlmXWDifByuxq6 dVjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=WLX948T+JkQtVRb60NDQdialLepJTscvfZZlI0UQWCQ=; b=iVWoXlJV4qXdSmtVwW6OF5osaj6Q9N0yMSfFO3/zVRDjccdR4e3VRNOXXcV0LPTBGd MWYpSTgeHTQFggphxT9Esz1jjhoBQGYacGgrn21IvmTfTevSCMzn/XJ3QFSel6fHLojF dluLJp2TafqnHsd4p8qNBZ4y8Pa+uMxrjWQID41ZdlYOv8whxOaOXeCCIdt5iRTKb3Lb 8633ZOtQoqnm1XtF8W4hmXZHXWuLAGhuEns7wSHRC/peoxn7OdOhc38vA1Z97N7RK4XZ biQ/VaqLa9oRfrNEShiU88kkLx65gCLGU32rqzZG/ja43V1OwX5jkKJwAJQnkbzbSU6U LkrA== X-Gm-Message-State: AMCzsaWTXN8Fbs8oHnlr3jth5OJap90IBnRlrzpVojVNP2rJGlTKJ5sM QLs0hIZ/Q3LKdj80lyZnoBuqYbXi505MeTZU0RI= X-Google-Smtp-Source: AOwi7QBG4XhGq2PdTKZALODfZlf4XISrjaZ9GshcP8QnV1ZmbRycxTqO4HpKP5V+OfpVupHoi0KaQj1Q3DHfYEP6VHQ= X-Received: by 10.36.110.20 with SMTP id w20mr1423492itc.79.1506604063540; Thu, 28 Sep 2017 06:07:43 -0700 (PDT) MIME-Version: 1.0 Sender: tbain98@gmail.com Received: by 10.2.136.195 with HTTP; Thu, 28 Sep 2017 06:07:40 -0700 (PDT) Received: by 10.2.136.195 with HTTP; Thu, 28 Sep 2017 06:07:40 -0700 (PDT) In-Reply-To: <1506597254294-0.post@n4.nabble.com> References: <1505744755822-0.post@n4.nabble.com> <1a02cefb-df45-4a43-d601-2eb844a8eb89@gmail.com> <1505799291832-0.post@n4.nabble.com> <1505997867450-0.post@n4.nabble.com> <1506575107375-0.post@n4.nabble.com> <1506597254294-0.post@n4.nabble.com> From: Tim Bain Date: Thu, 28 Sep 2017 07:07:40 -0600 X-Google-Sender-Auth: phvtSkjMmsvtWvTnTU8XUAQIatk Message-ID: Subject: Re: "allowLinkStealing" as a client configuration To: ActiveMQ Users Content-Type: multipart/alternative; boundary="001a114ab5d606495e055a3f9855" archived-at: Thu, 28 Sep 2017 13:07:53 -0000 --001a114ab5d606495e055a3f9855 Content-Type: text/plain; charset="UTF-8" Hmmm, interesting. That means one of two things: 1. Following the broker restart, multiple client processes/threads are trying to connect using the same client ID. For a given client ID, the first process/thread to attempt the connection will succeed, and the later ones will fail. I would expect that enabling link stealing would result in either a stalemate where all threads keep detecting that the link was stolen from them and trying to steal it back, or a situation where the last process/thread steals the link and keeps it. I expect the former, but have never used link stealing so I'm not sure if that's actually how it works. 2. Following a broker restart, only one process/thread is using a given client ID, but before it even connects the broker believes that a client is already connected for that client ID and rejects all connections for that client ID, which would be a bug. Enabling link stealing would result in normal operation. Based on what you've previously observed, can you tell which of the two situations is actually occurring? I'd be looking for something like "I examined all the connections in the MBeans tab of JConsole when this problem was occurring, and I determined that none of them matched the client ID that was getting rejected" to show conclusively that it was situation #2 rather than #1, rather than something like "I'm sure I don't have two process/threads for the same client ID." If it's #2, is your organization open to attaching a debugger to the production broker the next time this occurs, to allow you to step through the broker initialization code to help us figure out what's going on? Tim On Sep 28, 2017 5:14 AM, "khandelwalanuj" wrote: > > Does restarting the broker without enabling link stealing also let you > work > > around the problem? > Unfortunately No. Restarting broker also doesn't solve the problem. Only > when you restart it with link stealing resolves the issue. > > Thanks, > Anuj > > > > -- > Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User- > f2341805.html > --001a114ab5d606495e055a3f9855--