Bug 1014037

Summary: [QA] (6.4.0) Clean shutdown of server with deployed JMS bridge hangs
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Miroslav Novak <mnovak>
Component: HornetQAssignee: Andy Taylor <ataylor>
Status: CLOSED CURRENTRELEASE QA Contact: Miroslav Novak <mnovak>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: ataylor, chaowan, csuconic, jmesnil, kkhan, msvehla
Target Milestone: DR1   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1132468 (view as bug list) Environment:
Last Closed: 2019-08-02 07:30:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1132168, 1132468    
Attachments:
Description Flags
threaddump
none
reproducer-jms-bridge.zip none

Description Miroslav Novak 2013-10-01 09:55:39 UTC
Description of problem:

Test scenario:
1. Start two EAP 6.x servers - "source" server with deployed queue InQueue and "target" server with deployed queue OutQueue
2. Send 1000 large messages to InQueue
3. Deploy JMS bridge to "source" server which resends messages from InQueue to OutQueue (to "target" server)
4. During processing of messages from InQueue cleanly shutdown "target" server
5. Try to cleanly shutdown "source" server

Result:
Clean shutdown of "source" server hangs. Thread dump attached. 

Expected result:
"source" server should shutdown.

Comment 1 Miroslav Novak 2013-10-01 09:57:35 UTC
Created attachment 805812 [details]
threaddump

Comment 2 Clebert Suconic 2013-10-01 14:37:40 UTC
I've asked Andy Taylor to take a look on this.

It was just open.. I think it would take us at least 1 week to resolve it. We can do a release if there's space on the release schedule. We will communicate accordingly within a week.

Comment 3 Miroslav Novak 2014-07-07 08:33:49 UTC
This is still issue in EAP 6.3.0.ER9 (HQ 2.3.20).

Comment 4 Miroslav Novak 2014-07-18 09:06:58 UTC
Attaching reproducer - reproducer-jms-bridge.zip:

1. Download and unzip reproducer-jms-bridge.zip
2. run "sh prepare.sh"
3. Start target server (server1) - "sh start-server1.sh 127.0.0.1"
4. start source server wiht JMS bridge (which is server3)  - "sh start-server3.sh other_ip"
5. Start procucer sending messages to server 3 - "sh start-producer.sh 192.168.40.3 jms/queue/InQueue 1000"
6. When proucer is sending messages cleanly shutdown (ctrl-c) server1
7. Now cleanly shutdown (ctrl-c) server3 -> server hangs

Comment 5 Miroslav Novak 2014-07-18 09:08:12 UTC
Created attachment 919001 [details]
reproducer-jms-bridge.zip

Comment 6 Andy Taylor 2014-07-18 14:04:43 UTC
Im working on this

Comment 7 Andy Taylor 2014-07-22 12:47:59 UTC
fixed in https://github.com/hornetq/hornetq/pull/1720

Comment 8 Kabir Khan 2014-08-24 10:59:15 UTC
Appears to be fixed by HQ upgrade to 2.3.21 https://bugzilla.redhat.com/show_bug.cgi?id=1132168. Setting to MODIFIED.

Comment 9 Miroslav Novak 2014-09-17 15:01:22 UTC
This problem appears to be fix. I can't simulate it any-more.

Verified in EAP 6.4.0.DR1.