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

Mukul Kumar Singh resolved HDDS-4669.
-------------------------------------
    Resolution: Fixed

PR has been merged, resolving this.

> TestOzoneFileSystem#testTrash() fails when OM Ratis is enabled
> --------------------------------------------------------------
>
>                 Key: HDDS-4669
>                 URL: https://issues.apache.org/jira/browse/HDDS-4669
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Hanisha Koneru
>            Assignee: Sadanand Shenoy
>            Priority: Blocker
>              Labels: pull-request-available
>
> TestOzoneFileSystem#testTrash() is failing when OM Ratis is enabled. This is 
> happening because of the following error:
> {noformat}
> 2021-01-11 11:02:25,451 [pool-29-thread-1] INFO  om.TrashPolicyOzone 
> (TrashPolicyOzone.java:lambda$run$0(181)) - Unable to checkpoint
> java.lang.IllegalArgumentException
>       at 
> com.google.common.base.Preconditions.checkArgument(Preconditions.java:128)
>       at 
> org.apache.hadoop.ozone.om.ratis.OzoneManagerRatisServer.createWriteRaftClientRequest(OzoneManagerRatisServer.java:149)
>       at 
> org.apache.hadoop.ozone.om.ratis.OzoneManagerRatisServer.submitRequest(OzoneManagerRatisServer.java:113)
>       at 
> org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.submitRequestToRatis(OzoneManagerProtocolServerSideTranslatorPB.java:182)
>       at 
> org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.processRequest(OzoneManagerProtocolServerSideTranslatorPB.java:144)
>       at 
> org.apache.hadoop.hdds.server.OzoneProtocolMessageDispatcher.processRequest(OzoneProtocolMessageDispatcher.java:87)
>       at 
> org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.submitRequest(OzoneManagerProtocolServerSideTranslatorPB.java:122)
>       at 
> org.apache.hadoop.ozone.om.TrashOzoneFileSystem$RenameIterator.processKeyPath(TrashOzoneFileSystem.java:354)
>       at 
> org.apache.hadoop.ozone.om.TrashOzoneFileSystem$OzoneListingIterator.iterate(TrashOzoneFileSystem.java:314)
>       at 
> org.apache.hadoop.ozone.om.TrashOzoneFileSystem.rename(TrashOzoneFileSystem.java:124)Disconnected
>  from the target VM, address: '127.0.0.1:57683', transport: 'socket'
>       at 
> org.apache.hadoop.ozone.om.TrashPolicyOzone.createCheckpoint(TrashPolicyOzone.java:230)
>       at 
> org.apache.hadoop.ozone.om.TrashPolicyOzone.access$1000(TrashPolicyOzone.java:55)
>       at 
> org.apache.hadoop.ozone.om.TrashPolicyOzone$Emptier.lambda$run$0(TrashPolicyOzone.java:178)
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>       at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266)
>       at java.util.concurrent.FutureTask.run(FutureTask.java)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> {noformat}
> The Filesystem which is calling the rename is using the DUMMY_CLIENT_ID and 
> hence the Precondition fails in 
> {{OzoneManagerRatisServer.createWriteRaftClientRequest}}. 
> To reproduce, set ozone.om.ratis.enable to true in 
> {{TestOzoneFileSystem#setupOzoneFileSystem}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to