[NO ISSUE][STO] Allocate Memory Component Index Lazily
authorMurtadha Hubail <mhubail@apache.org>
Fri, 8 Jan 2021 18:41:49 +0000 (21:41 +0300)
committerMurtadha Hubail <mhubail@apache.org>
Sun, 10 Jan 2021 14:38:06 +0000 (14:38 +0000)
commit09129566869073b84ba06dfbf147901d0eefbe38
tree5b273ff0a1514e5fd7a98072a0c265edf11c66cb
parent49350fdec8202157336279d72e2a6428df169286
[NO ISSUE][STO] Allocate Memory Component Index Lazily

- user model changes: no
- storage format changes: no
- interface changes: no

Details:

- When a memory component is flushed, delay the allocation of
  its index until the next activation.
- When the global virtual buffer cache is full, notify the
  flush thread to check if any indexes can be flushed.

Change-Id: I2e07d4e857989fb742e1fc0c5e620a7293fcc3e4
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/9463
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/context/GlobalVirtualBufferCache.java
hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/AbstractLSMMemoryComponent.java
hyracks-fullstack/hyracks/hyracks-storage-am-lsm-common/src/main/java/org/apache/hyracks/storage/am/lsm/common/impls/AbstractLSMWithBuddyMemoryComponent.java