mirror of https://github.com/apache/druid.git
Make lookups more idempotent on update requests. (#2954)
* No longer fails if an update fails but it shouldn't have replaced it
This commit is contained in:
parent
f2510cf125
commit
81cab8a7bb
|
@ -118,7 +118,8 @@ class LookupListeningResource extends ListenerResource
|
|||
for (final String name : lookups.keySet()) {
|
||||
final LookupExtractorFactory factory = lookups.get(name);
|
||||
try {
|
||||
if (!manager.updateIfNew(name, factory)) {
|
||||
// Only fail if it should have updated but didn't.
|
||||
if (!manager.updateIfNew(name, factory) && factory.replaces(manager.get(name))) {
|
||||
failedUpdates.put(name, factory);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue