Skip to content

Conversation

@pdxcodemonkey
Copy link
Contributor

  • Remove static endpoint disconnected message
  • use dynamically allocated message for this, a la other messages
  • no longer leak an instance at shutdown, no more special case code for
    this message when deleting messages.
  • Remove some really unfortunate abbreviations in a couple of function and variable names.

Copy link

@echobravopapa echobravopapa left a comment

Choose a reason for hiding this comment

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

Thank you for cleaning up disMess.

Copy link
Contributor

@mmartell mmartell left a comment

Choose a reason for hiding this comment

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

Only issue is rename: sendNotConnectedMessageToAllRegions

@pdxcodemonkey pdxcodemonkey marked this pull request as ready for review April 28, 2021 18:51
Copy link
Contributor

@jake-at-work jake-at-work left a comment

Choose a reason for hiding this comment

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

Approved, but some cosmetic things to cleanup before merging.

Quite a few odd formatting changes but otherwise looks good.

It would be nice to take advantage of some other changes in the areas you are touching. Like making use of some smart pointers if possible. Also if you're member variables name changes touches enough members to warrant a switch to the current naming convention that would be nice too.

} else if (exceptionMsg.find(
"org.apache.geode.cache.TransactionDataRebalancedException") !=
} else if (exceptionMsg.find("org.apache.geode.cache."
"TransactionDataRebalancedException") !=
Copy link
Contributor

Choose a reason for hiding this comment

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

This feels like an unintentional or at least less readable format change.

@lgtm-com
Copy link

lgtm-com bot commented Apr 28, 2021

This pull request introduces 1 alert when merging 42f79a1 into 0f40b8d - view on LGTM.com

new alerts:

  • 1 for Catching by value

tcrHARegion->receiveNotification(regionMsg);
tcrHARegion->receiveNotification(
std::unique_ptr<TcrMessage>(new TcrMessageClientMarker(
new DataOutput(createDataOutput()), true)));
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we refactor away this constant true here?

@pdxcodemonkey pdxcodemonkey force-pushed the bugfix/GEODE-9200-all-endpoints-disconnected-leak branch 3 times, most recently from 093336f to b3083be Compare April 30, 2021 14:20
- use dynamically allocated message for this, a la other messages
- no longer leak an instance at shutdown, no more special case code for
  this message when deleting messages.
@pdxcodemonkey pdxcodemonkey force-pushed the bugfix/GEODE-9200-all-endpoints-disconnected-leak branch from b3083be to 503451c Compare April 30, 2021 14:42
@pdxcodemonkey pdxcodemonkey merged commit 7a03e4c into apache:develop Apr 30, 2021
@pdxcodemonkey pdxcodemonkey deleted the bugfix/GEODE-9200-all-endpoints-disconnected-leak branch April 30, 2021 17:55
gaussianrecurrence pushed a commit to gaussianrecurrence/geode-native that referenced this pull request May 4, 2021
Remove static endpoint disconnected message
- use dynamically allocated message for this, a la other messages
- no longer leak an instance at shutdown, no more special case code for
  this message when deleting messages.
davebarnes97 pushed a commit to davebarnes97/geode-native that referenced this pull request Feb 9, 2022
Remove static endpoint disconnected message
- use dynamically allocated message for this, a la other messages
- no longer leak an instance at shutdown, no more special case code for
  this message when deleting messages.
davebarnes97 pushed a commit to davebarnes97/geode-native that referenced this pull request Feb 9, 2022
Remove static endpoint disconnected message
- use dynamically allocated message for this, a la other messages
- no longer leak an instance at shutdown, no more special case code for
  this message when deleting messages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants