GH-741 Fix race condition while composing functions

Resolves #741
This commit is contained in:
Oleg Zhurakousky
2021-09-14 14:23:04 +02:00
parent 84840f79ba
commit 37fb710c75

View File

@@ -278,7 +278,7 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
/*
*
*/
private FunctionInvocationWrapper compose(Class<?> type, String functionDefinition) {
private synchronized FunctionInvocationWrapper compose(Class<?> type, String functionDefinition) {
String[] functionNames = StringUtils.delimitedListToStringArray(functionDefinition.replaceAll(",", "|").trim(), "|");
FunctionInvocationWrapper composedFunction = null;