Skip to content

Commit

Permalink
storage: disable handleRaftReady concurrency
Browse files Browse the repository at this point in the history
We discovered that this exacerbates (and makes harder to fix) problems
discovered in cockroachdb#7600.
  • Loading branch information
tbg committed Jul 7, 2016
1 parent ee996f9 commit 8c02f0c
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 8c02f0c

Please sign in to comment.