Branch: refs/heads/master Home: https://github.com/jenkinsci/rabbitmq-consumer-plugin Commit: adb4d1d72e3e998b7307131f8b99465f58fa267a https://github.com/jenkinsci/rabbitmq-consumer-plugin/commit/adb4d1d72e3e998b7307131f8b99465f58fa267a Author: rinrinne <rinrin...@gmail.com> Date: 2015-02-06 (Fri, 06 Feb 2015)
Changed paths: M src/main/java/org/jenkinsci/plugins/rabbitmqconsumer/channels/ConsumeRMQChannel.java Log Message: ----------- Delegate callback thread for message to system thread In Jenkins, all background threads should run as ACL.SYSTEM. Callbacks in this plugin is called from amqp library's inner thread. Unfortunately, no interface to apply ACL.SYSTEM to thread has been provided. Recently, Jenkins core changed security priority. So callbacks cannot access any Jenkins items. This patch adds channel dedicated executor thread which run in ACL.SYSTEM then delegateis all consuming messages to it then invokes callbacks in that context. Commit: 64b37b4a2f6d348f0e60c55204019a7c50f3fcb6 https://github.com/jenkinsci/rabbitmq-consumer-plugin/commit/64b37b4a2f6d348f0e60c55204019a7c50f3fcb6 Author: rinrinne <rinrin...@gmail.com> Date: 2015-02-06 (Fri, 06 Feb 2015) Changed paths: M src/test/java/org/jenkinsci/plugins/rabbitmqconsumer/channels/ConsumeRMQChannelTest.java Log Message: ----------- Fix test New patch adds thread then delegate data from current thread to new one. So a few delays happen until new thread fires actual callbacks. This patch adds a couple of delay after putting message to handleDelivery(). Compare: https://github.com/jenkinsci/rabbitmq-consumer-plugin/compare/8248d621873a...64b37b4a2f6d -- You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.