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

Nanda kumar commented on HDFS-12940:
------------------------------------

Even with {{OZONE_OPEN_KEY_CLEANUP_SERVICE_INTERVAL_SECONDS = 3}} and 
{{OZONE_OPEN_KEY_EXPIRE_THRESHOLD_SECONDS = 2}} few test-cases are failing with 
{{java.io.IOException: Commit key failed, error:KEY_NOT_FOUND}}
{noformat}
java.io.IOException: Commit key failed, error:KEY_NOT_FOUND
        at 
org.apache.hadoop.ozone.ksm.protocolPB.KeySpaceManagerProtocolClientSideTranslatorPB.commitKey(KeySpaceManagerProtocolClientSideTranslatorPB.java:598)
        at 
org.apache.hadoop.ozone.client.io.ChunkGroupOutputStream.close(ChunkGroupOutputStream.java:309)
        at 
org.apache.hadoop.ozone.client.io.OzoneOutputStream.close(OzoneOutputStream.java:58)
        at 
org.apache.hadoop.ozone.ksm.TestKeySpaceManager.testWriteSize(TestKeySpaceManager.java:1061)
...
-------
java.io.IOException: Commit key failed, error:KEY_NOT_FOUND
        at 
org.apache.hadoop.ozone.ksm.protocolPB.KeySpaceManagerProtocolClientSideTranslatorPB.commitKey(KeySpaceManagerProtocolClientSideTranslatorPB.java:598)
        at 
org.apache.hadoop.ozone.client.io.ChunkGroupOutputStream.close(ChunkGroupOutputStream.java:309)
        at 
org.apache.hadoop.ozone.client.io.OzoneOutputStream.close(OzoneOutputStream.java:58)
        at 
org.apache.hadoop.ozone.ksm.TestKeySpaceManager.testListKeys(TestKeySpaceManager.java:814)
...
{noformat}

> Ozone: KSM: TestKeySpaceManager#testExpiredOpenKey fails occasionally
> ---------------------------------------------------------------------
>
>                 Key: HDFS-12940
>                 URL: https://issues.apache.org/jira/browse/HDFS-12940
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Nanda kumar
>            Assignee: Nanda kumar
>         Attachments: HDFS-12940-HDFS-7240.000.patch, 
> HDFS-12940-HDFS-7240.001.patch
>
>
> {{TestKeySpaceManager#testExpiredOpenKey}} is flaky.
> In {{testExpiredOpenKey}} we are opening four keys for writing and wait for 
> them to expire (without committing). Verification/Assertion is done by 
> querying {{MiniOzoneCluster}} and matching the count. Since the {{cluster}} 
> instance of {{MiniOzoneCluster}} is shared between test-cases in 
> {{TestKeySpaceManager}}, we should not rely on the count. The verification 
> should only happen by matching the keyNames and not with the count.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to