hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SammiChen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12613) Native EC coder should implement release() as idempotent function.
Date Wed, 11 Oct 2017 07:55:00 GMT

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

SammiChen commented on HDFS-12613:

Hi [~eddyxu], thanks for reporting and working on it.  

1. Apart from add {{synchronized}} on {{release}},  {{performEncodeImpl}} and {{performDecodeImpl}}
can also have the {{synchronized}} keyword
2. I see you add the NULL check of {{nativeCoder}} in native code.  We can also check it's
status in JAVA code. If it's already null, we don't need to call the native code through JNI.

> Native EC coder should implement release() as idempotent function.
> ------------------------------------------------------------------
>                 Key: HDFS-12613
>                 URL: https://issues.apache.org/jira/browse/HDFS-12613
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: erasure-coding
>    Affects Versions: 3.0.0-beta1
>            Reporter: Lei (Eddy) Xu
>            Assignee: Lei (Eddy) Xu
>         Attachments: HDFS-12613.00.patch, HDFS-12613.01.patch
> Recently, we found native EC coder crashes JVM because {{NativeRSDecoder#release()}}
being called multiple times (HDFS-12612 and HDFS-12606). 
> We should strength the implement the native code to make {{release()}} idempotent  as

This message was sent by Atlassian JIRA

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

View raw message