From 035efd79cf4b135a21330925afcda0415ecd9062 Mon Sep 17 00:00:00 2001 From: Evan Tschannen Date: Mon, 26 Jun 2017 12:12:47 -0700 Subject: [PATCH 1/4] fix: if a database gets locked after an unknown result, the dummyTransaction will be stuck until the database is unlocked --- fdbclient/NativeAPI.actor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/fdbclient/NativeAPI.actor.cpp b/fdbclient/NativeAPI.actor.cpp index b74abe4148..ac895c3230 100644 --- a/fdbclient/NativeAPI.actor.cpp +++ b/fdbclient/NativeAPI.actor.cpp @@ -2424,6 +2424,7 @@ ACTOR static Future commitDummyTransaction( Database cx, KeyRange range, T tr.info.taskID = info.taskID; tr.setOption( FDBTransactionOptions::ACCESS_SYSTEM_KEYS ); tr.setOption( FDBTransactionOptions::CAUSAL_WRITE_RISKY ); + tr.setOption( FDBTransactionOptions::LOCK_AWARE ); tr.addReadConflictRange(range); tr.addWriteConflictRange(range); Void _ = wait( tr.commit() ); From 8f7c76ddd31e908b5b3ed4a380745497b49cd424 Mon Sep 17 00:00:00 2001 From: Alvin Moore Date: Mon, 26 Jun 2017 15:54:57 -0700 Subject: [PATCH 2/4] Merge branch 'release-4.6' into release-5.0 # Conflicts: # fdbserver/Knobs.h Updated Windows GUID Updated and corrected format of Protocol Version --- flow/Net2.actor.cpp | 8 ++++---- packaging/msi/FDBInstaller.wxs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flow/Net2.actor.cpp b/flow/Net2.actor.cpp index a19b49c59c..28c9a74e43 100644 --- a/flow/Net2.actor.cpp +++ b/flow/Net2.actor.cpp @@ -52,7 +52,7 @@ using namespace boost::asio::ip; // These impact both communications and the deserialization of certain zookeeper, database and IKeyValueStore keys // xyzdev // vvvv -uint64_t currentProtocolVersion = 0x0FDB00A470010001LL; +uint64_t currentProtocolVersion = 0x0FDB00A550010001LL; uint64_t compatibleProtocolVersionMask = 0xffffffffffff0000LL; uint64_t minValidProtocolVersion = 0x0FDB00A200060001LL; @@ -550,7 +550,7 @@ void Net2::run() { timeOffsetLogger = logTimeOffset(); startProfiling(this); - + // Get the address to the launch function typedef void (*runCycleFuncPtr)(); runCycleFuncPtr runFunc = reinterpret_cast(reinterpret_cast(g_network->global(INetwork::enRunCycleFunc))); @@ -606,7 +606,7 @@ void Net2::run() { taskBegin = timer_monotonic(); numYields = 0; int minTaskID = TaskMaxPriority; - + while (!ready.empty()) { ++countTasks; currentTaskID = ready.top().taskID; @@ -671,7 +671,7 @@ void Net2::run() { } #endif - if ((nnow-now) > FLOW_KNOBS->SLOW_LOOP_CUTOFF && g_nondeterministic_random->random01() < (nnow-now)*FLOW_KNOBS->SLOW_LOOP_SAMPLING_RATE) + if ((nnow-now) > FLOW_KNOBS->SLOW_LOOP_CUTOFF && g_nondeterministic_random->random01() < (nnow-now)*FLOW_KNOBS->SLOW_LOOP_SAMPLING_RATE) TraceEvent("SomewhatSlowRunLoopBottom").detail("Elapsed", nnow - now); // This includes the time spent running tasks trackMinPriority( minTaskID, nnow ); diff --git a/packaging/msi/FDBInstaller.wxs b/packaging/msi/FDBInstaller.wxs index ea4de9f35a..1fc0160c77 100644 --- a/packaging/msi/FDBInstaller.wxs +++ b/packaging/msi/FDBInstaller.wxs @@ -32,7 +32,7 @@ Date: Mon, 26 Jun 2017 18:05:31 -0700 Subject: [PATCH 3/4] Generated new Windows GUID after release 5.0 --- packaging/msi/FDBInstaller.wxs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/msi/FDBInstaller.wxs b/packaging/msi/FDBInstaller.wxs index 1fc0160c77..0c5087d42d 100644 --- a/packaging/msi/FDBInstaller.wxs +++ b/packaging/msi/FDBInstaller.wxs @@ -32,7 +32,7 @@ Date: Tue, 27 Jun 2017 10:54:50 -0700 Subject: [PATCH 4/4] Updated version after release --- versions.target | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions.target b/versions.target index 3661c2a76f..fde51a1507 100644 --- a/versions.target +++ b/versions.target @@ -1,7 +1,7 @@ - 5.0.0 + 5.0.1 5.0