You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Angus Helm (JIRA)" <ji...@apache.org> on 2017/05/16 21:41:04 UTC

[jira] [Created] (STORM-2517) storm-hdfs writers can't be subclassed

Angus Helm created STORM-2517:
---------------------------------

             Summary: storm-hdfs writers can't be subclassed
                 Key: STORM-2517
                 URL: https://issues.apache.org/jira/browse/STORM-2517
             Project: Apache Storm
          Issue Type: Bug
          Components: storm-hdfs
    Affects Versions: 1.1.0
            Reporter: Angus Helm
            Priority: Minor


{{HdfsBolt.makeNewWriter()}} returns an AbstractHDFSWriter instead of an interface. AbstractHDFSWriter is public but its constructor is package-private so it can't actually be subclassed unless your class is in the {{org.apache.storm.hdfs.common}} package. I subclassed HDFSWriter but it required some workarounds.

Also {{AbstractHDFSWriter.offset}} is package-private and write() is final, so there is no way for a subclass to control or update the offset after {{doWrite()}}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)