diff options
| author | 2017-12-05 19:36:52 +0000 | |
|---|---|---|
| committer | 2017-12-05 19:36:52 +0000 | |
| commit | b51c719187b4f1bb59b3ab9d07b8b56de681509c (patch) | |
| tree | 6e4f8725131c7f6ac56bab7c99866d9b81f21b1c | |
| parent | d3392daa3bec3ed4986c1e3e5714f379537793ae (diff) | |
| parent | 0b73ccad8fb47b1bcc5c89b0c10fac937336ab1e (diff) | |
Merge "Urgent fix. Once UidMap size exceeds the limit, statsd triggers data drop every time a log comes in"
| -rw-r--r-- | cmds/statsd/src/StatsLogProcessor.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cmds/statsd/src/StatsLogProcessor.cpp b/cmds/statsd/src/StatsLogProcessor.cpp index bc63f5905e23..c6b8418077c7 100644 --- a/cmds/statsd/src/StatsLogProcessor.cpp +++ b/cmds/statsd/src/StatsLogProcessor.cpp @@ -84,10 +84,12 @@ void StatsLogProcessor::onAnomalyAlarmFired( void StatsLogProcessor::OnLogEvent(const LogEvent& msg) { StatsdStats::getInstance().noteAtomLogged(msg.GetTagId(), msg.GetTimestampNs() / NS_PER_SEC); // pass the event to metrics managers. - for (auto& pair : mMetricsManagers) { - pair.second->onLogEvent(msg); - flushIfNecessary(msg.GetTimestampNs(), pair.first, pair.second); - } + // TODO: THIS CHECK FAILS BECAUSE ONCE UIDMAP SIZE EXCEEDS LIMIT, DROPPING METRICS DATA + // DOESN'T HELP. FIX THIS. + //for (auto& pair : mMetricsManagers) { + // pair.second->onLogEvent(msg); + // flushIfNecessary(msg.GetTimestampNs(), pair.first, pair.second); + //} // Hard-coded logic to update the isolated uid's in the uid-map. // The field numbers need to be currently updated by hand with atoms.proto |