forked from pool/rocksdb
cccb8b99b9
- update to 8.6.7 * Fixed a bug where compaction read under non direct IO still falls back to RocksDB internal prefetching after file system's prefetching returns non-OK status other than Status::NotSupported() * For non direct IO, eliminate the file system prefetching attempt for compaction read when Options::compaction_readahead_size is 0 - update to 8.6.6 * Fix a bug with atomic_flush=true that can cause DB to stuck after a flush fails * Fix a bug where RocksDB (with atomic_flush=false) can delete output SST files of pending flushes when a previous concurrent flush fails * When the compressed secondary cache capacity is reduced to 0, it should be completely disabled. Before this fix, inserts and lookups would still go to the backing LRUCache - update to 8.6.5 * Fixed a bug where rocksdb.file.read.verify.file.checksums.micros is not populated. - update to 8.6.4 * Public API change: Add a column family option default_temperature that is used for file reading accounting purpose, such as io statistics, for files that don't have an explicitly set temperature. - update to 8.6.3 * Fix a bug where if there is an error reading from offset 0 of a file from L1+ and that the file is not the first file in the sorted run, data can be lost in compaction and read/scan can return incorrect results. * Fix a bug where iterator may return incorrect result for DeleteRange() users if there was an error reading from a file. - update to 8.6.2 * Fix for async_io where during seek, when reading a block for seeking a target key in a file without any readahead, the iterator aligned the read on a page boundary and reading more than necessary. This increased the storage read bandwidth usage. - update to 8.6.1 * Options::compaction_readahead_size 's default value is changed from 0 to 2MB. * Compaction read performance will regress when Options::compaction_readahead_size is explicitly set to 0 - update to 8.6.0 * Added enhanced data integrity checking on SST files with new format_version=6. * Add a new feature to trim readahead_size during scans upto upper_bound when iterate_upper_bound is specified. * RocksDB will compare the number of input keys to the number of keys processed after each compaction. * Add a CF option bottommost_file_compaction_delay to allow specifying the delay of bottommost level single-file compactions. * Add support to allow enabling / disabling user-defined timestamps feature for an existing column family in combination with the in-Memtable only feature. * Implement a new admission policy for the compressed secondary cache that admits blocks evicted from the primary cache with the hit bit set. * Add a column family option memtable_max_range_deletions that limits the number of range deletions in a memtable. * Add PutEntity API in sst_file_writer * Add timeout in microsecond option to WaitForCompactOptions * New statistics rocksdb.file.read.{get|multiget|db.iterator|verify.checksum|verify.file.checksums}.micros measure read time of block-based SST tables or blob files during db open, Get(), MultiGet(), using db iterator, VerifyFileChecksums() and VerifyChecksum(). They require stats level greater than StatsLevel::kExceptDetailedTimers. OBS-URL: https://build.opensuse.org/request/show/1116481 OBS-URL: https://build.opensuse.org/package/show/server:database/rocksdb?expand=0&rev=24
148 lines
4.7 KiB
RPMSpec
148 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package rocksdb
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
# Copyright (c) 2023 Andreas Stieger <Andreas.Stieger@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define lib_name librocksdb8
|
|
%bcond_with jemalloc
|
|
Name: rocksdb
|
|
Version: 8.6.7
|
|
Release: 0
|
|
Summary: Library for embeddable, persistent and fast key-value store
|
|
License: (Apache-2.0 OR GPL-2.0-only) AND BSD-2-Clause
|
|
URL: https://rocksdb.org/
|
|
Source: https://github.com/facebook/rocksdb/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Patch0: rocksdb-8.0.0-reproducible.patch
|
|
Patch1: rocksdb-8.0.0-shared-liburing.patch
|
|
Patch2: rocksdb-8.0.0-rpath.patch
|
|
BuildRequires: c++_compiler
|
|
BuildRequires: cmake
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: cmake(Snappy)
|
|
BuildRequires: pkgconfig(bzip2)
|
|
BuildRequires: pkgconfig(liblz4)
|
|
BuildRequires: pkgconfig(liburing)
|
|
BuildRequires: pkgconfig(libzstd)
|
|
BuildRequires: pkgconfig(zlib)
|
|
%if %{with jemalloc}
|
|
BuildRequires: pkgconfig(jemalloc)
|
|
%endif
|
|
# see SR#1075555 for gflags linking failure
|
|
%if 0%{?suse_version} > 1500
|
|
BuildRequires: pkgconfig(gflags)
|
|
%else
|
|
BuildRequires: gflags-devel-static
|
|
%endif
|
|
|
|
%description
|
|
RocksDB is a high performance embedded database for key-value data.
|
|
It is a fork of LevelDB which was then optimized to exploit many
|
|
central processing unit (CPU) cores, and make efficient use of fast
|
|
storage, such as solid-state drives (SSD), for input/output (I/O)
|
|
bound workloads. It is based on a log-structured merge-tree (LSM tree)
|
|
data structure.
|
|
|
|
%package -n %{lib_name}
|
|
Summary: Shared library from rocksdb
|
|
|
|
%description -n %{lib_name}
|
|
RocksDB is a high performance embedded database for key-value data.
|
|
It is a fork of LevelDB which was then optimized to exploit many
|
|
central processing unit (CPU) cores, and make efficient use of fast
|
|
storage, such as solid-state drives (SSD), for input/output (I/O)
|
|
bound workloads. It is based on a log-structured merge-tree (LSM tree)
|
|
data structure.
|
|
|
|
This package holds the shared library of rocksdb.
|
|
|
|
%package tools
|
|
Summary: Utility tools for RocksDB
|
|
# MariaDB ships /usr/bin/sst_dump - MDEV-14918
|
|
Conflicts: mariadb
|
|
|
|
%description tools
|
|
RocksDB is a high performance embedded database for key-value data.
|
|
This package contains utility tools for RocksDB.
|
|
|
|
%package devel
|
|
Summary: Development package for RocksDB
|
|
Requires: %{lib_name} = %{version}
|
|
|
|
%description devel
|
|
RocksDB is a high performance embedded database for key-value data.
|
|
It is a fork of LevelDB which was then optimized to exploit many
|
|
central processing unit (CPU) cores, and make efficient use of fast
|
|
storage, such as solid-state drives (SSD), for input/output (I/O)
|
|
bound workloads. It is based on a log-structured merge-tree (LSM tree)
|
|
data structure.
|
|
|
|
This package contains the files needed to compile programs that use
|
|
the RocksDB library.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
# building tests is disabled, because they require additional instrumentation,
|
|
# which is build in library in debug mode and adds some overhead.
|
|
# Warnings: https://github.com/facebook/rocksdb/issues/11043
|
|
%cmake \
|
|
-DPORTABLE=1 \
|
|
-DFAIL_ON_WARNINGS=OFF \
|
|
%if !%{with jemalloc}
|
|
-DWITH_JEMALLOC=0 \
|
|
%endif
|
|
-DWITH_SNAPPY=ON \
|
|
-DWITH_LZ4=ON \
|
|
-DWITH_ZLIB=ON \
|
|
-DWITH_ZSTD=ON \
|
|
-DWITH_BZ2=ON \
|
|
-DWITH_TESTS=OFF \
|
|
-DWITH_TOOLS=OFF \
|
|
-DWITH_BENCHMARK_TOOLS=OFF \
|
|
%{nil}
|
|
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
find %{buildroot}%{_libdir} -type f -name "*.a" -print -delete
|
|
install -dD -m 755 %{buildroot}/%{_bindir}
|
|
install -m 755 build/tools/ldb %{buildroot}/%{_bindir}/ldb
|
|
install -m 755 build/tools/sst_dump %{buildroot}/%{_bindir}/sst_dump
|
|
|
|
%ldconfig_scriptlets -n %{lib_name}
|
|
|
|
%files -n %{lib_name}
|
|
%license COPYING LICENSE.Apache LICENSE.leveldb
|
|
%{_libdir}/librocksdb.so.*
|
|
|
|
%files tools
|
|
%license COPYING LICENSE.Apache LICENSE.leveldb
|
|
%{_bindir}/ldb
|
|
%{_bindir}/sst_dump
|
|
|
|
%files devel
|
|
%license COPYING LICENSE.Apache LICENSE.leveldb
|
|
%doc README.md HISTORY.md LANGUAGE-BINDINGS.md
|
|
%{_includedir}/rocksdb
|
|
%{_libdir}/librocksdb.so
|
|
%{_libdir}/pkgconfig/rocksdb.pc
|
|
%{_libdir}/cmake/rocksdb
|
|
|
|
%changelog
|