summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTej Singh <singhtejinder@google.com>2020-04-20 22:04:38 -0700
committerTej Singh <singhtejinder@google.com>2020-04-21 20:24:26 -0700
commit3eb9cede0b3f488736d3c62f10b70df0a5f1d4dc (patch)
tree14477e8be5cf169ca3e3af192dfed7fd007f3ee9 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent87adee8718e12a230be0b757cfa78566777d2fe2 (diff)
Fix PullUidProvider unregistering on config update
Previously, MetricsManagers would unregister themselves as a PullUidProvider for a given ConfigKey in the destructor. This caused all pulls to fail after a config update because the new MetricsManager would register itself before the old MetricsManager was destructed and unregistered. This resulted in the old MetricsManager removing the new config since they shared the same config key. The fix is for the PullerManager to check that the PullUidProviders are equal in the unregister function before actually erasing it. Test: bit statsd_test:* (wrote a failing test that now passes). Test: statsd_localdrive to manually update a config, ensured pulls still worked. Bug: 154544328 Change-Id: Id7af3b3b407e24bee74fc34bd1c2b9e0575e9c9e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions