Merge pull request #577 from etschannen/release-6.0

Added a trace event related to max_notifications being reached
This commit is contained in:
Evan Tschannen 2018-07-08 20:19:17 -07:00 committed by GitHub
commit f49569075c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,6 +216,7 @@ ACTOR Future<Void> leaderRegister(LeaderElectionRegInterface interf, Key key) {
} else {
notify.push_back( req.reply );
if(notify.size() > SERVER_KNOBS->MAX_NOTIFICATIONS) {
TraceEvent(SevWarnAlways, "TooManyNotifications").detail("Amount", notify.size());
for(int i=0; i<notify.size(); i++)
notify[i].send( currentNominee.get() );
notify.clear();
@ -231,6 +232,7 @@ ACTOR Future<Void> leaderRegister(LeaderElectionRegInterface interf, Key key) {
} else {
notify.push_back( req.reply );
if(notify.size() > SERVER_KNOBS->MAX_NOTIFICATIONS) {
TraceEvent(SevWarnAlways, "TooManyNotifications").detail("Amount", notify.size());
for(int i=0; i<notify.size(); i++)
notify[i].send( currentNominee.get() );
notify.clear();