Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-2509

Writers in AbstractHDFSBolt are not closed/rotated when evicted from WritersMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1.0
    • None
    • storm-hdfs
    • None

    Description

      When the eldest entry in the WritersMap in the AbstractHDFSBolt gets removed due to the number of writers exceeding maxWriters (see below), the writer is not closed and rotation actions are not executed (doRotationAndRemoveWriter is not called).

      static class WritersMap extends LinkedHashMap<String, AbstractHDFSWriter> {
          final long maxWriters;
      
          public WritersMap(long maxWriters) {
              super((int)maxWriters, 0.75f, true);
              this.maxWriters = maxWriters;
          }
      
          @Override
          protected boolean removeEldestEntry(Map.Entry<String, AbstractHDFSWriter> eldest) {
              return this.size() > this.maxWriters;
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rpersaud Ryan Persaud
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m