This patch improves logging when we perform last-resort cleanup
from garbage collector, so that the type of client handle is also
logged. This allows us to discern snapshots and snapshots.
Also lower the logging level to INFO, as this is something that
should be fixed by whoever is causing it, but it does not pose
serious threat to stability.
Change-Id: Iad55c49de87ca73f9671f04f569be7eae0e4f885
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
public void finalizeReferent() {
FINALIZERS.remove(this);
if (transaction.abort()) {
- LOG.warn("Aborted orphan transaction {}", transaction.getIdentifier());
+ LOG.info("Aborted orphan transaction {}", transaction);
}
}
}
package org.opendaylight.controller.cluster.databroker.actors.dds;
import com.google.common.annotations.Beta;
+import com.google.common.base.MoreObjects;
import com.google.common.base.Preconditions;
import java.util.Collection;
import java.util.Map;
Preconditions.checkState(local != null, "Transaction %s is closed", transactionId);
return local;
}
+
+ @Override
+ public final String toString() {
+ return MoreObjects.toStringHelper(this).omitNullValues().add("identifier", transactionId).add("state", state)
+ .toString();
+ }
}