You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "guluo2016 (via GitHub)" <gi...@apache.org> on 2025/11/27 14:03:54 UTC

[PR] AMBARI-26560: Unable to execute alert because of mistakenly ambari-agent cache_dir [ambari]

guluo2016 opened a new pull request, #4090:
URL: https://github.com/apache/ambari/pull/4090

   ## What changes were proposed in this pull request?
   
   Fix: [AMBARI-26560](https://issues.apache.org/jira/browse/AMBARI-26560)
   
   ## How was this patch tested?
   
   Build ambari, deploy ambari, and start it.
   Check the `/var/log/ambari-agent/ambari-alert.log`


-- 
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: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org


Re: [PR] AMBARI-26560: Unable to execute alert because of mistakenly ambari-agent cache_dir [ambari]

Posted by "JiaLiangC (via GitHub)" <gi...@apache.org>.
JiaLiangC merged PR #4090:
URL: https://github.com/apache/ambari/pull/4090


-- 
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: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org


Re: [PR] AMBARI-26560: Unable to execute alert because of mistakenly ambari-agent cache_dir [ambari]

Posted by "guluo2016 (via GitHub)" <gi...@apache.org>.
guluo2016 commented on code in PR #4090:
URL: https://github.com/apache/ambari/pull/4090#discussion_r2568871620


##########
ambari-agent/src/test/python/ambari_agent/TestAmbariConfig.py:
##########
@@ -63,7 +65,7 @@ def test_ambari_config_get_command_file_retention_policy(self):
       config.remove_option("agent", AmbariConfig.COMMAND_FILE_RETENTION_POLICY_PROPERTY)
     self.assertEqual(
       config.command_file_retention_policy,
-      AmbariConfig.COMMAND_FILE_RETENTION_POLICY_KEEP,
+      AmbariConfig.COMMAND_FILE_RETENTION_POLICY_REMOVE,

Review Comment:
   The value of config.command_file_retention_policy should be `"remove"`, otherwise, this unit test will fail.



-- 
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: dev-unsubscribe@ambari.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ambari.apache.org
For additional commands, e-mail: dev-help@ambari.apache.org