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

Added peer miniblocks save after start in epoch #4091

Merged
merged 14 commits into from
Jul 7, 2022

Conversation

iulianpascalau
Copy link
Contributor

@iulianpascalau iulianpascalau commented May 19, 2022

  • added peer miniblocks save after start in epoch

@iulianpascalau iulianpascalau marked this pull request as draft May 19, 2022 17:30
@codecov-commenter
Copy link

codecov-commenter commented May 24, 2022

Codecov Report

❗ No coverage uploaded for pull request base (rc/2022-july@92dc934). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 8fee048 differs from pull request most recent head 3a96cff. Consider uploading reports for the commit 3a96cff to get more accurate results

@@               Coverage Diff               @@
##             rc/2022-july    #4091   +/-   ##
===============================================
  Coverage                ?   73.66%           
===============================================
  Files                   ?      661           
  Lines                   ?    85495           
  Branches                ?        0           
===============================================
  Hits                    ?    62979           
  Misses                  ?    17792           
  Partials                ?     4724           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92dc934...3a96cff. Read the comment docs.

@iulianpascalau iulianpascalau marked this pull request as ready for review June 16, 2022 11:32
@iulianpascalau iulianpascalau changed the base branch from master to rc/2022-june June 16, 2022 11:32
# Conflicts:
#	epochStart/bootstrap/interface.go
#	epochStart/bootstrap/syncValidatorStatus.go
@iulianpascalau iulianpascalau changed the title [WIP]Fix wrong pending miniblocks request Fix wrong pending miniblocks request Jun 16, 2022
@iulianpascalau iulianpascalau changed the title Fix wrong pending miniblocks request Added peer miniblocks save after start in epoch Jun 21, 2022
sstanculeanu
sstanculeanu previously approved these changes Jun 21, 2022
@ssd04 ssd04 self-requested a review June 21, 2022 11:59
sstanculeanu
sstanculeanu previously approved these changes Jun 22, 2022
ssd04
ssd04 previously approved these changes Jun 22, 2022
@iulianpascalau iulianpascalau changed the base branch from rc/2022-june to rc/2022-july July 5, 2022 06:38
@iulianpascalau iulianpascalau dismissed stale reviews from ssd04 and sstanculeanu July 5, 2022 06:38

The base branch was changed.

sstanculeanu
sstanculeanu previously approved these changes Jul 7, 2022
ssd04
ssd04 previously approved these changes Jul 7, 2022
@iulianpascalau iulianpascalau dismissed stale reviews from ssd04 and sstanculeanu via 3a96cff July 7, 2022 10:37
sstanculeanu
sstanculeanu previously approved these changes Jul 7, 2022
@@ -103,6 +106,14 @@ func (p *pendingMiniBlocks) SyncPendingMiniBlocks(miniBlockHeaders []data.MiniBl
func (p *pendingMiniBlocks) syncMiniBlocks(listPendingMiniBlocks []data.MiniBlockHeaderHandler, ctx context.Context) error {
_ = core.EmptyChannel(p.chReceivedAll)

// TODO - remove this
Copy link
Contributor

Choose a reason for hiding this comment

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

is this still required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, removed. Thanks

@@ -1267,7 +1267,7 @@ func (bp *baseProcessor) saveBody(body *block.Body, header data.HeaderHandler, h
if errNotCritical != nil {
log.Warn("saveBody.Put -> MiniBlockUnit", "error", errNotCritical.Error())
}
log.Trace("saveBody.Put -> MiniBlockUnit", "time", time.Since(startTime))
log.Debug("saveBody.Put -> MiniBlockUnit", "time", time.Since(startTime), "hash", miniBlockHash) // TODO revert this to TRACE
Copy link
Contributor

Choose a reason for hiding this comment

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

missing todo revert

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reverted. Thanks

"used", persisterToUse.epoch,
"path", ps.dbPath,
"returning persister", returningPath,
"stack", string(debug.Stack())) // TODO remove debug.Stack call
Copy link
Contributor

Choose a reason for hiding this comment

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

missing todo revert

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed. Thanks

@sstanculeanu sstanculeanu self-requested a review July 7, 2022 10:46
Copy link
Collaborator

@gabi-vuls gabi-vuls left a comment

Choose a reason for hiding this comment

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

System test passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants