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

Steve Loughran resolved YARN-11075.
-----------------------------------
    Fix Version/s: 3.3.3
                       (was: 3.4.0)
                       (was: 3.3.4)
       Resolution: Fixed

fFIxed in 3.3.3; updating fix versions as appropriate

> Explicitly declare serialVersionUID in LogMutation class
> --------------------------------------------------------
>
>                 Key: YARN-11075
>                 URL: https://issues.apache.org/jira/browse/YARN-11075
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 3.3.1
>            Reporter: Benjamin Teke
>            Assignee: Benjamin Teke
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.2.4, 3.1.5, 3.3.3
>
>          Time Spent: 4h
>  Remaining Estimate: 0h
>
> The 
> [LogMutation|https://github.com/apache/hadoop/blob/f91e21ac109e753e76d19c5c872c59a767b7b837/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/conf/YarnConfigurationStore.java#L55]
>  class doesn't have its serialVersionUID defined as a private final static 
> constant hence the compiler generates one for it. Upon every 
> [logMutation|https://github.com/apache/hadoop/blob/d336227e5c63a70db06ac26697994c96ed89d230/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/conf/ZKConfigurationStore.java#L163]
>  call, the existing logMutation objects are collected from the chosen config 
> store and deserialized, but if a new/different RM jar loads these and the 
> serialVersionUIDs don't match (for example a different compiler generated a 
> different ID) an InvalidClassException occurs.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to