<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>I'm currently running 2.8.7 in a cluster of 2 disk nodes and 1 ram node with a load balancer.</div>
<span id="OLK_SRC_BODY_SECTION">
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif; ">
<div style="color: rgb(0, 0, 0); ">
<div>We have a dev and a test env pointing at the same rabbit cluster using '/dev' and '/' for vhosts. </div>
<div>In test we have long lived queues (per app) to start simulating our prod env and in dev we spin up auto delete queues(differing queue names based on the appVimId) to avoid the clutter of multiple people testing.</div>
<div>I'm trying to push HA queues out and am running into a start up error. </div>
<div>For /dev it works great, the app spins up the HA queues, finishes the tests and then they auto delete themselves.</div>
<div>When I try pushing it out to our test env I get this error from the rabbit logs:</div>
<div><br>
</div>
<div>connection <0.15043.4>, channel 1 - error:</div>
<div>{amqp_error,precondition_failed,</div>
<div> "inequivalent arg 'x-ha-policy'for queue 'queue.name' in vhost '/': received the value 'all' of type 'longstr' but current is none",</div>
<div> 'queue.declare'}</div>
</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">I've tried pushing it out with the non HA queues still up, and also with deleting them before trying to spin up the new ones and no dice still can't create these queues. </div>
<div style="color: rgb(0, 0, 0); ">I don't know if its worth noting that the queue names are still the same all I'm trying to do is simply declare them with the x-ha-policy = all</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div>
<p style="color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">
Map<String,Object> params = <span style="color: #941c64">new</span> HashMap<String, Object>();</p>
<p style="color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">
params.put(<span class="Apple-style-span" style="color: rgb(58, 64, 244); ">"x-ha-policy"</span>, <span class="Apple-style-span" style="color: rgb(58, 64, 244); ">"all"</span>);</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">
</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">
<span style="color: rgb(0, 0, 0); ">params.put(</span><span style="color: rgb(0, 0, 0); "><span class="Apple-style-span" style="color: rgb(58, 64, 244); ">"x-expires"</span><span class="Apple-style-span" style="color: rgb(4, 49, 195); "><span style="color: #000000">, </span></span></span><span class="Apple-style-span" style="color: rgb(0, 0, 0); ">TimeUnit.<span style="color: #0431c3">HOURS</span>.toMillis(24)</span>);</p>
<p></p>
<p style="color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">
<br>
</p>
<p style="color: rgb(0, 0, 0); margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">
</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">Queue queue = <span style="color: #941c64">
new</span> Queue(queueName, <span style="color: #941c64">true</span>, <span style="color: #941c64">
false</span>, isAutoDelete, params);</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br>
</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">Has anyone else run into this problem? I realize I can upgrade to 3.0.1 and implement HA queues at the broker level but at this point I want to try and get this to work without having to go through
and upgrade all of our envs.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco"><br>
</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">Let me know if you need any more log info or code snippets or elaboration.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">Thanks</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco">-Quinn </p>
<p></p>
</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
</div>
</div>
</span>
</body>
</html>