morningman commented on code in PR #41607:
URL: https://github.com/apache/doris/pull/41607#discussion_r1831260771
##########
fe/fe-core/src/main/java/org/apache/doris/qe/VariableMgr.java:
##########
@@ -947,4 +956,48 @@ private static ImmutableSortedMap.Builder<String,
VarContext> getStringVarContex
}
return builder;
}
+
+ public static void forceUpdateVariables() {
+ int currentVariableVersion = GlobalVariable.variableVersion;
+ if (currentVariableVersion == GlobalVariable.VARIABLE_VERSION_0) {
+ // update from 2.0.15 or below to 2.0.16 or higher
+ if (VariableMgr.newSessionVariable().nereidsTimeoutSecond == 5) {
+ VariableMgr.refreshDefaultSessionVariables("update variable
version",
+ SessionVariable.NEREIDS_TIMEOUT_SECOND, "30");
+ }
+ }
+ if (currentVariableVersion < GlobalVariable.VARIABLE_VERSION_100) {
+ // update from 2.1.6 or below to 2.1.7 or higher
Review Comment:
```suggestion
// update from 2.1.7 or below to 2.1.8 or higher
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]