mirror of
https://github.com/google/nomulus.git
synced 2025-08-21 16:51:10 +02:00
Compare datastore to sql action (#1507)
* Add action to DB comparison pipeline Add a backend Action in Nomulus server that lanuches the pipeline for comparing datastore (secondary) with Cloud SQL (primary). * Save progress * Revert test changes * Add pipeline launching
This commit is contained in:
parent
e53594a626
commit
82802ec85c
15 changed files with 563 additions and 53 deletions
|
@ -41,4 +41,20 @@ public interface Sleeper {
|
|||
* @see com.google.common.util.concurrent.Uninterruptibles#sleepUninterruptibly
|
||||
*/
|
||||
void sleepUninterruptibly(ReadableDuration duration);
|
||||
|
||||
/**
|
||||
* Puts the current thread to interruptible sleep.
|
||||
*
|
||||
* <p>This is a convenience method for {@link #sleep} that properly converts an {@link
|
||||
* InterruptedException} to a {@link RuntimeException}.
|
||||
*/
|
||||
default void sleepInterruptibly(ReadableDuration duration) {
|
||||
try {
|
||||
sleep(duration);
|
||||
} catch (InterruptedException e) {
|
||||
// Restore current thread's interrupted state.
|
||||
Thread.currentThread().interrupt();
|
||||
throw new RuntimeException("Interrupted.", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue