ruanwenjun commented on code in PR #15729:
URL:
https://github.com/apache/dolphinscheduler/pull/15729#discussion_r1562391414
##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java:
##########
@@ -250,6 +251,14 @@ public class ProcessDefinitionServiceImpl extends
BaseServiceImpl implements Pro
@Autowired
private ListenerEventAlertManager listenerEventAlertManager;
+ private static final int thresholdEntries = 10000;
+ private static final int thresholdSize = 1000000000; // 1 GB
+ private static final double thresholdRatio = 10;
+
+ private final Map<String, DataSource> dataSourceCache = new HashMap<>(1);
Review Comment:
+1, this cannot work since ProcessDefinitionServiceImpl is singloten.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]