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

compaction eating data (leofs 1.0.0/1.0.1) #188

Closed
Licenser opened this issue May 8, 2014 · 3 comments
Closed

compaction eating data (leofs 1.0.0/1.0.1) #188

Licenser opened this issue May 8, 2014 · 3 comments

Comments

@Licenser
Copy link
Contributor

Licenser commented May 8, 2014

Running a compaction on a storage node that is not affected by the 'loosing data after restart' causes the compaction to eat up data:

Initial (good) state:

du ny4_leo_st_1@172.21.0.206
 active number of objects: 2220
  total number of objects: 2220
   active size of objects: 6322709986.0
    total size of objects: 6322709986.0
     ratio of active size: 100.0%
    last compaction start: 2014-05-07 08:33:33 +0000
      last compaction end: 2014-05-07 08:33:34 +0000

run compaction

du ny4_leo_st_1@172.21.0.206
 active number of objects: 347
  total number of objects: 347
   active size of objects: 7401342874.0
    total size of objects: 7401342874.0
     ratio of active size: 100.0%
    last compaction start: 2014-05-08 14:36:39 +0000
      last compaction end: 2014-05-08 14:36:39 +0000

run compaction

du ny4_leo_st_1@172.21.0.206
 active number of objects: 139
  total number of objects: 139
   active size of objects: 145696125.0
    total size of objects: 145696125.0
     ratio of active size: 100.0%
    last compaction start: 2014-05-08 14:55:37 +0000
      last compaction end: 2014-05-08 14:55:37 +0000

The data is now nice and compact but regarding to the s3 API also all data is deleted :(

@yosukehara
Copy link
Member

Thank you for your report.

It would be great if you share each storage error-logs because we would like to catch up this situation (we did not face that, yet).

@Licenser
Copy link
Contributor Author

Licenser commented May 9, 2014

Sorry but there were no logs, that was the first thing I checked, emptied out the error log and ran the compaction, not a single line was written :(

@yosukehara
Copy link
Member

I've fixed this issue. From now, we'll make the test codes, then it will be included in leo_object_storage/test.
Also, you're able to recover data of the storage-node with the recover node $node command.

So we're planning to release v1.0.2 soon.

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

2 participants