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)

Reply via email to