Updated git submodules
authorMichael Vorburger <vorburger@redhat.com>
Tue, 11 Jul 2017 15:54:37 +0000 (21:24 +0530)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 20 Nov 2017 17:18:19 +0000 (17:18 +0000)
commite4e32c9f7b9134eefcefbe4ecd959bcd3bbaa29a
treed45eaaf685ccff2ff53765e491da0d6575dd4301
parentffb85b0ecbb396cd4cead828f1a177323b8163eb
Updated git submodules

Project: infrautils stable/carbon 39550b6b5f3bec7e46db3382d2ec6e1021b5496c

ListenableFutures util to simplify adding error logging callbacks

Intended for usage in existing code prevalent in e.g. genius and netvirt
which simply ignores Future returned by DataBroker Tx submit; using
this, at least we'll get to see logs.  (Ideal solution would be real
error recovery callbacks.)

NB: This is solution for today's world.  In tomorrow's world where e.g.
DataBroker (and other ODL APIs) switch from Guava's ListenableFuture to
Java 8's CompletionStage, this helper won't be required anymore, as code
then will be able to just use the easier:

    completionStage.exceptionally(t -> LOG.error("...", t));

instead of using this utility for today's APIs like this:

    import static
org.opendaylight.infrautils.utils.concurrent.MoreFutures.addErrorLogging;

    addErrorLogging(listenableFuture, LOG, "...");

Until that (major...) API switch happens though, this is a very
convenient utility to short-cut what otherwise is several lines of
boiler plate code.

TODO: It would be cool if this could, later, preserve the call stack...

Change-Id: I1d3e4afbc0940faa0c8f83e9d713c2e081e18a28
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
docs/submodules/infrautils