mirror of https://github.com/apache/druid.git
Fix LookupSerdeModule double-binding in Coordinator-as-Overlord mode. (#7765)
Fixes #7762.
This commit is contained in:
parent
c97eb93e16
commit
cf09fbf4ce
|
@ -272,10 +272,12 @@ public class CliCoordinator extends ServerRunnable
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
modules.add(new LookupSerdeModule());
|
|
||||||
|
|
||||||
if (beOverlord) {
|
if (beOverlord) {
|
||||||
modules.addAll(new CliOverlord().getModules(false));
|
modules.addAll(new CliOverlord().getModules(false));
|
||||||
|
} else {
|
||||||
|
// Only add LookupSerdeModule if !beOverlord, since CliOverlord includes it, and having two copies causes
|
||||||
|
// the injector to get confused due to having multiple bindings for the same classes.
|
||||||
|
modules.add(new LookupSerdeModule());
|
||||||
}
|
}
|
||||||
|
|
||||||
return modules;
|
return modules;
|
||||||
|
|
Loading…
Reference in New Issue