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

Port mutable state events buffering functionality to new history builder #1431

Merged
merged 5 commits into from Apr 5, 2021

Conversation

wxing1292
Copy link
Contributor

@wxing1292 wxing1292 commented Apr 2, 2021

What changed?

  • Port mutable state events buffering functionality to new history builder
  • Port mutable state events flushing functionality to new history builder
  • Port mutable state buffer events ID wire logic to new history builder
  • Add necessary UT

Why?
Move events buffer / reordering logic into dedicated place && more UT
Easier to implement events chaining

How did you test it?
New tests

Potential risks
No, code not used yet

Is hotfix candidate?
No

@wxing1292 wxing1292 requested review from alexshtin and a team April 2, 2021 22:47
@wxing1292 wxing1292 enabled auto-merge (squash) April 2, 2021 22:48
@wxing1292 wxing1292 force-pushed the events-reorder branch 2 times, most recently from f6cb5c4 to 11b22f3 Compare April 3, 2021 00:24
@wxing1292 wxing1292 disabled auto-merge April 3, 2021 00:24
@wxing1292 wxing1292 enabled auto-merge (squash) April 3, 2021 00:25
@wxing1292 wxing1292 disabled auto-merge April 3, 2021 00:59
* Port mutable state events buffering functionality to new history builder
* Port mutable state events flushing funtionality to new history builder
* Port mutable state buffer events ID wire logic to new history builder
* Add necessary UT
@wxing1292 wxing1292 force-pushed the events-reorder branch 2 times, most recently from c0043ea to 01c9415 Compare April 5, 2021 06:40
// TODO historyEvent.TaskId
historyEvent.EventId = b.nextEventID
historyEvent.TaskId = common.EmptyEventTaskID
b.nextEventID += 1
Copy link
Member

Choose a reason for hiding this comment

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

++ ?

service/history/mutablestate/history_builder.go Outdated Show resolved Hide resolved
@wxing1292 wxing1292 enabled auto-merge (squash) April 5, 2021 21:02
@wxing1292 wxing1292 merged commit ea173e0 into temporalio:master Apr 5, 2021
@wxing1292 wxing1292 deleted the events-reorder branch April 5, 2021 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants