-
Notifications
You must be signed in to change notification settings - Fork 3.8k
amqp_trx_plugin - transaction in, transaction_trace out #9181
Conversation
…chiving"" This reverts commit ef410ef.
I wonder if the more AMQPy way of doing this would be instead of the |
If we use |
plugins/amqp_trace_plugin/include/eosio/amqp_trace_plugin/amqp_handler.hpp
Show resolved
Hide resolved
plugins/amqp_trace_plugin/include/eosio/amqp_trace_plugin/amqp_handler.hpp
Outdated
Show resolved
Hide resolved
…posted tasks so the http request to verify the amqp_trx_plugin trx can run before the amqp_trx_plugin trx. Add waitForTransBlock for calls via amqp.
plugins/amqp_trace_plugin/include/eosio/amqp_trace_plugin/amqp_handler.hpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBC
plugins/amqp_trace_plugin/include/eosio/amqp_trace_plugin/amqp_handler.hpp
Outdated
Show resolved
Hide resolved
plugins/amqp_trace_plugin/include/eosio/amqp_trace_plugin/amqp_handler.hpp
Outdated
Show resolved
Hide resolved
plugins/amqp_trace_plugin/include/eosio/amqp_trace_plugin/amqp_handler.hpp
Outdated
Show resolved
Hide resolved
plugins/amqp_trace_plugin/include/eosio/amqp_trace_plugin/amqp_handler.hpp
Outdated
Show resolved
Hide resolved
stop_promise.get_future().wait(); | ||
|
||
thread_pool_.stop(); | ||
handler_.reset(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is scary, because it leaves the TcpConnection
holding a dangling pointer, but it's safe (for now) because the first thing that ~TcpConnection
does is to clear its handler.
Change Description
New plugins:
amqp_trx_plugin
&amqp_trace_plugin
amqp_trx_plugin
amqp_trace_plugin
enabled then errors are reported via theamqp_trace_plugin
. Errors include: too many trx in progress and signature issues.Binary
fc::pack
format:amqp_trace_plugin
CorrelationID
set to transaction id.Binary
fc::pack
format:Change Type
Select ONE
Consensus Changes
API Changes
Documentation Additions
eosio::amqp_trx_plugin
optionsamqp-trx-address
Will consume from 'trx' queue
eosio::amqp_trace_plugin
optionsamqp-trace-address
Will publish to 'trace' queue.
amqp-trace-exchange