question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compaction Iterator Bug

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
Manno15commented, Mar 3, 2022

@milleruntime Only one way to find out. You definitely have to run it for 4+ hours now…

1reaction
dlmarioncommented, Mar 4, 2022

I’m not seeing the link between the code and the compaction not showing up in ZK.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found