Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Support for parallel info emission #71

Merged

Conversation

binarin
Copy link
Contributor

@binarin binarin commented Mar 10, 2016

Complement for rabbitmq/rabbitmq-server#683

  • rabbit_control_misc:wait_for_info_messages/5 can wait for results of
    more than one emitting map.
  • Stop passing arround InfoItemKeys in
    rabbit_control_misc:wait_for_info_messages/5, the same information
    could be directly encoded in DisplayFun closure.
  • Add emit to function names, to avoid confusion with regular ones
    which return result directly.

wait_for_info_messages(Pid, Ref, ArgAtoms, DisplayFun, Timeout) ->
_ = notify_if_timeout(Pid, Ref, Timeout),
wait_for_info_messages(Ref, ArgAtoms, DisplayFun).
wait_for_info_messages(Pid, Ref, DisplayFun, Timeout, Chunks) ->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rename Chunks to NodesCount and NodesLeft or something like that, so that it is obvious what exactly the function is waiting for.

@binarin binarin force-pushed the rabbitmq-server-parallel-listing branch 5 times, most recently from e062832 to 48b866d Compare March 25, 2016 10:28
@binarin binarin changed the title WIP Support for parallel info emission Support for parallel info emission Mar 30, 2016
@michaelklishin michaelklishin changed the title Support for parallel info emission DO NOT MERGE Support for parallel info emission Apr 17, 2016
@binarin binarin force-pushed the rabbitmq-server-parallel-listing branch from 48b866d to c7e0a2d Compare May 11, 2016 11:30
@michaelklishin michaelklishin changed the title DO NOT MERGE Support for parallel info emission Support for parallel info emission May 11, 2016
@michaelklishin michaelklishin added this to the 3.7.0 milestone May 11, 2016
@binarin binarin force-pushed the rabbitmq-server-parallel-listing branch 3 times, most recently from 455028c to 336f06b Compare May 18, 2016 13:06
@michaelklishin
Copy link
Member

@binarin I have conflicts when merging this.

- Emit info about particular items in parallel on every node, with
  results delivered directly to a `rabbitmqctl` instance.
- `rabbit_control_misc:wait_for_info_messages/5` can wait for results of
  more than one emitting map.
- Stop passing arround InfoItemKeys in
  `rabbit_control_misc:wait_for_info_messages/5`, the same information
  could be directly encoded in DisplayFun closure.
- Add `emit` to function names, to avoid confusion with regular ones
  which return result directly.

Part of rabbitmq/rabbitmq-server#683
@binarin binarin force-pushed the rabbitmq-server-parallel-listing branch from 336f06b to 7dc7493 Compare May 24, 2016 09:31
@binarin
Copy link
Contributor Author

binarin commented May 24, 2016

Updated patch.

@michaelklishin michaelklishin merged commit 7dc7493 into rabbitmq:master May 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants