hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-13159) TestTruncateQuotaUpdate fails in trunk
Date Fri, 16 Feb 2018 17:38:01 GMT

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

Arpit Agarwal commented on HDFS-13159:
--------------------------------------

[ERROR] testTruncateWithSnapshotAndDivergence(org.apache.hadoop.hdfs.server.namenode.TestTruncateQuotaUpdate)
 Time elapsed: 0.245 s  <<< ERROR!
java.lang.RuntimeException: Unable to set internal state on a private field. Please report
to mockito mailing list.
	at org.mockito.internal.util.reflection.Whitebox.setInternalState(Whitebox.java:29)
	at org.apache.hadoop.hdfs.server.namenode.TestTruncateQuotaUpdate.addSnapshotFeature(TestTruncateQuotaUpdate.java:159)
	at org.apache.hadoop.hdfs.server.namenode.TestTruncateQuotaUpdate.testTruncateWithSnapshotAndDivergence(TestTruncateQuotaUpdate.java:107)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:369)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:275)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:239)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:160)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:373)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:334)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:119)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:407)
Caused by: java.lang.IllegalArgumentException: Can not set org.apache.hadoop.hdfs.server.namenode.snapshot.DiffList
field org.apache.hadoop.hdfs.server.namenode.snapshot.AbstractINodeDiffList.diffs to java.util.ArrayList
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
	at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
	at java.lang.reflect.Field.set(Field.java:764)
	at org.mockito.internal.util.reflection.Whitebox.setInternalState(Whitebox.java:27)
	... 27 more

[ERROR] testTruncateWithSnapshotNoDivergence(org.apache.hadoop.hdfs.server.namenode.TestTruncateQuotaUpdate)
 Time elapsed: 0 s  <<< ERROR!
java.lang.RuntimeException: Unable to set internal state on a private field. Please report
to mockito mailing list.
	at org.mockito.internal.util.reflection.Whitebox.setInternalState(Whitebox.java:29)
	at org.apache.hadoop.hdfs.server.namenode.TestTruncateQuotaUpdate.addSnapshotFeature(TestTruncateQuotaUpdate.java:159)
	at org.apache.hadoop.hdfs.server.namenode.TestTruncateQuotaUpdate.testTruncateWithSnapshotNoDivergence(TestTruncateQuotaUpdate.java:81)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:369)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:275)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:239)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:160)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:373)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:334)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:119)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:407)
Caused by: java.lang.IllegalArgumentException: Can not set org.apache.hadoop.hdfs.server.namenode.snapshot.DiffList
field org.apache.hadoop.hdfs.server.namenode.snapshot.AbstractINodeDiffList.diffs to java.util.ArrayList
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)
	at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)
	at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)
	at java.lang.reflect.Field.set(Field.java:764)
	at org.mockito.internal.util.reflection.Whitebox.setInternalState(Whitebox.java:27)
	... 27 more

[ERROR] Errors:
[ERROR]   TestTruncateQuotaUpdate.testTruncateWithSnapshotAndDivergence:107->addSnapshotFeature:159
» Runtime
[ERROR]   TestTruncateQuotaUpdate.testTruncateWithSnapshotNoDivergence:81->addSnapshotFeature:159
» Runtime
[ERROR] Tests run: 3, Failures: 0, Errors: 2, Skipped: 0

> TestTruncateQuotaUpdate fails in trunk
> --------------------------------------
>
>                 Key: HDFS-13159
>                 URL: https://issues.apache.org/jira/browse/HDFS-13159
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Arpit Agarwal
>            Priority: Major
>
> Details in comment below.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message