Reduce default RBF DB size to 4GB; remove race skips

This commit is contained in:
Ben Johnson 2020-10-06 09:34:17 -06:00
parent 644969e6a9
commit 7b64abbb53
4 changed files with 1 additions and 22 deletions

View file

@ -35,7 +35,6 @@ import (
"github.com/davecgh/go-spew/spew"
"github.com/pilosa/pilosa/v2/pql"
"github.com/pilosa/pilosa/v2/race"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/pilosa/pilosa/v2/testhook"
"github.com/pkg/errors"
@ -450,10 +449,6 @@ func TestFragment_SetValue(t *testing.T) {
})
t.Run("QuickCheck", func(t *testing.T) {
if os.Getenv("PILOSA_TXSRC") == "rbf" && race.Enabled {
t.Skip("race detection enabled, skipping for rbf")
}
if err := quick.Check(func(bitDepth uint, bitN uint64, values []uint64) bool {
// Limit bit depth & maximum values.
bitDepth = (bitDepth % 62) + 1

View file

@ -19,4 +19,4 @@ package rbf
// DefaultMaxSize is the default mmap size and therefore the maximum allowed
// size of the database. The size can be increased by updating the DB.MaxSize
// and reopening the database. This setting mainly affects virtual space usage.
const DefaultMaxSize = 100 * (1 << 30) // 100GB
const DefaultMaxSize = 4 * (1 << 30)

View file

@ -26,7 +26,6 @@ import (
"time"
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/race"
"github.com/pilosa/pilosa/v2/server"
"github.com/pilosa/pilosa/v2/test"
"golang.org/x/sync/errgroup"
@ -634,10 +633,6 @@ func TestCluster_GossipMembership(t *testing.T) {
}
func TestClusterResize_RemoveNode(t *testing.T) {
if os.Getenv("PILOSA_TXSRC") == "rbf" && race.Enabled {
t.Skip("race detection enabled, skipping for rbf")
}
cluster := test.MustRunCluster(t, 3)
defer cluster.Close()
m0 := cluster.GetNode(0)

View file

@ -34,7 +34,6 @@ import (
"github.com/pilosa/pilosa/v2"
"github.com/pilosa/pilosa/v2/http"
"github.com/pilosa/pilosa/v2/pql"
"github.com/pilosa/pilosa/v2/race"
"github.com/pilosa/pilosa/v2/roaring"
"github.com/pilosa/pilosa/v2/server"
"github.com/pilosa/pilosa/v2/test"
@ -52,8 +51,6 @@ func init() { // nolint: gochecknoinits
func TestMain_Set_Quick(t *testing.T) {
if testing.Short() {
t.Skip("short")
} else if os.Getenv("PILOSA_TXSRC") == "rbf" && race.Enabled {
t.Skip("race detection enabled, skipping for rbf")
}
for i := 0; i < 100; i++ {
@ -950,10 +947,6 @@ func TestMain_ImportTimestampNoStandardView(t *testing.T) {
}
func TestClusterQueriesAfterRestart(t *testing.T) {
if os.Getenv("PILOSA_TXSRC") == "rbf" && race.Enabled {
t.Skip("race detection enabled, skipping for rbf")
}
cluster := test.MustRunCluster(t, 3)
defer cluster.Close()
cmd1 := cluster.GetNode(1)
@ -1178,10 +1171,6 @@ func TestClusterExhaustingConnectionsImport(t *testing.T) {
}
func TestClusterMinMaxSumDecimal(t *testing.T) {
if os.Getenv("PILOSA_TXSRC") == "rbf" && race.Enabled {
t.Skip("race detection enabled, skipping for rbf")
}
cluster := test.MustRunCluster(t, 3)
defer cluster.Close()
cmd := cluster.GetNode(0)