[ 
https://issues.apache.org/jira/browse/HADOOP-16386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16877328#comment-16877328
 ] 

Masatake Iwasaki commented on HADOOP-16386:
-------------------------------------------

I can reproduce this warning by running {{mvn compile}} on openjdk7 and {{mvn 
findbugs:findbugs}} on openjdk8. The cause seems to be the change of branch-2 
precommit executions to make test phase run on openjdk8.

> FindBugs warning in branch-2: GlobalStorageStatistics defines non-transient 
> non-serializable instance field map
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-16386
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16386
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 2.10.0
>            Reporter: Wei-Chiu Chuang
>            Priority: Major
>
> Found in HDFS-14585
> https://builds.apache.org/job/PreCommit-HDFS-Build/27024/artifact/out/branch-findbugs-hadoop-common-project_hadoop-common-warnings.html#Warnings_BAD_PRACTICE
> {quote}Class org.apache.hadoop.fs.GlobalStorageStatistics defines 
> non-transient non-serializable instance field map
> Bug type SE_BAD_FIELD (click for details) 
> In class org.apache.hadoop.fs.GlobalStorageStatistics
> Field org.apache.hadoop.fs.GlobalStorageStatistics.map
> Actual type org.apache.hadoop.fs.StorageStatistics
> In GlobalStorageStatistics.java{quote}
> {quote}SE_BAD_FIELD: Non-transient non-serializable instance field in 
> serializable class
> This Serializable class defines a non-primitive instance field which is 
> neither transient, Serializable, or java.lang.Object, and does not appear to 
> implement the Externalizable interface or the readObject() and writeObject() 
> methods.  Objects of this class will not be deserialized correctly if a 
> non-Serializable object is stored in this field.{quote}
> Looking in my inbox, this warning has been there since Feburary 9, 2019



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

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

Reply via email to