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

Fixed race condition in trace import #2555

Merged
merged 1 commit into from
Oct 10, 2016
Merged

Fixed race condition in trace import #2555

merged 1 commit into from
Oct 10, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Oct 10, 2016

probably fixes #2475

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Oct 10, 2016
@@ -276,12 +266,25 @@ impl<T> TraceDatabase for TraceDB<T> where T: DatabaseExtras {
// all traces are expected to be found here. That's why `expect` has been used
// instead of `filter_map`. If some traces haven't been found, it meens that
// traces database is corrupted or incomplete.
.map(|block_hash| self.traces(block_hash).expect("Traces database is incomplete."))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The trace might have been removed by garbage collection at this point

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0005%) to 86.399% when pulling e7c986a on trace-fix into 06df535 on master.

@gavofyork gavofyork merged commit 55dbd5b into master Oct 10, 2016
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 10, 2016
@gavofyork gavofyork deleted the trace-fix branch October 10, 2016 21:07
arkpar added a commit that referenced this pull request Oct 11, 2016
arkpar added a commit that referenced this pull request Oct 11, 2016
* v1.3.6

* Print backtrace on panic (#2535)

* Don't activate peers on connect; Test (#2537)

* Removing unwarps from sync module (#2551)

* Remove unwrap from client module (#2554)

* remove unwraps in client

* imporve block hash expect message

* mining perf trace

* Fixed race condition in trace import (#2555)
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. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parity crashes at some blocks when running with --pruning archive
3 participants