Client exponential backoff

Added exponential backoff for master client.

Based off my testing, I found that the current 1 second sleep was taking 30% of my CPU time.  After switching to exponential backoff, the retry logic was no longer the top consumer (or even noticeable).

I made this change since it was effecting performance.  The current logic for worker doesn't have the same issue in my tests (prob cause the process doesnt get under load?), so rather not touch that code with this patch.
Will do
On Oct 27, 2014 9:45 AM, "Haoyuan Li" <notifications@github.com> wrote:

> In core/src/main/java/tachyon/retry/ExponentialBackoffRetry.java:
>
> > @@ -0,0 +1,30 @@
> > +package tachyon.retry;
> > +
> > +import java.util.Random;
> > +
> > +import com.google.common.base.Preconditions;
> > +
> > +public final class ExponentialBackoffRetry extends SleepingRetry {
>
> Do you mind adding Java doc here?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/401/files#r19417842>.
>