-
Notifications
You must be signed in to change notification settings - Fork 17
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
Handle data-sent and data-queued events in the TransferFinished state #233
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failing due to gofmt
issues.
channels/channels_test.go
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs gofmt
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, need to setup gofmt on my new Goland installation.
channels/channels_fsm.go
Outdated
chst.AddLog("") | ||
return nil | ||
}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad indenting here and below.
Codecov Report
@@ Coverage Diff @@
## master #233 +/- ##
==========================================
+ Coverage 67.44% 67.70% +0.26%
==========================================
Files 24 24
Lines 3044 3044
==========================================
+ Hits 2053 2061 +8
+ Misses 636 627 -9
- Partials 355 356 +1
Continue to review full report at Codecov.
|
Closes #234 .
OnDataSent
hook for blocks that have already been sent which in turn will fire theDataSent
data-transfer event. The same applies to theDataQueued
event.DataSentProgress
and aDataQueuedProgress
events a while ago in Dont double count data sent #185. These events are only emitted the first time we send a block to a remote peer.TransferFinished
state, we can still receiveDataSent
andDataQueued
events for blocks that have already been sent. We need to handle these events gracefully in theTransferFinished
state. We do see a LOT of restarts in Estaury's logs for data-transfer across the board. See attached.DataSentProgress
and aDataQueuedProgress
events in theTransferFinished
state and this is confirmed by Estuary's logs.Note: I don't think this error actually causes storage deals to fail but still nice to fix to clean up the logs.
shuttle-logs-bad-tx3 (1).gz