activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <>
Subject Re: "allowLinkStealing" as a client configuration
Date Thu, 28 Sep 2017 13:07:40 GMT
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?


On Sep 28, 2017 5:14 AM, "khandelwalanuj" <>

> > 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:
> f2341805.html

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message