[ https://issues.apache.org/jira/browse/HDFS-11660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Wang updated HDFS-11660: ------------------------------- Attachment: HDFS-11660.001.patch Mockito mocking isn't threadsafe, so I think this happens when we insert the mock for the heartbeat. Added a semaphore to pause all the BPOS threads before mocking, and unpause after. > TestFsDataset#testPageRounder fails intermittently with AssertionError > ---------------------------------------------------------------------- > > Key: HDFS-11660 > URL: https://issues.apache.org/jira/browse/HDFS-11660 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Affects Versions: 2.6.5 > Reporter: Andrew Wang > Assignee: Andrew Wang > Attachments: HDFS-11660.001.patch > > > We've seen this test fail occasionally with an error like the following: > {noformat} > java.lang.AssertionError > at > org.apache.hadoop.hdfs.server.datanode.BPServiceActor.offerService(BPServiceActor.java:510) > at > org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:695) > at java.lang.Thread.run(Thread.java:745) > {noformat} > This assertion fires when the heartbeat response is null -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org