You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Robert Joseph Evans (JIRA)" <ji...@apache.org> on 2017/08/28 22:14:00 UTC

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

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

Robert Joseph Evans resolved STORM-2517.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0
                   2.0.0

> 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
>            Assignee: Angus Helm
>            Priority: Minor
>             Fix For: 2.0.0, 1.2.0
>
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> {{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.4.14#64029)