Skip to content

Commit

Permalink
rm rocksdb
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcchen committed May 5, 2024
1 parent 9dc93e9 commit efce5f3
Show file tree
Hide file tree
Showing 18 changed files with 2 additions and 613 deletions.
9 changes: 0 additions & 9 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,6 @@ The text of each license is also included in licenses/LICENSE-[project].txt.
* gtest (https://github.com/google/googletest)
* gflag (https://github.com/gflags/gflags)

================================================================
GPL-2.0 licenses
================================================================
The following components are provided under the BSD-3-Clause License. See project link for details.
The text of each license is also included in the source code.

* zstd (https://github.com/facebook/zstd)
* rocksdb (https://github.com/facebook/rocksdb)

================================================================
Public Domain
================================================================
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
2. ResilientDB requires deploying at least **3f+1** replicas, where **f (f > 0)** is the maximum number of arbitrary (or malicious) replicas.
3. ResilientDB supports primary-backup architecture, which designates one of the replicas as the **primary** (replica with identifier **0**). The primary replica initiates consensus on a client transaction, while backups agree to follow a non-malicious primary.
4. ResilientDB exposes a wide range of interfaces such as a **Key-Value** store, **Smart Contracts**, **UTXO**, and **Python SDK**. Following are some of the decentralized applications (DApps) built on top of ResilientDB: **[NFT Marketplace](https://nft.resilientdb.com/)** and **[Debitable](https://debitable.resilientdb.com/)**.
5. To persist blockchain, chain state, and metadata, ResilientDB provides durability through **LevelDB** and **RocksDB**.
5. To persist blockchain, chain state, and metadata, ResilientDB provides durability through **LevelDB**.
6. ResilientDB provides access to a seamless **GUI display** for deployment and maintenance, and supports **Grafana** for plotting monitoring data.
7. **[Historial Facts]** The ResilientDB project was founded by **[Mohammad Sadoghi](https://expolab.org/)** along with his students ([Suyash Gupta](https://gupta-suyash.github.io/index.html) as the lead Architect, [Sajjad Rahnama](https://sajjadrahnama.com/) as the lead System Designer, and [Jelle Hellings](https://www.jhellings.nl/)) at **[UC Davis](https://www.ucdavis.edu/)** in 2018 and was open-sourced in late 2019. On September 30, 2021, we released ResilientDB v-3.0. In 2022, ResilientDB was completely re-written and re-architected ([Junchao Chen](https://github.com/cjcchen) as the lead Architect, [Dakai Kang](https://github.com/DakaiKang) as the lead Recovery Architect along with the entire [NexRes Team](https://resilientdb.com/)), paving the way for a new sustainable foundation, referred to as NexRes (Next Generation ResilientDB). Thus, on September 30, 2022, NexRes-v1.0.0 was born, marking a new beginning for **[ResilientDB](https://resilientdb.com/)**. On October 21, 2023, **[ResilientDB](https://cwiki.apache.org/confluence/display/INCUBATOR/ResilientDBProposal)** was officially accepted into **[Apache Incubation](https://incubator.apache.org/projects/resilientdb.html)**.

Expand Down
20 changes: 0 additions & 20 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -176,26 +176,6 @@ http_archive(
url = "https://github.com/madler/zlib/archive/v1.2.11.tar.gz",
)

bind(
name = "zstd",
actual = "//third_party:zstd",
)

http_archive(
name = "com_facebook_zstd",
build_file_content = all_content,
strip_prefix = "zstd-1.5.2",
url = "https://github.com/facebook/zstd/archive/refs/tags/v1.5.2.zip",
)

http_archive(
name = "com_github_facebook_rocksdb",
build_file = "@com_resdb_nexres//third_party:rocksdb.BUILD",
sha256 = "928cbd416c0531e9b2e7fa74864ce0d7097dca3f5a8c31f31459772a28dbfcba",
strip_prefix = "rocksdb-7.2.2",
url = "https://github.com/facebook/rocksdb/archive/refs/tags/v7.2.2.zip",
)

http_archive(
name = "pybind11_bazel",
strip_prefix = "pybind11_bazel-2.11.1.bzl.1",
Expand Down
15 changes: 0 additions & 15 deletions chain/storage/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,12 @@ cc_library(
],
)

cc_library(
name = "rocksdb",
srcs = ["rocksdb.cpp"],
hdrs = ["rocksdb.h"],
tags = ["manual"],
deps = [
":storage",
"//chain/storage/proto:kv_cc_proto",
"//chain/storage/proto:rocksdb_config_cc_proto",
"//common:comm",
"//third_party:rocksdb",
],
)

cc_test(
name = "kv_storage_test",
srcs = ["kv_storage_test.cpp"],
deps = [
":leveldb",
":memory_db",
":rocksdb",
"//common/test:test_main",
],
)
8 changes: 1 addition & 7 deletions chain/storage/kv_storage_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

#include "chain/storage/leveldb.h"
#include "chain/storage/memory_db.h"
#include "chain/storage/rocksdb.h"

namespace resdb {
namespace storage {
Expand All @@ -34,7 +33,6 @@ namespace {
enum StorageType {
MEM = 0,
LEVELDB = 1,
ROCKSDB = 2,
};

class KVStorageTest : public ::testing::TestWithParam<StorageType> {
Expand All @@ -49,10 +47,6 @@ class KVStorageTest : public ::testing::TestWithParam<StorageType> {
Reset();
storage = NewResLevelDB(path_);
break;
case ROCKSDB:
Reset();
storage = NewResRocksDB(path_);
break;
}
}

Expand Down Expand Up @@ -225,7 +219,7 @@ TEST_P(KVStorageTest, GetHistory) {
}

INSTANTIATE_TEST_CASE_P(KVStorageTest, KVStorageTest,
::testing::Values(MEM, LEVELDB, ROCKSDB));
::testing::Values(MEM, LEVELDB));

} // namespace
} // namespace storage
Expand Down
10 changes: 0 additions & 10 deletions chain/storage/proto/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,3 @@ cc_proto_library(
name = "leveldb_config_cc_proto",
deps = [":leveldb_config_proto"],
)

proto_library(
name = "rocksdb_config_proto",
srcs = ["rocksdb_config.proto"],
)

cc_proto_library(
name = "rocksdb_config_cc_proto",
deps = [":rocksdb_config_proto"],
)
30 changes: 0 additions & 30 deletions chain/storage/proto/rocksdb_config.proto

This file was deleted.

Loading

0 comments on commit efce5f3

Please sign in to comment.