From b19611010a652efb1e8357def764daf3b4d5124c Mon Sep 17 00:00:00 2001 From: "A.J. Beamon" Date: Wed, 19 Jul 2017 12:58:21 -0700 Subject: [PATCH 01/14] Add ability to disable options in specific bindings, use it to disable callbacks on external threads in java --- .../cie/foundationdb/test/AbstractTester.java | 3 +- fdbclient/vexillographer/fdb.options | 3 +- fdbclient/vexillographer/java.cs | 1 - fdbclient/vexillographer/vexillographer.cs | 34 ++++++++++++------- 4 files changed, 26 insertions(+), 15 deletions(-) diff --git a/bindings/java/src-completable/test/com/apple/cie/foundationdb/test/AbstractTester.java b/bindings/java/src-completable/test/com/apple/cie/foundationdb/test/AbstractTester.java index 2ef9abb340..e5cb4e596c 100644 --- a/bindings/java/src-completable/test/com/apple/cie/foundationdb/test/AbstractTester.java +++ b/bindings/java/src-completable/test/com/apple/cie/foundationdb/test/AbstractTester.java @@ -94,7 +94,8 @@ public abstract class AbstractTester { if (!args.useExternalClient()) { throw new IllegalArgumentException("Cannot enable callbacks on external thread without using external client"); } - fdb.options().setCallbacksOnExternalThreads(); + throw new IllegalArgumentException("Cannot enable callbacks on external thread in Java"); + //fdb.options().setCallbacksOnExternalThreads(); } if (args.useExternalClient()) { fdb.options().setDisableLocalClient(); diff --git a/fdbclient/vexillographer/fdb.options b/fdbclient/vexillographer/fdb.options index 6e70dd9eec..a9dc05ec7f 100644 --- a/fdbclient/vexillographer/fdb.options +++ b/fdbclient/vexillographer/fdb.options @@ -82,7 +82,8 @@ description is not currently required but encouraged.