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

Save nodes removed from backing_overlay until commit #1917

Merged
merged 1 commit into from
Aug 11, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Aug 11, 2016

Nodes that go out of scope in OverlayRecentDB are moved from backing overlay to the database storage. This transfer used to be atomic, but since we moved to a single DB, there is a time period when the data is removed from backing overlay, but is not in the database yet.
This PR introduces a temporary storage in the OverlayRecentDB for such nodes that gets cleared before each commit.

This should fix #1881

@arkpar arkpar added the A0-pleasereview 🤓 Pull request needs code review. label Aug 11, 2016
@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Aug 11, 2016
@coveralls
Copy link

coveralls commented Aug 11, 2016

Coverage Status

Coverage increased (+0.07%) to 86.201% when pulling 3a7e48b on journaldb-pending into 07844d6 on master.

@gavofyork gavofyork merged commit 0e7b06d into master Aug 11, 2016
@gavofyork gavofyork deleted the journaldb-pending branch August 11, 2016 16:58
arkpar added a commit that referenced this pull request Aug 12, 2016
* RPC errors & logs (#1845)

* Refactoring errors in RPC

* Updating jsonrpc-core

* Fixing code_at

* Avoid mentioning obvious segments in proof

[ci:skip]

* fixed cache_manager lock order

* Purging .derefs, fixing clippy warnings. (#1890)

* Fixing clippy warnings

* Purging derefs

* Simplifying engine derefs

* Simplifying more engine derefs

* Adding more details to miner log

* fixed #1889, .DS_Store is no longer treated as key file (#1892)

* fixed #1889, .DS_Store is no longer treated as key file

* ethstore filters directories, hidden files and common system files

* fixed compiling

* fix regression with geth dir

* fix regression with geth dir

* Fix ipc compilation and add ipc feature to test targets (#1902)

* fix compilation and add it to the ci run

* no separator?

* use quotes and spaces

* RocksDB version bump

* Don't return deleted nodes that are not yet flushed (#1908)

* polling & connection timeouts (#1910)

* Peers RPC + UI displaying active/connected/max peers (#1915)

* Peers API

* Bumping Parity-UI

* Fixing tests

* Save nodes removed from backing_overlay until commit (#1917)
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.

RPC call causes panic
4 participants