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

Data file corruption in VanillaChronicle #77

Closed
brasslock opened this issue Jul 6, 2014 · 1 comment
Closed

Data file corruption in VanillaChronicle #77

brasslock opened this issue Jul 6, 2014 · 1 comment

Comments

@brasslock
Copy link

Hi,

I have discovered an issue that causes corruption in VanillaChronicle.
Occasionally an existing data file is overwritten, so that earlier indexes that refer to the existing data file become invalid (length value is corrupt).

I believe that I have tracked the issue down to use of VanillaDataCache in VanillaChronicle. dataCache is an instance in VanillaChronicle, but it is shared across all appender instances. This means that VanillaDataCache.dataForLast can be invoked by multiple concurrent threads, resulting in inconsistent values for lastCount.

I will attempt to create a test case that illustrates the problem.

Thanks,
Ross

@brasslock
Copy link
Author

Created a pull request in #78.
Closing this issue

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

No branches or pull requests

1 participant