Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
4dbc6ba
feat: implement branch design feature
githubzilla Mar 6, 2026
9d75b65
Fix regressions from manual merge: restore branch_design API usage
githubzilla Mar 6, 2026
9128ae4
Fix CURRENT_TERM cloud upload to use per-branch suffix
githubzilla Mar 8, 2026
6f6c349
fix: re-enqueue CreateBranch/DeleteBranch when task pool is exhausted
githubzilla Mar 8, 2026
0388a6f
fix: treat empty/stub partition as success in CreateBranch
githubzilla Mar 8, 2026
a318f92
fix: treat AlreadyExists as success in HandleGlobalCreateBranchReques…
githubzilla Mar 9, 2026
5a06928
fix: fallback to active branch in OnDataFileSealed when file_id mappi…
githubzilla Mar 9, 2026
844270c
CreateBranch should fail if branch already exist
githubzilla Mar 9, 2026
8491b8c
Fix build error
githubzilla Mar 10, 2026
a98d05d
Fix clang-format
githubzilla Mar 10, 2026
41265a9
Fix clang-format
githubzilla Mar 10, 2026
85bc8e7
fix: port 204ff65 and 3a6f964 to branch_support
githubzilla Mar 11, 2026
a4fbc71
refactor: move branch_name before term in DownloadFile signature
githubzilla Mar 11, 2026
3e0fd12
Fix manifest deletion bug in file_gc
githubzilla Mar 11, 2026
791301e
fix: set branch_name and term on manifest FD and normalize directory …
githubzilla Mar 12, 2026
871ad9a
Remove redundant GetFileIdTerm call in InstallExternalSnapshot
githubzilla Mar 13, 2026
c95834b
Remove GetFileIdTerm and use ProcessTerm() directly in write paths
githubzilla Mar 13, 2026
710795a
Intern branch name strings in LruFD to avoid per-FD heap allocations
githubzilla Mar 13, 2026
8716246
Add debug log
githubzilla Mar 13, 2026
32defc9
Remove DataFileName function, using BranchDataFileName instead
githubzilla Mar 14, 2026
59edca4
Refine logs
githubzilla Mar 14, 2026
c57ddd6
Fix ReadFilePrefix race: read from cached FD instead of opening by path
githubzilla Mar 14, 2026
07497ba
Add debug log
githubzilla Mar 14, 2026
48deb9f
Fix OpenOrCreateFD reusing cached FD with stale branch_name
githubzilla Mar 15, 2026
439874c
debug log
githubzilla Mar 15, 2026
de93348
Use active branch when max_file_id not found when install external sn…
githubzilla Mar 16, 2026
eacca8b
Branch name should not be null when compare cached fd and file to open
githubzilla Mar 17, 2026
710e964
Remove not used funtion of FilePageAllocatore::SetCurrentFileId
githubzilla Mar 17, 2026
f5b5881
Pass term as parameter to CreateArchive instead of calling ProcessTer…
githubzilla Mar 17, 2026
90e9d27
Remove default parameter values from OpenFD and OpenOrCreateFD
githubzilla Mar 17, 2026
cb84620
Remove default values and reorder branch_name parameter in CloudStore…
githubzilla Mar 17, 2026
43523b9
Use system_clock instead of high_resolution_clock for branch name salt
githubzilla Mar 17, 2026
017fc27
Remove BranchBaseNameExists duplicate-name check and dead code
githubzilla Mar 17, 2026
d3272c1
Remove duplicate branch name test cases
githubzilla Mar 17, 2026
e64418b
Remove unused BranchManifestExists and BranchCurrentTermExists
githubzilla Mar 17, 2026
240acbe
Refactor ParseBranchTerm to return bool and propagate parse errors
githubzilla Mar 17, 2026
1216ba5
Remove unused parent_branch_ from GlobalCreateBranchRequest
githubzilla Mar 17, 2026
7e32e07
Add back comments for GetMetricsMeter
githubzilla Mar 17, 2026
6e6cbdd
Add AlreadyExists to FFI error enums and converters
githubzilla Mar 17, 2026
d2d85e7
Call SetBranchFileMapping unconditionally to clear stale mappings
githubzilla Mar 17, 2026
f3b9bdb
Fix some review comment
githubzilla Mar 17, 2026
9009c6d
Roll back orphaned manifest when WriteBranchCurrentTerm fails in Crea…
githubzilla Mar 17, 2026
9efb2ec
Add debug log
githubzilla Mar 17, 2026
3e512a9
Add debug log
githubzilla Mar 17, 2026
08dbc15
Remove unused file_id_term_mapping_dirty_ variable from WriteTask
githubzilla Mar 17, 2026
9ab46ae
Rename term_buf
githubzilla Mar 17, 2026
5a3bc79
Remove unused FileIdTermMapping type and related dead code
githubzilla Mar 18, 2026
992e36c
Fix missing store_path_lut argument in DeleteOldArchives
githubzilla Mar 18, 2026
c63bb30
Register manifest_payload test in CMakeLists.txt
githubzilla Mar 18, 2026
142d1f4
Value-initialize BranchFileRange and BranchManifestMetadata members
githubzilla Mar 18, 2026
769ef8e
Add BranchManifestMetadata serialization tests
githubzilla Mar 18, 2026
cd86ccb
Assert Start() return value in cloud tests
githubzilla Mar 18, 2026
cca963d
Assert Start() return value in persist and manifest tests
githubzilla Mar 18, 2026
d822a69
Filter all CURRENT_TERM files in CheckCloudPartitionExists
githubzilla Mar 18, 2026
20c5512
Change DeserializeBranchManifestMetadata to return bool with out para…
githubzilla Mar 18, 2026
f7c6fd3
Check Start() return value in benchmarks and concurrent_test
githubzilla Mar 18, 2026
ffe3c84
Propagate errors from AugmentRetainedFilesFromBranchManifests instead…
githubzilla Mar 18, 2026
2497fdf
Use GetActiveBranch() for manifest selection in cloud GC
githubzilla Mar 18, 2026
ecd451e
Update comment for removing current branch term
githubzilla Mar 18, 2026
8eb6088
Remove incorrect comment
githubzilla Mar 18, 2026
d5e12be
Set IOSQE_FIXED_FILE for registered dir FD in DeleteBranchFiles
githubzilla Mar 18, 2026
17be9d5
Check cloud delete errors in CloudStoreMgr::DeleteBranchFiles
githubzilla Mar 18, 2026
bce3617
Route CreateBranch/DeleteBranch through pending write queue
githubzilla Mar 18, 2026
fcc7849
Compact data files before CreateBranch in append mode
githubzilla Mar 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ test-data
target
tmp
compile_commands.json
.pre-commit-config.yaml
2 changes: 1 addition & 1 deletion benchmark/eloq_store_bm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ bool Benchmark::OpenEloqStore(const eloqstore::KvOptions &kv_options)
{
eloq_store_ = std::make_unique<::eloqstore::EloqStore>(kv_options);

::eloqstore::KvError res = eloq_store_->Start();
::eloqstore::KvError res = eloq_store_->Start(eloqstore::MainBranchName, 0);
if (res != ::eloqstore::KvError::NoError)
{
LOG(ERROR) << "EloqStore start failed with error code: "
Expand Down
5 changes: 4 additions & 1 deletion benchmark/load_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ int main(int argc, char *argv[])
}

eloqstore::EloqStore store(options);
store.Start();
if (auto err = store.Start("main", 0); err != eloqstore::KvError::NoError)
{
LOG(FATAL) << "Failed to start store: " << eloqstore::ErrorString(err);
}

std::vector<Writer> writers;
for (uint32_t i = 0; i < FLAGS_partitions; i++)
Expand Down
5 changes: 4 additions & 1 deletion benchmark/simple_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,10 @@ int main(int argc, char *argv[])
}

eloqstore::EloqStore store(options);
store.Start();
if (auto err = store.Start("main", 0); err != eloqstore::KvError::NoError)
{
LOG(FATAL) << "Failed to start store: " << eloqstore::ErrorString(err);
}

if (FLAGS_workload == "load")
{
Expand Down
2 changes: 1 addition & 1 deletion benchmark/simple_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ int main(int argc, char *argv[])
eloqstore::TableIdent tbl_id("perf_test", 1);

eloqstore::EloqStore store(opts);
eloqstore::KvError err = store.Start();
eloqstore::KvError err = store.Start("main", 0);
assert(err == eloqstore::KvError::NoError);

// based on command arguments, we run different tests:
Expand Down
5 changes: 4 additions & 1 deletion db_stress/concurrent_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ int main(int argc, char **argv)
}
}
eloqstore::EloqStore store(options);
store.Start();
if (auto err = store.Start("main", 0); err != eloqstore::KvError::NoError)
{
LOG(FATAL) << "Failed to start store: " << eloqstore::ErrorString(err);
}
if (FLAGS_num_client_threads == 1)
{
test_util::ConcurrencyTester tester(&store,
Expand Down
2 changes: 1 addition & 1 deletion db_stress/db_stress_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void RunStressTest(int argc, char **argv)
eloqstore::KillPoint::GetInstance().kill_odds_ = FLAGS_kill_odds;

eloqstore::EloqStore store(opts);
eloqstore::KvError err = store.Start();
eloqstore::KvError err = store.Start("main", 0);
CHECK(err == eloqstore::KvError::NoError);

std::vector<std::unique_ptr<StressTest>> stress(FLAGS_n_tables);
Expand Down
2 changes: 1 addition & 1 deletion db_stress/test_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main(int argc, char **argv)
}

eloqstore::EloqStore store(options);
eloqstore::KvError err = store.Start();
eloqstore::KvError err = store.Start("main", 0);
if (err != eloqstore::KvError::NoError)
{
LOG(FATAL) << eloqstore::ErrorString(err) << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion examples/basic_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int main()
eloqstore::TableIdent tbl_id("t1", 1);

eloqstore::EloqStore store(opts);
eloqstore::KvError err = store.Start();
eloqstore::KvError err = store.Start("main", 0);
assert(err == eloqstore::KvError::NoError);

{
Expand Down
Loading