-
Notifications
You must be signed in to change notification settings - Fork 21
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
[bug] bucky-fill shouldn't cross-fill archives #19
Comments
This is only adding a test for jjneely#19
I've added a test case for this bug:
As you can see here in Go code there are points that are actually sum of the points between them, and that shouldn't happen I'm also not sure why fetchFromFile and C is that much different. |
This is only adding a test for jjneely#19
Thanks for this. |
I'm still not sure how to write test that it would show normal data in first two columns, but I'll try to do that tomorrow (if you won't do that instead of me). Though I also have an idea of how to fix that: extend whisper library with ability to update archive with certain retention period (e.x. generalize current function to accept 'retention int' as a parameter and if it's not 0, skip archives that doesn't match desired retention). |
This is only adding a test for jjneely#19
Ok, I've added a proper test for this particular issue, though I've hardcoded dataset for it. Though fill still missing tests that will check archives other than 1st one. |
…e it Fill must read and write data to exactly same archive. For this purpose this commit intoroduce new function 'UpdateManyWithRetention' that also gets 'desired' archive's retention. Also migrate 'fillArchive' in fill package to use that function, instead of plain 'UpdateMany' Fixes jjneely#19
I've also pushed my idea of fix for that issue to original PR. |
@jjneely any news on this bug? My patch works really well in my tests, so can you please have a look at it and either merge it or suggest another solution for this problem? |
Looks sane, but I want to spend some time to review. |
@jjneely did you have any spare cycles for review by any chance? |
I have a upcoming project at work that will afford me some time here, however, more urgent matters keep emerging. Its on the list, I'm just low on manpower. |
Apologies, I want to take the corruption issues seriously, and this is a work sponsored project -- which you would think would provide ample time to work on it. But the goal posts keep moving. |
Hi! Please have a look at the PR to solve this problem.
Assuming that there are tests for most of stuff already in place, it should be safe to merge it as-is now and investigate problem in-depth later. |
ping |
@jjneely can you please have a look at this issue and at my PR? I understand you might be short of time, but this issue cause corruption during backfill. I think this is very important to fix this, otherwise it makes backfill unusable (you will get garbage in backfilled files). |
For now we decided to maintain our own fork with patches that we want to have in buckytools (see https://github.com/go-graphite/buckytools ). And we'll think about just rewriting buckytools from scratch to implement better support of our stack and to solve some other issues we have with it (e.x. that it requires to have centralized server and push data through it). |
Can this pull request be merged, as it would help move the project forward? Also, can @Civil also be given admin rights? |
The easiest way to reproduce the bug for me was:
copy.wsp becomes corrupted - some points from Archive1 of original.wsp got written to Archive0 of copy.wsp
It seems that this happens with gaps in archive0 and archive1, but I'm not sure. I have an example real world data, but still trying to create a test-case out of that.
The text was updated successfully, but these errors were encountered: