[rabbitmq-discuss] Shovel with multiple publish_properties oddity
Simon MacMullen
simon at rabbitmq.com
Fri Dec 20 16:37:31 GMT 2013
I just had a quick look at this.
Believe it or not the shovel config parser seems to be sensitive to the
order of publish_properties. I was able to make this work by putting
content_type before delivery_mode.
The developer responsible will receive a kicking.
With seasonal good cheer to all, Simon
On 20/12/13 16:27, Jason McIntosh wrote:
> SO I have a shovel configuration I'm trying to get working so I can pass
> back the "source-ip". I'd previously done this with a header and it
> worked, but I'm trying to switch to a publish_property so developers can
> use headers in their publishes (since me setting the headers in the
> shovel config overrides their headers).
>
> With this config, things don't work:
> [
> {rabbit, [
> {vm_memory_high_watermark, 0.6}
> , {hipe_compile, false}
> ]}
> , {rabbitmq_shovel,[{shovels, [
> { 'vhost_queue', [
> {sources, [{broker, "amqp://guest:guest@/vhost"}] }
> , {destinations, [{broker,
> "amqp://guest:guest@brokerhost/vhost"}] }
> , {queue, <<"queue">>}
> , {prefetch_count, 15}
> , {publish_properties, [
> {delivery_mode,2},
> {content_type, <<"test">>}
> ]}
> , {reconnect_delay, 30}
> , {publish_fields, [{exchange,
> <<"exchange">>},{routing_key, <<"queue">>}]}
>
> ] }
> ]}]}
> ].
>
>
> But if I remove the line "{delivery_mode,2}," rabbit starts up fine.
> If I remove the content_type entry, rabbit starts up - it's just when
> both are there nothing works. Note, I can set the publish_properties
> for the header, e.g.:
>
> {publish_properties, [
> {delivery_mode, 2}
> , {headers, [{<<"source">>,longstr,<<"${HOSTNAME}">>}] }
> ]}
>
> Works just fine. Am I missing something?
> Thanks!
> Jason
>
> --
> Jason McIntosh
> https://github.com/jasonmcintosh/
> 573-424-7612
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
--
Simon MacMullen
RabbitMQ, Pivotal
More information about the rabbitmq-discuss
mailing list