Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.1.0
-
None
-
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
- links to