Skip to content

Added an InMemoryLRUCacheStore and KeyValueStore unit test framework#75

Closed
Randall Hauch (rhauch) wants to merge 5 commits into
confluentinc:streamingfrom
rhauch:streaming-inmemory-lru-cache
Closed

Added an InMemoryLRUCacheStore and KeyValueStore unit test framework#75
Randall Hauch (rhauch) wants to merge 5 commits into
confluentinc:streamingfrom
rhauch:streaming-inmemory-lru-cache

Conversation

@rhauch

Copy link
Copy Markdown

Added a new InMemoryLRUCacheStore and changed MeteredKeyValueStore to support recording removes initiated via the inner store. Also added test framework and unit tests for existing KeyValueStore implementations.

Two smaller changes were made in separate commits, and these really could be useful whether or not the InMemoryLRUCacheStore is accepted:

  1. Corrected RocksDBKeyValueStore initialiation logic to create the parent directory if missing, without which results in an RocksDB exception when attempting to open a non-existing database.
  2. Removed MeteredKeyValueStore's dependency on ProcessorContextImpl via new RecordCollector.Supplier interface. This allows other ProcessorContext implementations (usually some form of mock implementations used in tests) to be usable with key value stores that extend MeteredKeyValueStore.

This PR depends on several changes made in PR #74. If preferred, I can rebase this PR when #74 is accepted and merged.

@rhauch

Copy link
Copy Markdown
Author

Superseded by KAFKA-2594 and the new PR apache#256.

José Armando García Sancio (jsancio) pushed a commit that referenced this pull request Sep 13, 2019
* chore(Dockerfile): update cc-base to v2.3.0

* remove mk-include

* Squashed 'mk-include/' content from commit c8af747e3

git-subtree-dir: mk-include
git-subtree-split: c8af747e3f7d9f5adfc6833afbf2325dfa9802ac

* CONFLUENT: update cc-base, fix Makefile, update mk-include

* Squashed 'mk-include/' changes from c8af747e3..3dc75ba14

3dc75ba14 feature(semver): add VERSION_POST variable, make branch overridable

git-subtree-dir: mk-include
git-subtree-split: 3dc75ba14e9065059e7cd826674e4dfca5f732fb

* remove unused Makefile variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant