incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sumit Mohanty (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-2267) BE does not handle empty version numbers from agent properly
Date Tue, 04 Jun 2013 17:06:21 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-2267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sumit Mohanty updated AMBARI-2267:
----------------------------------

    Attachment:     (was: AMBARI-2267.patch)
    
> BE does not handle empty version numbers from agent properly
> ------------------------------------------------------------
>
>                 Key: AMBARI-2267
>                 URL: https://issues.apache.org/jira/browse/AMBARI-2267
>             Project: Ambari
>          Issue Type: Bug
>          Components: controller
>    Affects Versions: 1.2.4
>            Reporter: Sumit Mohanty
>            Assignee: Sumit Mohanty
>             Fix For: 1.2.4
>
>
> When agent does not send a properly formatted version number (or empty) the error reported
is:
> {code}
> 16:28:23,253  WARN ServletHandler:514 - /agent/v1/register/ab6-hddn-lab-01.corp.ads
> java.lang.IllegalArgumentException: version2 cannot be null or empty
> 	at org.apache.ambari.server.utils.VersionUtils.compareVersions(VersionUtils.java:40)
> 	at org.apache.ambari.server.utils.VersionUtils.areVersionsEqual(VersionUtils.java:86)
> 	at org.apache.ambari.server.utils.VersionUtils.areVersionsCompatible(VersionUtils.java:99)
> 	at org.apache.ambari.server.agent.HeartBeatHandler.handleRegistration(HeartBeatHandler.java:395)
> 	at org.apache.ambari.server.agent.rest.AgentResource.register(AgentResource.java:81)
> 	at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> {code}
> The above log does not make it easy to debug the problem. We need to make the following
improvements:
> * Have the error logged as ERROR and not Warning
> * Handle the error gracefully with a proper message

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message