You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Andrew Onischuk (JIRA)" <ji...@apache.org> on 2018/09/18 08:02:00 UTC

[jira] [Created] (AMBARI-24654) Tasks fail on ambari-agent intermittently under cpu load due to race condition in ambari-agent

Andrew Onischuk created AMBARI-24654:
----------------------------------------

             Summary: Tasks fail on ambari-agent intermittently under cpu load due to race condition in ambari-agent
                 Key: AMBARI-24654
                 URL: https://issues.apache.org/jira/browse/AMBARI-24654
             Project: Ambari
          Issue Type: Bug
            Reporter: Andrew Onischuk
            Assignee: Andrew Onischuk
             Fix For: 2.7.2
         Attachments: AMBARI-24654.patch


    INFO 2018-09-13 18:30:15,817 ClusterCache.py:125 - Rewriting cache ClusterTopologyCache for cluster 2
    ERROR 2018-09-13 18:30:16,386 CustomServiceOrchestrator.py:456 - Caught an exception while executing custom service command: <type 'exceptions.TypeError'>: 'NoneType' object has no attribute '__getitem__'; 'NoneType' object has no attribute '__getitem__'
    Traceback (most recent call last):
      File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py", line 324, in runCommand
        command = self.generate_command(command_header)
      File "/usr/lib/ambari-agent/lib/ambari_agent/CustomServiceOrchestrator.py", line 504, in generate_command
        command_dict = self.configuration_builder.get_configuration(cluster_id, service_name, component_name, required_config_timestamp)
      File "/usr/lib/ambari-agent/lib/ambari_agent/ConfigurationBuilder.py", line 46, in get_configuration
        'agentLevelParams': {'hostname': self.topology_cache.get_current_host_info(cluster_id)['hostName']},
    TypeError: 'NoneType' object has no attribute '__getitem__'
    

This was found while perf testing.  
However can occur under any circumstances if ambari-agent node if slow enough.





--
This message was sent by Atlassian JIRA
(v7.6.3#76005)