GitHub user poornachandra opened a pull request: https://github.com/apache/incubator-tephra/pull/34
TEPHRA-216 Handle empty transactional regions during inactive list pruning JIRA - https://issues.apache.org/jira/browse/TEPHRA-216 Approach: 1. Transaction Processor records a region as empty (at current time) in the post flush handler if the memstore size for the region is zero and the region does not have any store files. 2. The regions that are recorded as empty after inactiveTransactionBoundTime will not have invalid data for transactions started before or on inactiveTransactionBoundTime. Hence we can consider the prune upper bound for these empty regions as the inactiveTransactionBound. TODO: Clean-up empty regions in pruneComplete() Note: The first two commits are re-factoring, and would be simple to review them separately. You can merge this pull request into a Git repository by running: $ git pull https://github.com/poornachandra/incubator-tephra feature/prune-empty-tables Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-tephra/pull/34.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #34 ---- commit 2b796fa59c31c9003ede095d3c8c41b067a8142b Author: poorna <poo...@cask.co> Date: 2017-02-09T22:44:14Z Cleanup test and add warning in prune writer commit 04e8a2207eead0d49e55539ed2b215958fadf6d3 Author: poorna <poo...@cask.co> Date: 2017-02-10T01:07:30Z Refactor pruning plugin to handle empty regions commit 73e1b83c4d937a409d4caf40715ab466b12253f1 Author: poorna <poo...@cask.co> Date: 2017-02-10T08:18:13Z TEPHRA-216 Handle empty transactional regions during inactive list pruning ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---