This repository has been archived by the owner on Aug 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
forky: Fixed Chunk Data Size Store #2017
Open
janos
wants to merge
25
commits into
master
Choose a base branch
from
fcds
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
a2d5edc
storage/localstore: integrate fcds
janos 2506b88
storage/{fcds,localstore}: add comments and minor adjustments
janos c8f3622
storage/fcds: add doc.go
janos ec14da3
cmd/swarm, storage/localstore: support breaking migrations
janos e352b88
cmd/swarm, storage/localstore: improve migrations, export and import
janos c8c16e1
storage/localstore: export pins
janos 66aa7fd
Merge branch 'master' into fcds
janos 7aed3b1
storage/{fcds,localstore}: address Viktor's comments
janos 26bcb48
storage/fcds: correctly return explicit nil in getOffset
janos 1e94680
storage/fcds: add WithCache optional argument to New constructor
janos db658c7
storage/fcds: address most of Petar's comments
janos 26f6626
storage/fcds: add offsetCache ttl
janos 5be3c25
Revert "storage/fcds: add offsetCache ttl"
janos c222011
Merge branch 'master' into fcds
janos 661a7f5
storage/fcds: rename fcds.Interface to fcds.Storer
janos f51c6d8
storage/fcds: improve some commenting
janos 91fc21f
storage/localstore: improve comment in the Import method
janos 60e3938
storage/localstore: improve migrateDiwali migration message
janos c542f32
storage/fcds: ensure that chunk data is no longer the the max value
janos 0fc5e3a
storage/localstore: terminate import goroutine in case of errors
janos 842f7d8
storage/localstore: do not put existing chunks
janos d9341b8
storage/fcds/test: correctly handle storage path
janos 0f13d3b
strage/fcds: check if chunk exists before it is put
janos 4b6f726
storage/fcds: add and use MetaStore.Has
janos 39d328a
storage/fcds: optimize locking
janos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright 2019 The Swarm Authors | ||
// This file is part of the Swarm library. | ||
// | ||
// The Swarm library is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Lesser General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// The Swarm library is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with the Swarm library. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
// Package fcds provides storage layers for storing chunk data only. | ||
// | ||
// FCDS stands for Fixed Chunk Data Storage. | ||
// | ||
// Swarm Chunk data limited size property allows a very specific chunk storage | ||
// solution that can be more performant than more generalized key/value | ||
// databases. FCDS stores chunk data in files (shards) at fixed length offsets. | ||
// Relations between chunk address, file number and offset in that file are | ||
// managed by a separate MetaStore implementation. | ||
// | ||
// Package fcds contains the main implementation based on simple file operations | ||
// for persisting chunk data and relaying on specific chunk meta information | ||
// storage. | ||
// | ||
// The reference chunk meta information storage is implemented in fcds/mem | ||
// package. It can be used in tests. | ||
// | ||
// LevelDB based chunk meta information storage is implemented in fcds/leveldb | ||
// package. This implementation should be used as default in production. | ||
// | ||
// Additional FCDS Store implementation is in fcds/mock. It uses mock store and | ||
// can be used for centralized chunk storage options that mock storage package | ||
// provides. | ||
// | ||
// Package fcds/test contains test functions which can be used to validate | ||
// behaviour of different FCDS or its MetaStore implementations. | ||
package fcds |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is removed in order to allow dbImport to create localstore directory if it does not exist, to simplify migration steps (remove the need to start swarm node in between export and import, as it was required in v0.5.0 release).