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

Steve Loughran resolved SLIDER-454.
-----------------------------------
       Resolution: Cannot Reproduce
    Fix Version/s: Slider 0.60

doesn't appear in the AM/Agent communications

> Jersey doesn't marshall @JsonProperty annotated fields correctly
> ----------------------------------------------------------------
>
>                 Key: SLIDER-454
>                 URL: https://issues.apache.org/jira/browse/SLIDER-454
>             Project: Slider
>          Issue Type: Bug
>          Components: agent, agent-provider
>    Affects Versions: Slider 0.60
>            Reporter: Steve Loughran
>            Assignee: Gour Saha
>            Priority: Blocker
>             Fix For: Slider 0.60
>
>
> Scanning the code, the only JSON-marshalled classes that declare their json 
> property fields are the Agent ones ... most of which match their field names 
> completely.
> some are different, e.g in 
> {{org.apache.slider.server.appmaster.web.rest.agent.HostInfo}}:
> {code}
>   @JsonProperty("uptime_hours")
>   public long getUptimeHours() {
>     return this.uptime_hours;
>   }
>   @JsonProperty("uptime_hours")
>   public void setUpTimeHours(long uptime_hours) {
>     this.uptime_hours = uptime_hours;
>   }
>   @JsonProperty("uptime_days")
>   public long getUpTimeDays() {
>     return this.uptime_days;
>   }
>   @JsonProperty("uptime_days")
>   public void setUpTimeDays(long 
> {code}
> This may work for the agent POSTing data to the AM, as it is not Jersey 
> itself publishing it —but if the AM did ever try to serve the same data up on 
> its REST endpoints, the fields would not be marshalled correctly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to