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

fix: fix nil pointer and update db config #413

Merged
merged 1 commit into from
May 11, 2023
Merged

Conversation

BarryTong65
Copy link
Contributor

@BarryTong65 BarryTong65 commented May 11, 2023

Description

fix nil db config error

Rationale

When I run it locally, there's no issue. However, when I run 7 service providers (sp) locally, the configuration file's metadata doesn't assign values to the 'bsdb' and 'switched db' within each service provider's 'config.toml'.

bash deployment/localup/localup.sh --stop
bash deployment/localup/localup.sh --generate /Users/barry/testbarry/greenfield-storage-provider/deployment/localup/sp.json root root1234 localhost:3306
bash deployment/localup/localup.sh --reset
bash deployment/localup/localup.sh --start

image

Example

add an example CLI or API response...

Changes

Notable changes:

  • add db config in config.go

@BarryTong65 BarryTong65 added wip Working in process r4r Ready for review and removed wip Working in process labels May 11, 2023
@BarryTong65 BarryTong65 requested review from will-2012 and krish-nr May 11, 2023 02:09
@will-2012 will-2012 requested a review from jingjunLi May 11, 2023 02:12
@will-2012 will-2012 merged commit 2bc1fbb into develop May 11, 2023
@BarryTong65 BarryTong65 deleted the feat-updatedbconfig branch May 11, 2023 08:37
joeylichang added a commit that referenced this pull request May 15, 2023
* feat: sp services add pprof

* feat:block syncer add read concurrency support

* fix: rename pprof var name

* fix:debug log

* fix: fix the content of sp readme

* feat: add universal endpoint view option (#383)

* feat: add universal endpoint view option

fix: imports

* fix: add space before comments

* fix: put header in right place (#385)

* feat: signer async send sealObject tx

* fix: simplify gnfd client signature test case

* fix: return function when get nonce on chain failed

* fix: annotation

* fix: cross region netroek opt

* feat: implement stop serving on testnet (#336)

* feat: localup shell adds generate sp.info and db.info function (#398)

* feat: localup shell adds generate sp.info and db.info function

* fix: fix reset db function name

* feat: support full-memory replicate task (#410)

* feat: add gc worker (#408)

* feat: bsdb switch (#402)

* feat: update metadata db config and startDBSwitchListener
* feat: update e2e config
* fix: rename bsdbflag and update config/config_template.toml

* feat:add upload download add bandwidth limit

* feat: list objects pagination & folder path (#404)

* feat: add pagination for list objects

* fix: define constant queries & update func name

* fix: update filter for listobjects when delimiter is empty

* fix: refine query name

* fix: nil config.SQLDBConfig (#413)

* feat: add get object meta and get bucket meta apis (#412)

* feat: add get object and get bucket with payment apis

feat: modify long name

feat: sort import correctly

fix: typos

fix: typo

* fix: address comments, change path params to query params

fix: typo

* feat: add unit tests for new apis

* fix: rename services and comments according to comments

fix: import position

* fix:BandwidthLimit config

* fix:bandwidth config

* feat: adapt greenfield v0.47 (#406)

* fix: upgrade greenfield version to v0.2.0 (#415)

Co-authored-by: VM <arimas@foxmail.com>

* feat: add dual db warm up support for blocksyncer (#401)

* feat: add dual db warm up support for blocksyncer

* feat: add stop main service logic

* feat: update chain version to v0.47 and some adapts

* fix: upgrade e2e ci greenfield version to v0.2.0 (#418)

Co-authored-by: VM <arimas@foxmail.com>

* docs: add v0.2.0 changelog (#417)

* docs: add v0.2.0 changelog

* fix: add blocksycner dual db feature in changelog

* docs: add localup shell feature in changelog

---------

Co-authored-by: actioncli <joeycli0919@qq.com>
Co-authored-by: krish-nr <krish.z@nodereal.io>
Co-authored-by: VM <arimas@foxmail.com>

* feat: replace github.com/gogo/protobuf with github.com/cosmos/gogoproto (#422)

---------

Co-authored-by: VM <arimas@foxmail.com>
Co-authored-by: constwz <changbohao30@gmail.com>
Co-authored-by: Annie <108039750+annielz@users.noreply.github.com>
Co-authored-by: j75689 <j75689@gmail.com>
Co-authored-by: constwz <122766871+constwz@users.noreply.github.com>
Co-authored-by: forcodedancing <just.haha.it@gmail.com>
Co-authored-by: VM <112189277+sysvm@users.noreply.github.com>
Co-authored-by: will-2012 <117156346+will-2012@users.noreply.github.com>
Co-authored-by: Barry <122767193+BarryTong65@users.noreply.github.com>
Co-authored-by: Chris Li <jingjunLi@users.noreply.github.com>
Co-authored-by: krish-z <122767080+krish-nr@users.noreply.github.com>
Co-authored-by: actioncli <joeycli0919@qq.com>
Co-authored-by: krish-nr <krish.z@nodereal.io>
Co-authored-by: yutianwu <wzxingbupt@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r4r Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants