Compaction Iterator Bug
See original GitHub issueI am not sure if this is a bug with the FileCompactor
, the SlowIterator
or not a bug at all. While testing 2.1 with my changes in #2541, I have Uno setup to run the SlowIterator
during a compaction of some CI data. The compaction will start up but it won’t get registered in ZK under the fate directory. It will never make it past this section of code in FileCompactor
:
while (itr.hasTop() && env.isCompactionEnabled()) { mfw.append(itr.getTopKey(), itr.getTopValue()); itr.next(); entriesCompacted++; if (entriesCompacted % 1024 == 0) { // Periodically update stats, do not want to do this too often since its volatile entriesWritten.addAndGet(1024); } }
I assume the source of the SlowIterator
will always return true for hasTop()
, hence why it never makes it past this code. It could just be a bug when using the SlowIterator
with compactions. But if a user creates an iterator that does something similiar, I wonder if it will run indefinitely. Also, I only have the sleepTime of the SlowIterator
configured for 5ms.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Iterators - Accumulo Documentation
Accumulo references the Iterator class by name and uses Java reflection to ... If no options are used in the current context (a...
Read more >Compaction bug · Issue #4879 · facebook/rocksdb - GitHub
When the compaction iterator meet the key 79 , and the next valid key is 131 , and the output file is determined...
Read more >IntersectingIterator (Apache Accumulo Core 1.8.0 API)
This iterator facilitates document-partitioned indexing. It involves grouping a set of documents together and indexing those documents into a single row of ...
Read more >(gc) Require heap compaction (return memory to OS)
This demonstrates the VM bug where objects are garbage collected but that memory is never returned to the OS (this has only been...
Read more >Blog | RocksDB
With the RocksDB tiered storage feature, RocksDB compaction migrates the data from hot ... A RocksDB scan usually involves the allocation of a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@milleruntime Only one way to find out. You definitely have to run it for 4+ hours now…
I’m not seeing the link between the code and the compaction not showing up in ZK.