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

ObjectStore #128

Merged
merged 7 commits into from
Jul 16, 2018
Merged

ObjectStore #128

merged 7 commits into from
Jul 16, 2018

Conversation

kaloyan-raev
Copy link
Member

@kaloyan-raev kaloyan-raev commented Jul 6, 2018

This change is Reviewable

@kaloyan-raev kaloyan-raev added the WIP Work In Progress label Jul 6, 2018
@cla-bot cla-bot bot added the cla-signed label Jul 6, 2018
@coveralls
Copy link

coveralls commented Jul 6, 2018

Pull Request Test Coverage Report for Build 1585

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 61.686%

Totals Coverage Status
Change from base Build 1561: 0.0%
Covered Lines: 2151
Relevant Lines: 3487

💛 - Coveralls

@kaloyan-raev
Copy link
Member Author

@jtolds After removing the methods for extended attributes, there is not much left in the ObjectStore layer - it just prepends "object" to the path and calls the StreamStore, which also seems redundant in the current situation.

If we don't need extended attributes as streams, is there any other reason to have streams in the architecture of the Structured File Storage?

If no then I suggest to remove the StreamStore layer and move its responsibilities to the ObjectStore.

@kaloyan-raev kaloyan-raev removed the WIP Work In Progress label Jul 13, 2018
@kaloyan-raev kaloyan-raev changed the title WIP ObjectStore ObjectStore Jul 13, 2018
@kaloyan-raev kaloyan-raev requested a review from jtolio July 13, 2018 19:55
@kaloyan-raev
Copy link
Member Author

@jtolds As discussed, the ObjectStore for now will just serialize the metadata for the StreamStore.

Copy link
Member

@jtolio jtolio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great

// ListItem is a single item in a listing
type ListItem struct {
path paths.Path
meta Meta
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably need an IsPrefix bool

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will add such method to the Path type, so no need for a flag here.

@kaloyan-raev kaloyan-raev merged commit 8ce889e into master Jul 16, 2018
@kaloyan-raev kaloyan-raev deleted the object-store branch July 16, 2018 20:44
bryanchriswhite added a commit to bryanchriswhite/storj that referenced this pull request Jul 19, 2018
* master:
  Config updates (storj#141)
  don't require a config file (storj#151)
  ObjectStore (storj#128)
  Errcheck (storj#133)
  adds segmentStore Get, List, Delete (storj#143)
  adding Kiev team to CLA (storj#149)
  Fix jenkins (storj#139)
  saves metadata to the pointer in segmentStore Put (storj#142)
  adds SegmentStore Put functionality (storj#138)
  Implement miniogw in terms of ObjectStore (storj#117)
  adds alex and nadine to clabot (storj#136)
bryanchriswhite added a commit to bryanchriswhite/storj that referenced this pull request Jul 19, 2018
* master:
  Config updates (storj#141)
  don't require a config file (storj#151)
  ObjectStore (storj#128)
  Errcheck (storj#133)
  adds segmentStore Get, List, Delete (storj#143)
  adding Kiev team to CLA (storj#149)
  Fix jenkins (storj#139)
  saves metadata to the pointer in segmentStore Put (storj#142)
  adds SegmentStore Put functionality (storj#138)
  Implement miniogw in terms of ObjectStore (storj#117)
  adds alex and nadine to clabot (storj#136)
iglesiasbrandon pushed a commit that referenced this pull request Dec 7, 2018
* WIP ObjectStore

* Remove methods for extended attributes

* List returns metadata too

* No real need to prepend "object" in path

* Serialize metadata

* List retuns []ListItem instead of []Path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants