summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Ported ISAMTree over to new buffer setupDouglas Rumbaugh2024-01-111-60/+65
| | | | | I may still play with the shard from shards constructor, and queries need some work yet too.
* BufferView: enforce move semanticsDouglas Rumbaugh2024-01-111-2/+19
| | | | | | Because a BufferView's lifetime is so tightly linked to the lifetime of regions of the buffer, it can't be copied without potentially breaking things.
* Fixed some potential buffer-related concurrency bugsDouglas Rumbaugh2024-01-112-57/+94
|
* MutableBuffer: multithreaded insert test + bugfixesDouglas Rumbaugh2024-01-101-4/+9
|
* MutableBuffer+View: Implementation with unit testsDouglas Rumbaugh2024-01-102-49/+116
|
* Initial update of buffer to new specificationsDouglas B. Rumbaugh2024-01-092-152/+62
| | | | | | | | | | | | | | | | | | | There are a few minor issues that this introduces, however. Global tracking of a lot of secondary information, such as weights for WIRS/WSS, or the exact number of tombstones will need to be approached differently than they have been historically with this new approach. I've also removed most of the tombstone capacity related code. We had decided not to bother enforcing this at the buffer level anyway, and it would greatly increase the complexity of the problem of predicting when the next compaction will be. On the whole this new approach seems like it'll simplify a lot. This commit actually removes significantly more code than it adds. One minor issue: the currently implementation will have problems in the circular array indexes once more than 2^64 records have been inserted. This doesn't seem like a realistic problem at the moment.
* DynamicExtension: comments/reorganizationDouglas Rumbaugh2023-12-211-7/+19
| | | | | Clarified the reasoning for a few things in comments that just tripped me up during debugging.
* InternalLevel: appending an empty level is a no-opDouglas Rumbaugh2023-12-211-0/+7
| | | | | | | | The existing reconstruction logic will occasionally attempt to append an empty level to another empty level, for some reason. While the underlying cause of this needs to be looked into, this special case should prevent shard constructors being called with a shard count of 0 under tiering, reducing the error handling overhead of shard code.
* ExtensionStructure: adjusted leveling logic to avoid unneeded copiesDouglas Rumbaugh2023-12-211-5/+14
| | | | | | | | This also reduces the special-case overhead on shards. As it was, shards would need to handle a special case when constructing from other shards where the first of the two provided shards was a nullptr, which caused a number of subtle issues (or outright crashes in some cases) with existing shard implementations.
* Refactoring: corrected a number of names and added more commentsDouglas Rumbaugh2023-12-137-140/+163
|
* Lock protect Epoch during retirement to avoid use-after-free errorsDouglas Rumbaugh2023-11-151-11/+16
|
* Tombstone Compaction: re-enabled tombstone compactionDouglas Rumbaugh2023-11-134-3/+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-0729-34/+68
|
* DynamicExtension: revised the way uneeded buffers/structures are releasedDouglas Rumbaugh2023-11-071-8/+15
|
* Merge branch 'query-refactor'Douglas Rumbaugh2023-11-0712-1647/+1271
|\
| * DynamicExtension::create_static_structure: fixed heap overflowDouglas Rumbaugh2023-11-071-1/+1
| |
| * Converted WIRS to the new interfaceDouglas Rumbaugh2023-11-072-287/+304
| |
| * Alias shard fixesDouglas Rumbaugh2023-11-072-16/+25
| |
| * Refactoring progressDouglas Rumbaugh2023-11-068-690/+249
| |
| * started refactoring queries interfaceDouglas B. Rumbaugh2023-11-025-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-063-5/+12
|/
* 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
|
* 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-207-341/+196
| | | | currently there's a race condition of some type to sort out.