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

Cache file can be created with incorrect content #6873

Closed
mattab opened this issue Dec 17, 2014 · 0 comments
Closed

Cache file can be created with incorrect content #6873

mattab opened this issue Dec 17, 2014 · 0 comments
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Dec 17, 2014

Reported in #6841 (comment)

Regression from the new cache system.

You can see the line number (2767) it breaks at here http://pastebin.com/55VGSEB3

  ),
);Piwik\\Plugin\\ViewDataTable' =>
    array (

Notice how the variable ends and then there is an invalid string. It looks like the flie got written to, and then partially written to. Race condition. How can we prevent this bug?

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Dec 17, 2014
@mattab mattab added this to the Piwik 2.10.0 milestone Dec 17, 2014
tsteur added a commit to matomo-org/component-cache that referenced this issue Dec 17, 2014
tsteur added a commit that referenced this issue Dec 17, 2014
@tsteur tsteur self-assigned this Dec 17, 2014
@tsteur tsteur closed this as completed Dec 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants