Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-2960: Set upperbound for intent iterator in IntentAwareIterator.
Summary: This revision fixes the read ops drop in table that has distributed transactions enabled. The drop happened because the intent iterator in IntentAwareIterator had to scan over deleted intents which accumulated over time. By setting an upperbound for intent iterator in IntentAwareIterator, it avoid scanning over those deleted intents unnecessarily. Test Plan: ``` java -jar ~/code/yugabyte/java/yb-loadtester/target/yb-sample-apps.jar -workload CassandraTransactionalKeyValue -num_threads_read 8 -num_threads_write 2 -nodes 127.0.0.1:9042 ... 2018-03-08 23:57:16,186 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 1199.65 ops/sec (6.67 ms/op), 45715 total ops | Write: 166.04 ops/sec (12.04 ms/op), 6350 total ops | Uptime: 40025 ms | maxWrittenKey: 6348 | maxGeneratedKey: 6351 | 2018-03-08 23:57:21,189 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 1219.43 ops/sec (6.56 ms/op), 51816 total ops | Write: 163.10 ops/sec (12.27 ms/op), 7166 total ops | Uptime: 45028 ms | maxWrittenKey: 7165 | maxGeneratedKey: 7167 | 2018-03-08 23:57:26,190 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 1268.32 ops/sec (6.31 ms/op), 58159 total ops | Write: 160.56 ops/sec (12.43 ms/op), 7969 total ops | Uptime: 50029 ms | maxWrittenKey: 7967 | maxGeneratedKey: 7970 | 2018-03-08 23:57:31,195 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 1256.21 ops/sec (6.37 ms/op), 64446 total ops | Write: 166.04 ops/sec (12.06 ms/op), 8800 total ops | Uptime: 55034 ms | maxWrittenKey: 8799 | maxGeneratedKey: 8801 | 2018-03-08 23:57:36,196 [INFO|com.yugabyte.sample.common.metrics.MetricsTracker|MetricsTracker] Read: 1187.12 ops/sec (6.74 ms/op), 70383 total ops | Write: 164.36 ops/sec (12.18 ms/op), 9622 total ops | Uptime: 60035 ms | maxWrittenKey: 9621 | maxGeneratedKey: 9623 | ``` Reviewers: sergei Reviewed By: sergei Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D4256
- Loading branch information