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
fix(actors): timer ticker bug #2673
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2673 +/- ##
==========================================
+ Coverage 58.09% 58.14% +0.05%
==========================================
Files 82 82
Lines 7385 7390 +5
==========================================
+ Hits 4290 4297 +7
+ Misses 2802 2799 -3
- Partials 293 294 +1
Continue to review full report at Codecov.
|
@vinayada1 can you review this? |
@@ -828,6 +828,10 @@ func (a *actorsRuntime) CreateReminder(ctx context.Context, req *CreateReminderR | |||
} | |||
|
|||
func (a *actorsRuntime) CreateTimer(ctx context.Context, req *CreateTimerRequest) error { | |||
var ( | |||
err error |
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.
Could you please add a UT?
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.
it means Unit Test?
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.
Yes, unit test.
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.
@1046102779 we will merge this as is, thanks a lot for this fix. please find the time to add a unit test in a separate PR. |
The timer task needs to wait for the execution of the first dueTime's task to start the period's timer