Skip to content

Move MinorCompaction method call into retry catch block. Fixes #1298#1675

Merged
milleruntime merged 1 commit intoapache:1.9from
milleruntime:flush-ioexception
Aug 12, 2020
Merged

Move MinorCompaction method call into retry catch block. Fixes #1298#1675
milleruntime merged 1 commit intoapache:1.9from
milleruntime:flush-ioexception

Conversation

@milleruntime
Copy link
Contributor

  • Fixes the situation when MinorCompactionTask creates a
    new File and an IOException leaves the Tablet in a bad state
  • Moves the new file code into the try/catch block that will
    retry during an IOException

I was not able to create a test for this scenario but I did simulate it by manually throwing the exception in the Tablet code. I ran TableIT with the simulated IOException and it was able to recover.

…#1298

* Fixes the situation when MinorCompactionTask creates a
new File and an IOException leaves the Tablet in a bad state
* Moves the new file code into the try/catch block that will
retry during an IOException
Copy link
Member

@ctubbsii ctubbsii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ctubbsii
Copy link
Member

FWIW, I ran all the ITs with this change, and everything passed (except a transient FateStarvationIT failure that is unrelated and which passed on a subsequent run).

@milleruntime
Copy link
Contributor Author

FWIW, I ran all the ITs with this change, and everything passed (except a transient FateStarvationIT failure that is unrelated and which passed on a subsequent run).

Great thank you!

@milleruntime milleruntime merged commit 18e8239 into apache:1.9 Aug 12, 2020
@milleruntime milleruntime deleted the flush-ioexception branch August 12, 2020 12:30
keith-turner added a commit to keith-turner/accumulo that referenced this pull request Aug 14, 2020
@ctubbsii ctubbsii added this to the 1.10.0 milestone Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments