summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Refactoring: corrected a number of names and added more commentsDouglas Rumbaugh2023-12-138-142/+165
|
* insert_tput: minor adjustmentsDouglas Rumbaugh2023-11-161-12/+7
|
* Insertion throughput benchmarkDouglas Rumbaugh2023-11-152-4/+61
|
* Lock protect Epoch during retirement to avoid use-after-free errorsDouglas Rumbaugh2023-11-151-11/+16
|
* Tombstone Compaction: re-enabled tombstone compactionDouglas Rumbaugh2023-11-135-5/+106
| | | | | | | Currently, proactive buffer tombstone compaction is disabled by forcing the buffer tombstone capacity to match its record capacity. It isn't clear how to best handle proactive buffer compactions in an environment where new buffers are spawned anyway.
* Fixed merge logic bug in tieringDouglas Rumbaugh2023-11-132-1/+3
| | | | | | | | | | | | In InternalLevel::clone(), the m_shard_cnt variable was not being set appropriately in the clone, resulting in the record counts reported for a multi-shard level to be reported incorrectly. In DynamicExtension::merge(), the merges were being performed in the wrong order, resulting in multi-level merges deleting records. The leveling tests all passed even with this bug for some reason, but it caused tiering tests to fail. It isn't clear _why_ leveling appeared to work, but the bug is now fixed, so that's largely irrelevant I suppose.
* Fixed various concurrency bugsDouglas Rumbaugh2023-11-093-21/+84
| | | | | | | | | | 1. The system should now cleanly shutdown when the DynamicExtension object is destroyed. Before now, this would lead to use-after-frees and/or deadlocks. 2. Improved synchronization on mutable buffer structure management to fix the issue of the framework losing track of buffers during Epoch changeovers.
* Comment and License updatesDouglas Rumbaugh2023-11-0745-57/+91
|
* DynamicExtension: revised the way uneeded buffers/structures are releasedDouglas Rumbaugh2023-11-071-8/+15
|
* Merge branch 'query-refactor'Douglas Rumbaugh2023-11-0724-1935/+1526
|\
| * Switched default DE test case over to ISAMTreeDouglas Rumbaugh2023-11-077-143/+106
| |
| * DynamicExtension::create_static_structure: fixed heap overflowDouglas Rumbaugh2023-11-071-1/+1
| |
| * Converted WIRS to the new interfaceDouglas Rumbaugh2023-11-073-320/+338
| |
| * Alias shard fixesDouglas Rumbaugh2023-11-074-23/+32
| |
| * Refactoring progressDouglas Rumbaugh2023-11-0613-796/+359
| |
| * started refactoring queries interfaceDouglas B. Rumbaugh2023-11-026-361/+400
| |
* | DynamicExtension: fixed race in get_active_epoch_protectedDouglas Rumbaugh2023-11-061-2/+11
| | | | | | | | | | | | | | | | This function wasn't ensuring that that the epoch pinned and the epoch returned were the same epoch in the situation where the epoch was advanced in the middle of the call. This is now resolved, and further the function will return the newer epoch, rather than the older one, in such a situation.
* | InternalLevel: switched to std::sharedptr for shard memory managementDouglas Rumbaugh2023-11-061-52/+29
| |
* | DynamicExtension: internal_append fixesDouglas Rumbaugh2023-11-062-10/+55
| | | | | | | | | | | | Fixed a few bugs with concurrent operation of internal_append, as well as enabled the spawning of multiple empty buffers while merges are currently active.
* | DynamicExtension: mutex bug fixDouglas Rumbaugh2023-11-061-2/+2
| | | | | | | | Fixed an incorrectly initialized lock guard
* | Epoch: Adjusted add empty buffer behaviorDouglas Rumbaugh2023-11-062-4/+26
| | | | | | | | | | | | | | | | Add empty buffer now supports a CAS-like operation, where it will only add a buffer if the currently active one is still the same as when the decision to add a buffer was made. This is to support adding new buffers on insert outside of the merge-lock, so that multiple concurrent threads cannot add multiple new empty buffers.
* | DynamicExtension::create_static_structure: fixed heap overflowDouglas Rumbaugh2023-11-061-1/+1
| |
* | MutableBuffer: added explicit tail variableDouglas Rumbaugh2023-11-061-5/+12
| | | | | | | | | | | | | | Use an explicit m_tail variable for insertion, rather than using m_reccnt. This ensures that the record count doesn't increase despite new records being inserted, and allows for the m_tail variable to be decremented on failure without causing the record count to momentarily change.
* | DynamicExtension: fixed some use-after free bugsDouglas Rumbaugh2023-11-061-5/+13
| | | | | | | | | | Reordered some code in internal_append() to avoid use-after frees on the mutable buffer reference used for insertion.
* | Scheduling: Switched over to a thread pool modelDouglas Rumbaugh2023-11-068-11/+28
|/
* DE CC Testing: initial test file for FIFOSchedulerDouglas B. Rumbaugh2023-10-311-0/+461
|
* Fixes for various bugs under SerialSchedulerDouglas B. Rumbaugh2023-10-313-17/+54
|
* MutableBuffer: removed most concurrency control stuffDouglas B. Rumbaugh2023-10-312-52/+13
| | | | | | The buffer isn't responsible for a lot of CC anymore (just the append operation), so this code was no longer necessary. Also removed the only calls to some of these CC operations within the rest of the framework.
* ExtensionStructure: fixed incorrect constructor args in clone()Douglas B. Rumbaugh2023-10-311-2/+2
|
* DE Tests: updated existing tests to use single threaded operationDouglas B. Rumbaugh2023-10-314-4/+5
|
* MemISAM: updated to new query interfaceDouglas B. Rumbaugh2023-10-311-1/+1
|
* FIFOScheduler: fixed a few synchronization issuesDouglas B. Rumbaugh2023-10-311-8/+5
|
* SerialScheduler: added a single-threaded schedulerDouglas B. Rumbaugh2023-10-312-0/+69
| | | | | | Added a new scheduler for ensuring single-threaded operation. Additionally, added a static assert to (at least for now) restrict the use of tagging to this single threaded scheduler.
* DynamicExtension: fixed some Epoch-related bugsDouglas B. Rumbaugh2023-10-311-6/+6
| | | | | | | | | The epochs must be released in the destructor prior to releasing the buffers and structures, as otherwise there are references remaining to these objects and their destructors will fail. Additionally, fixed a bug in the constructor resulting in a memory leak due to allocating an extra starting version and buffer.
* Epoch: Creating an epoch now takes references on buffers + versionsDouglas B. Rumbaugh2023-10-311-0/+2
| | | | | | | | | | When an epoch is created using the constructor Epoch(Structure, Buffer), it will call take_reference() on both. This was necessary to ensure that the destructor doesn't fail, as it releases references and fails if the refcnt is 0. It releases the user of the object from the burden of manually taking references in this situation.
* VPTree Shard: updates to build on my desktopDouglas B. Rumbaugh2023-10-311-0/+2
|
* DynamicExtension: added a way to block on merge completionDouglas B. Rumbaugh2023-10-311-3/+31
| | | | | This is mostly just for testing purposes at the moment, though I'd imagine it may be useful for other reasons too.
* General Comment + Consistency updatesDouglas Rumbaugh2023-10-3024-282/+167
|
* DynamicExtension: comment cleanup/adjustmentsDouglas Rumbaugh2023-10-301-11/+14
|
* Epoch/DynamicExtension: added cv to epoch retirement checkDouglas Rumbaugh2023-10-302-4/+36
| | | | | | Instead of busy waiting on the active job count, a condition variable is now used to wait for all active jobs to finish before freeing an epoch's resources.
* FIFOScheduler: correctly protect m_cv with a lockDouglas Rumbaugh2023-10-301-0/+5
|
* DynamicExtension: adjusted a few operations to ensure conistencyDouglas Rumbaugh2023-10-302-15/+37
| | | | | | | | | | | | get_memory_usage, get_aux_memory_usage, get_record_count, get_tombstone_count, and create_static_structure have been adjusted to ensure that they pull from a consistent epoch, even if a change-over occurs midway through the function. These functions also now register with the epoch as a job, to ensure that the epoch they are operating own isn't retired midway through the function. Probably not a big issue for the accessors, but I could see it being very important for create_static_structure.
* Concurrency updates + fixes for compile errorsDouglas Rumbaugh2023-10-306-99/+106
|
* Began moving to an explicit epoch-based systemDouglas Rumbaugh2023-10-239-103/+481
| | | | | | | I started moving over to an explicit Epoch based system, which has necessitated a ton of changes throughout the code base. This will ultimately allow for a much cleaner set of abstractions for managing concurrency.
* BugfixesDouglas Rumbaugh2023-10-233-1/+7
|
* Initial pass w/ new scheduler setupDouglas Rumbaugh2023-10-209-344/+200
| | | | currently there's a race condition of some type to sort out.
* Checkpointing workDouglas Rumbaugh2023-10-204-34/+85
| | | | I'll probably throw all this out, but I want to stash it just in case.
* Re-structuring Project + scheduling updatesDouglas Rumbaugh2023-09-2524-434/+384
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a big one--probably should have split it apart, but I'm feeling lazy this morning. * Organized the mess of header files in include/framework by splitting them out into their own subdirectories, and renaming a few files to remove redundancies introduced by the directory structure. * Introduced a new framework/ShardRequirements.h header file for simpler shard development. This header simply contains the necessary includes from framework/* for creating shard files. This should help to remove structural dependencies from the framework file structure and shards, as well as centralizing the necessary framework files to make shard development easier. * Created a (currently dummy) SchedulerInterface, and make the scheduler implementation a template parameter of the dynamic extension for easier testing of various scheduling policies. There's still more work to be done to fully integrate the scheduler (queries, multiple buffers), but some more of the necessary framework code for this has been added as well. * Adjusted the Task interface setup for the scheduler. The task structures have been removed from ExtensionStructure and placed in their own header file. Additionally, I started experimenting with using std::variant, as opposed to inheritence, to implement subtype polymorphism on the Merge and Query tasks. The scheduler now has a general task queue that contains both, and std::variant, std::visit, and std::get are used to manipulate them without virtual functions. * Removed Alex.h, as it can't build anyway. There's a branch out there containing the Alex implementation stripped of the C++20 stuff. So there's no need to keep it here.
* Bugfixes for tieringDouglas Rumbaugh2023-09-204-4/+33
| | | | | | | | | | | | Fixed a few issues that manifested during the tiering tests, 1) When a version is copied, it now contains copies of the levels, not just pointers (the levels themselves still hold pointers to the shards, though). 2) Ensure that tasks are scheduled with the correct timestamp, they were originally being scheduled backwards. The get_merge_tasks() method already returns them in the correct order, so reversing them again put it in the wrong order.
* The scheduler now spawns a seperate merge threadDouglas Rumbaugh2023-09-184-58/+221
| | | | | | | | | | | Merges are now executed from a seperate thread within the scheduler that wakes up via condition variables when new merge tasks are scheduled. In addition, tombstone limits are now enforced by the scheduler, with new merges being scheduled as needed. There are still a few tests failing, notably the zero tombstones in the last run invarient is not holding under tiering with tombstones. Need to look into that yet.