]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/log
rocksdb.git
7 years agodb: VersionEdit can understand the format introduced in PR 3488. ceph-nautilus
Radoslaw Zarzynski [Tue, 21 Aug 2018 19:47:48 +0000 (21:47 +0200)]
db: VersionEdit can understand the format introduced in PR 3488.

RocksDB's PR 3488 introduced a new format of `VersionEdit`
encoding which is not understandable for older versions.
Thus, the change broke forward compatibility and has been
reverted in PR 3762. Later, PR 3765 reiterated the concept
but in a way that does not provide compatibility with the very
short-living format of PR 3488.

This change tries to address the issue of accessing DBs
in format of 3488 by ignoring the special entries.

Fixes: http://tracker.ceph.com/issues/25146
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoUpdate history for 5.17.2 release v5.17.2
Fosco Marotto [Mon, 12 Nov 2018 19:57:32 +0000 (11:57 -0800)]
Update history for 5.17.2 release

7 years agoBump version
Yanqin Jin [Fri, 2 Nov 2018 22:22:52 +0000 (15:22 -0700)]
Bump version

7 years agoUpdate TARGET file after changing buck template
Yanqin Jin [Fri, 2 Nov 2018 22:21:10 +0000 (15:21 -0700)]
Update TARGET file after changing buck template

7 years agoChange BUCK template files (#4624)
Philip Jameson [Fri, 2 Nov 2018 21:20:20 +0000 (14:20 -0700)]
Change BUCK template files (#4624)

Summary:
Slightly changes the format of generated BUCK files for Facebook consumption. Generated targets end up looking like this:
```
cpp_library(
    name = "rocksdb_tools_lib",
    srcs = [
        "tools/db_bench_tool.cc",
        "tools/trace_analyzer_tool.cc",
        "util/testutil.cc",
    ],
    auto_headers = AutoHeaders.RECURSIVE_GLOB,
    arch_preprocessor_flags = rocksdb_arch_preprocessor_flags,
    compiler_flags = rocksdb_compiler_flags,
    preprocessor_flags = rocksdb_preprocessor_flags,
    deps = [":rocksdb_lib"],
    external_deps = rocksdb_external_deps,
)
```
Instead of
```
cpp_library(
    name = "rocksdb_tools_lib",
    srcs = [
        "tools/db_bench_tool.cc",
        "tools/trace_analyzer_tool.cc",
        "util/testutil.cc",
    ],
    headers = AutoHeaders.RECURSIVE_GLOB,
    arch_preprocessor_flags = rocksdb_arch_preprocessor_flags,
    compiler_flags = rocksdb_compiler_flags,
    preprocessor_flags = rocksdb_preprocessor_flags,
    deps = [":rocksdb_lib"],
    external_deps = rocksdb_external_deps,
)
```
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4624

Reviewed By: riversand963

Differential Revision: D12906711

Pulled By: philipjameson

fbshipit-source-id: 32ab64a3390cdcf2c4043ff77517ac1ad58a5e2b

7 years agoRevert "Introduce CacheAllocator, a custom allocator for cache blocks (#4437)"
Fosco Marotto [Wed, 31 Oct 2018 21:55:11 +0000 (14:55 -0700)]
Revert "Introduce CacheAllocator, a custom allocator for cache blocks (#4437)"

This reverts commit bb3b2eb960a162e10d7730f4e0a08fd8801d6184.

7 years agoIntroduce CacheAllocator, a custom allocator for cache blocks (#4437)
Igor Canadi [Wed, 3 Oct 2018 00:21:54 +0000 (17:21 -0700)]
Introduce CacheAllocator, a custom allocator for cache blocks (#4437)

Summary:
This is a conceptually simple change, but it touches many files to
pass the allocator through function calls.

We introduce CacheAllocator, which can be used by clients to configure
custom allocator for cache blocks. Our motivation is to hook this up
with folly's `JemallocNodumpAllocator`
(https://github.com/facebook/folly/blob/f43ce6d6866b7b994b3019df561109afae050ebc/folly/experimental/JemallocNodumpAllocator.h),
but there are many other possible use cases.

Additionally, this commit cleans up memory allocation in
`util/compression.h`, making sure that all allocations are wrapped in a
unique_ptr as soon as possible.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4437

Differential Revision: D10132814

Pulled By: yiwu-arbug

fbshipit-source-id: be1343a4b69f6048df127939fea9bbc96969f564

7 years agoFix compile error with jemalloc (#4488)
Yi Wu [Fri, 12 Oct 2018 18:48:52 +0000 (11:48 -0700)]
Fix compile error with jemalloc (#4488)

Summary:
The "je_" prefix of jemalloc APIs presents only when the macro `JEMALLOC_NO_RENAME` from jemalloc.h presents.

With the patch I'm also adding -DROCKSDB_JEMALLOC flag in buck TARGETS.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4488

Differential Revision: D10355971

Pulled By: yiwu-arbug

fbshipit-source-id: 03a2d69790a44ac89219c7525763fa937a63d95a

7 years agoUpdate HISTORY.md
Anand Ananthabhotla [Fri, 19 Oct 2018 23:38:03 +0000 (16:38 -0700)]
Update HISTORY.md

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

7 years agoHandle mixed slowdown/no_slowdown writer properly (#4475)
Anand Ananthabhotla [Wed, 10 Oct 2018 05:50:59 +0000 (22:50 -0700)]
Handle mixed slowdown/no_slowdown writer properly (#4475)

Summary:
There is a bug when the write queue leader is blocked on a write
delay/stop, and the queue has writers with WriteOptions::no_slowdown set
to true. They are not woken up until the write stall is cleared.

The fix introduces a dummy writer inserted at the tail to indicate a
write stall and prevent further inserts into the queue, and a condition
variable that writers who can tolerate slowdown wait on before adding
themselves to the queue. The leader calls WriteThread::BeginWriteStall()
to add the dummy writer and then walk the queue to fail any writers with
no_slowdown set. Once the stall clears, the leader calls
WriteThread::EndWriteStall() to remove the dummy writer and signal the
condition variable.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4475

Differential Revision: D10285827

Pulled By: anand1976

fbshipit-source-id: 747465e5e7f07a829b1fb0bc1afcd7b93f4ab1a9

7 years agoFix WriteBatchWithIndex's SeekForPrev() (#4559)
Siying Dong [Fri, 19 Oct 2018 21:38:32 +0000 (14:38 -0700)]
Fix WriteBatchWithIndex's SeekForPrev() (#4559)

Summary:
WriteBatchWithIndex's SeekForPrev() has a bug that we internally place the position just before the seek key rather than after. This makes the iterator to miss the result that is the same as the seek key. Fix it by position the iterator equal or smaller.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4559

Differential Revision: D10468534

Pulled By: siying

fbshipit-source-id: 2fb371ae809c561b60a1c11cef71e1c66fea1f19