Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The solution proposed aims at not storing dropped events when a gateway sender is stopped and but not in the starting process, given . The reason is that these events could never end in the queue of any secondary gateway sender and will use memory unnecessarily.

In order to do so, it is proposed to add a new boolean member variable in to the AbstractGatewaySender that will tell if the primary gateway sender must store dropped events or not.

  • This

...

  • member variable will be set to false (do not store dropped events) in

...

  • the primary and secondary gateway sender instances

...

  • in a second step added to the the gfsh stop gateway sender command

...

  • right after the stop of the gateway senders has been completed.
  • This member variable will be set to true

...

  • (store dropped events) in the primary and secondary gateway sender instances

...

  • in a prior step added to the start gateway sender gfsh command before the start of the senders is executed.

A draft PR of the solution can be found here: https://github.com/apache/geode/pull/5348

...