Skip to content

Commit

Permalink
Merge #32931
Browse files Browse the repository at this point in the history
32931: c-deps: bump RocksDB from 5.13 to 5.17.2 r=benesch a=petermattis

Pass `USE_RTTI=1` to the RocksDB build. 5.13 was built with rtti
enabled (there was no way to disable it), but 5.17.2 defaults to
disabling rtti. Unfortunately, the rest of our C++ dependencies build
with rtti enabled and C++ requires consistently specifying `-fno-rtti`
for all compilation, otherwise you get strange `undefined reference to
typeinfo` errors at link time. At least one of our C++
dependencies (cryptopp) does not allow easily disabling usage of rtti.

Verified that the `RocksDBDeleteRangeIterate` benchmark was unchanged
which indicates the RocksDB delete range patches are in effect.

Release note: None

Co-authored-by: Peter Mattis <petermattis@gmail.com>
  • Loading branch information
craig[bot] and petermattis committed Dec 7, 2018
2 parents 9c5db25 + 819183f commit 8d047b6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ STRESSFLAGS :=
## Cluster to use for `make roachprod-stress`
CLUSTER :=

## Verbose allows turning on verbose output from the cmake builds.
VERBOSE :=

DUPLFLAGS := -t 100
GOFLAGS :=
TAGS :=
Expand Down Expand Up @@ -551,7 +554,8 @@ $(ROCKSDB_DIR)/Makefile: $(C_DEPS_DIR)/rocksdb-rebuild | bin/.submodules-initial
$(if $(findstring release,$(BUILDTYPE)),-DPORTABLE=ON) -DWITH_GFLAGS=OFF \
-DSNAPPY_LIBRARIES=$(LIBSNAPPY) -DSNAPPY_INCLUDE_DIR="$(SNAPPY_SRC_DIR);$(SNAPPY_DIR)" -DWITH_SNAPPY=ON \
$(if $(use-stdmalloc),,-DJEMALLOC_LIBRARIES=$(LIBJEMALLOC) -DJEMALLOC_INCLUDE_DIR=$(JEMALLOC_DIR)/include -DWITH_JEMALLOC=ON) \
-DCMAKE_BUILD_TYPE=$(if $(ENABLE_ROCKSDB_ASSERTIONS),Debug,Release)
-DCMAKE_BUILD_TYPE=$(if $(ENABLE_ROCKSDB_ASSERTIONS),Debug,Release) \
-DUSE_RTTI=1

$(SNAPPY_DIR)/Makefile: $(C_DEPS_DIR)/snappy-rebuild | bin/.submodules-initialized
rm -rf $(SNAPPY_DIR)
Expand Down
1 change: 1 addition & 0 deletions build/variables.mk
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ define VALID_VARS
UI_TS_OSS
UNAME
USE_ROCKSDB_ASSERTIONS
VERBOSE
WEBPACK
WEBPACK_DASHBOARD
WEBPACK_DEV_SERVER
Expand Down
2 changes: 1 addition & 1 deletion c-deps/rocksdb
Submodule rocksdb updated 626 files
2 changes: 1 addition & 1 deletion c-deps/rocksdb-rebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Bump the version below when changing rocksdb CMake flags. Search for "BUILD
ARTIFACT CACHING" in build/common.mk for rationale.

10
11
2 changes: 1 addition & 1 deletion pkg/storage/engine/rocksdb_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func TestRocksDBErrorSafeMessage(t *testing.T) {
{
err: rErr,
// "locks" is redacted because this last part of the message is actually from `strerror` (ANSI-C).
expMsg: "io error while lock file <redacted> no <redacted> available",
expMsg: "io error lock <redacted> <redacted> no <redacted> available",
},
{
// A real-world example.
Expand Down

0 comments on commit 8d047b6

Please sign in to comment.