}
if(waitCount > WAIT_TIME) {
- System.err.println("AsyncBarrierImpl.waitBarrier("
+ LOGGER.warn("AsyncBarrierImpl.waitBarrier("
+ request
+ ") is taking long to execute, so far "
+ (waitCount / 1000) + " s.");
public class BarrierTracing {
- public static final boolean BOOKKEEPING = false;
+ private static final String KEY = "SIMANTICS_DB_IMPL_BARRIER_TRACING";
+
+ public static final boolean BOOKKEEPING = Boolean.parseBoolean(
+ System.getProperty("org.simantics.db.impl.barrierTracing",
+ System.getenv(KEY) != null ? System.getenv(KEY) : "false")
+ );
static final boolean RESTART_GUARD = BOOKKEEPING && false;
public static Map<SessionTask,Exception> tasks = new HashMap<>();