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

Robert Joseph Evans reassigned STORM-2517:
------------------------------------------

    Assignee: Angus Helm

> 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
>          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)

Reply via email to