Skip to content

Commit

Permalink
Merge pull request #7673 from tschottdorf/disable-parallel-raft
Browse files Browse the repository at this point in the history
storage: disable handleRaftReady concurrency
  • Loading branch information
tbg authored Jul 7, 2016
2 parents 36edf3a + 8c02f0c commit 36b0edc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions storage/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package storage
import (
"bytes"
"fmt"
"runtime"
"sync"
"sync/atomic"
"time"
Expand Down Expand Up @@ -86,7 +85,9 @@ var changeTypeInternalToRaft = map[roachpb.ReplicaChangeType]raftpb.ConfChangeTy
roachpb.REMOVE_REPLICA: raftpb.ConfChangeRemoveNode,
}

var storeReplicaRaftReadyConcurrency = 2 * runtime.NumCPU()
// TODO(tschottdorf): It's currently unsafe to set this to any other value due
// to concurrency issues. See #7672 and the discussion within.
const storeReplicaRaftReadyConcurrency = 1

// TestStoreContext has some fields initialized with values relevant
// in tests.
Expand Down

0 comments on commit 36b0edc

Please sign in to comment.