Skip to content
Snippets Groups Projects
Commit 2978ed20 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Roman Tsisyk
Browse files

vinyl: abort checkpoint on dump error

 - Propagate dump/compact errors from workers to vy_scheduler->diag via
   vy_task->diag and log errors from the scheduler.
 - Abort vy_wait_checkpoint() from the scheduler if it fails to schedule
   a task or a task completes with error.
 - Throttle the scheduler whenever it encounters an error, so as not to
   burn CPU by rescheduling the same faulty task over and over again.
   The timeout grows exponentially with each successive failure, min 1
   second, max 60 seconds.
 - Abort vy_checkpoint() if the scheduler is throttled.
 - Rename ERRINJ_VY_RANGE_CREATE to ERRINJ_VY_RANGE_DUMP and abort any
   dump if it is set in order to make vinyl/errinj test predictable
   (we don't know when a range is actually created - it may happen
   before box.snapshot() - so the latter isn't bound to fail if
   ERRINJ_VY_RANGE_CREATE is set).

Closes #1857
parent aad6f005
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment