Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

DB WAL size limit #1935

Merged
merged 2 commits into from
Aug 17, 2016
Merged

DB WAL size limit #1935

merged 2 commits into from
Aug 17, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Aug 16, 2016

Set WAL size limit to 64mb
Also includes DB detection fix made in the beta branch.

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. B0-patch labels Aug 16, 2016
@coveralls
Copy link

coveralls commented Aug 16, 2016

Coverage Status

Coverage decreased (-0.01%) to 85.889% when pulling 66974c8 on db-wal-limit into b45020f on master.

db.latest_era().unwrap_or(0)
let mut client_path = dirs.client_path(genesis_hash, fork_name, *i);
client_path.push("CURRENT");
fs::metadata(&client_path).and_then(|m| m.modified()).ok()
}).unwrap()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will fail if all paths result in Err -> None should probably be unwrap_or_default

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

algo_types can't be empty so this can't panic

Copy link
Collaborator

Choose a reason for hiding this comment

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

Right, sorry. I thought that there is filter being done there.

@tomusdrw tomusdrw added A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. and removed A0-pleasereview 🤓 Pull request needs code review. labels Aug 17, 2016
@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. and removed A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. labels Aug 17, 2016
@tomusdrw tomusdrw added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Aug 17, 2016
@rphmeier
Copy link
Contributor

isn't WAL meant to be a failsafe in case of bad shutdown? Does limiting the size preserve this behavior?

@arkpar
Copy link
Collaborator Author

arkpar commented Aug 17, 2016

64MB should be enough for a failsafe. I've tested for unexpected shutdowns on a linux VM and it appears to be working fine.

@gavofyork gavofyork merged commit e2cf8a8 into master Aug 17, 2016
@gavofyork gavofyork deleted the db-wal-limit branch August 17, 2016 13:55
arkpar added a commit that referenced this pull request Sep 11, 2016
* Limit WAL size

* Check pruning by db modification date (#1924)
arkpar added a commit that referenced this pull request Sep 11, 2016
* Fix several RPCs (#1926)

* Fix up pending receipts details.

* Add support for additional params and registry over RPC.

* Fix tests.

* Add test, additional fix.

Fixes #1932.

* Fix up tests.

* Fix test.

* Fix test.

* DB WAL size limit (#1935)

* Limit WAL size

* Check pruning by db modification date (#1924)

* Cache address hash (#1943)

* ECIES without MAC (#1948)

* Use random IV for ECIES AES

* ECIES encrypt/decrypt for a single message

* Derive IV from shared secret

* Apply settings to column families

* fixed #1933 (#1979)

* Fixed neighbours collection (#1996)

* dapps-hosts configuration

* Disabled counter check

* always process trie death row on commit, add more tracing

* fixed transaction addresses mapping, fixes #1971

* simplified iterator

* v1.3.1

* v1.3.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants