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
Add PebbleDB (WIP) #2145
base: dev
Are you sure you want to change the base?
Add PebbleDB (WIP) #2145
Conversation
Please include the pebbleDB to db_manager_test so that we can continuously test while you push commits to this PR branch. |
I added PebbleDB unit test into Error response from daemon: pull access denied for wurstmeister/zookeeper, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
|
There's an issue related to zookeeper, and will be fixed soon (see #2147) |
I added metrics and all the logic from pebble.go in Geth Do I need to make the metrics key the same as in the leveldb_database.go code? - d.compWriteMeter = metrics.GetOrRegisterMeter(prefix+"compact/output", nil)
+ db.compWriteMeter = metrics.GetOrRegisterMeter(prefix+"compaction/write", nil)
|
NOTE: I need to refer to the RocksDB PR |
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.
Did you intentionally remove all comments? If not, please bring comments together.
Ok, I will bring all the comments. |
MeticsI asked about metics 4 days ago. Note it please LintOk, I followed by LIINT GUIDE executed below commands: klaytn$ gofumpt -w .
klaytn$ goimports -w . When I run $ make lint
env GOPATH=/Users/junha/go GO111MODULE=on go run build/ci.go lint
>>> /Users/junha/go/bin/golangci-lint run --tests --disable-all --timeout=10m --presets=format --presets=performance ./...
metrics/librato/client.go:94:38: response body must be closed (bodyclose)
if resp, err = http.DefaultClient.Do(req); err != nil {
^
metrics/librato/client.go:87:31: should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
if req, err = http.NewRequest("POST", MetricsPostUrl, bytes.NewBuffer(js)); err != nil {
^
console/jsre/pretty.go:32: File is not `gci`-ed with --skip-generated -s standard,default (gci)
consensus/istanbul/validator.go:26: File is not `gci`-ed with --skip-generated -s standard,default (gci)
"github.com/klaytn/klaytn/params"
... Test Failed on my local machine
When I run |
Proposed changes
Types of changes
Checklist
$ make test
)Related issues
...
Further comments