hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanisha Koneru (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12399) Improve erasure coding codec framework adding more unit tests
Date Wed, 27 Sep 2017 19:01:00 GMT

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

Hanisha Koneru commented on HDFS-12399:

Thanks for the patch, [~Sammi].
A few comments:
- The intent is that enable policy should definitely fail for prohibited policies, right?
If so, then the code block below would not assert that an exception is thrown while enabling
a prohibited policy. This only checks the exception message, if at all an exception is thrown.
      // PROHIBITED policy cannot be enabled or disabled
      try {
      } catch (IOException e) {
        assertExceptionContains("because its codec is not supported", e);
There should be another assert right after the enable call.
      try {
        assertFalse("Enabling prohibited erasure coding should fail", true);
      } catch (IOException e) {
- In _CodecRegistry#removeCodec()_, {{coderNameCompactMap}} should also be cleared before
putting back values to avoid double entries.
Not sure if I am missing something here, but why not just remove the {{targetCodecName}} key
from _coderNameMap_ and _coderNameCompactMap_, as being done for _coderMap_. Instead of clearing
the map and putting back the values.

> Improve erasure coding codec framework adding more unit tests 
> --------------------------------------------------------------
>                 Key: HDFS-12399
>                 URL: https://issues.apache.org/jira/browse/HDFS-12399
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: erasure-coding
>    Affects Versions: 3.0.0-alpha3
>            Reporter: SammiChen
>            Assignee: SammiChen
>              Labels: hdfs-ec-3.0-nice-to-have
>         Attachments: HDFS-12399.000.patch
> Improve erasure coding codec through add more unit tests 

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