]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13057 Explain that update in sonar.properties are not taken into account when... 9.8.0.63668
authorDavid Cho-Lerat <117642976+david-cho-lerat-sonarsource@users.noreply.github.com>
Thu, 15 Dec 2022 16:09:31 +0000 (17:09 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 15 Dec 2022 20:03:33 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/common/RestartButton.tsx
server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/RestartButton-test.tsx.snap
server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/RestartAction.java
sonar-application/src/main/assembly/conf/sonar.properties
sonar-core/src/main/resources/org/sonar/l10n/core.properties
sonar-ws-generator/src/main/resources/snapshot-of-api.json

index c6eb8bd0f24581326cab5c0f982689f809157e9e..feae00d431860bf813b7bd3d3d59950a772c0411 100644 (file)
@@ -32,9 +32,7 @@ interface Props {
 }
 
 export default class RestartButton extends React.PureComponent<Props> {
-  handleConfirm = () => {
-    return restart().then(this.props.fetchSystemStatus);
-  };
+  handleConfirm = () => restart().then(this.props.fetchSystemStatus);
 
   render() {
     const { className, systemStatus } = this.props;
@@ -46,7 +44,8 @@ export default class RestartButton extends React.PureComponent<Props> {
             <p className="spacer-top spacer-bottom">
               {translate('system.are_you_sure_to_restart')}
             </p>
-            <p>{translate('system.forcing_shutdown_not_recommended')}</p>
+            <p className="spacer-bottom">{translate('system.forcing_shutdown_not_recommended')}</p>
+            <p>{translate('system.restart_does_not_reload_sonar_properties')}</p>
           </>
         }
         modalHeader={translate('system.restart_server')}
index 90940e63cbb91ad0d8dacc84f2a22b8d32c62a2a..4d612a7bcff5dfd8829c4e7a7024c72a3339343d 100644 (file)
@@ -10,9 +10,14 @@ exports[`should render correctly 1`] = `
       >
         system.are_you_sure_to_restart
       </p>
-      <p>
+      <p
+        className="spacer-bottom"
+      >
         system.forcing_shutdown_not_recommended
       </p>
+      <p>
+        system.restart_does_not_reload_sonar_properties
+      </p>
     </React.Fragment>
   }
   modalHeader="system.restart_server"
index 99a188ea29752ceb1cf03caf9da98edb198b855e..de87d55c6c3453cb4d97c63157d4fc56fe7c9b23 100644 (file)
@@ -52,7 +52,8 @@ public class RestartAction implements SystemWsAction {
   @Override
   public void define(WebService.NewController controller) {
     controller.createAction("restart")
-      .setDescription("Restart server. Require 'Administer System' permission. Perform a full restart of the Web, Search and Compute Engine Servers processes.")
+      .setDescription("Restarts server. Requires 'Administer System' permission. Performs a full restart of the Web, Search and Compute Engine Servers processes."
+         + " Does not reload sonar.properties.")
       .setSince("4.3")
       .setPost(true)
       .setHandler(this);
index c1e24de49cd3830825598c5304eed51b20331786..31f9fe7d4aa90fcbf0e3692680e3f576346a1f7b 100644 (file)
@@ -1,3 +1,11 @@
+#--------------------------------------------------------------------------------------------------
+# IMPORTANT:
+# This file will *not* be reloaded upon hitting the "Restart" button in the UI, or using the
+# api/system/restart endpoint.
+# In order for any change made to this file to be taken into account, you must perform a full
+# restart of the main SonarQube service.
+#--------------------------------------------------------------------------------------------------
+
 # Property values can:
 # - be overridden by environment variables. The name of the corresponding environment variable is the
 #   upper-cased name of the property where all the dot ('.') and dash ('-') characters are replaced by
index 2a51b3d2d5b73c6693a620ff5f5b5fe439ba0f75..7625bd7b15e08115bb1e7b7c55e3d32fa4b7aecb 100644 (file)
@@ -3194,6 +3194,7 @@ system.log_level.warning.short=Current logs level has performance impacts, get b
 system.log_level.info=Your selection does not affect the Search Engine.
 system.logs_level=Logs level
 system.new_version_available=A new version of SonarQube is available.
+system.restart_does_not_reload_sonar_properties=Also note that a restart will not reload the sonar.properties file.
 system.see_whats_new=See what's new!
 system.release_notes=Release Notes
 system.released_x=Released {0}
index 72630f2deeee0fa1dbd9c0ddf87f1fbbd093a3b6..47f92478d4f54844e19be372b49aaee154852f80 100644 (file)
         },
         {
           "key": "restart",
-          "description": "Restart server. Require 'Administer System' permission. Perform a full restart of the Web, Search and Compute Engine Servers processes.",
+          "description": "Restarts server. Requires 'Administer System' permission. Performs a full restart of the Web, Search and Compute Engine Servers processes. Does not reload sonar.properties.",
           "since": "4.3",
           "internal": false,
           "post": true,