Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make transaction info cache size configurable. #938

Closed
keith-turner opened this issue Oct 10, 2017 · 4 comments
Closed

Make transaction info cache size configurable. #938

keith-turner opened this issue Oct 10, 2017 · 4 comments

Comments

@keith-turner
Copy link
Contributor

Fluo caches information about failed transactions. This helps speed up the case where multiple row/cols were modified by a failed transaction. Currently this cache size is hard coded. Also the timeout of the cache is hard coded. It would be nice change these to impl properties. Impl properties are ones that are not part of the public API and are tightly coupled to an internal implementation that could change at any moment.

The cache is created in the TxInfoCache constructor. In this constructor it would be nice to do something like :

TxInfoCache(Environment env) {
   long cahceSize = FluoConfigurationImpl.getTxInfoCacheSize(env.getConfiguration());
   long timeOut = FluoConfigurationImpl.getTxInfoCacheTimeout(env.getConfiguration());
   //construct cache using vals above...not sure if should be long or int.. depends on type that cache takes
}

The methods above would have to be added to FluoConfigurationImpl. These methods should probably follow the pattern of FluoConfigurationImpl.getTxCommitMemory()

Possible property names are fluo.impl.tx.failed.cache.size.mb and fluo.impl.tx.failed.cache.expireTime

@kennethmcfarland
Copy link
Contributor

@keith I would like to take a crack at this one if possible simply due to the classes tight coupling with FluoConfiguration.

@keith-turner
Copy link
Contributor Author

@kpm1985 that would be great if you could work on it

@kennethmcfarland
Copy link
Contributor

kennethmcfarland commented Oct 11, 2017 via email

@kennethmcfarland
Copy link
Contributor

kennethmcfarland commented Oct 11, 2017 via email

@asfgit asfgit closed this as completed in 650f044 Oct 19, 2017
@mikewalch mikewalch modified the milestone: 1.2.0 Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants