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

Remove Proto Double Serialization, VersionHistories Column Cassandra #624

Merged
merged 2 commits into from
Jul 28, 2020
Merged

Remove Proto Double Serialization, VersionHistories Column Cassandra #624

merged 2 commits into from
Jul 28, 2020

Conversation

shawnhathaway
Copy link
Contributor

What changed?

  • Embed the CompletionEvent, AutoResetPoints and VersionHistory protos natively rather than embedding a Datablob representation (double serializing them).
  • Remove the VersionHistories column in the Executions table. This is already stored in the executionInfo proto object.

Why?

  • Double serialization bad
  • Extra storage not needed

How did you test it?

  • Local tests, buildkite

}

state = ReplicationStateFromProtos(protoInfo, protoReplVersions)
}

return info, state, nil
// var vh *history.VersionHistories
Copy link
Member

Choose a reason for hiding this comment

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

Why these are commented out?

Copy link
Contributor Author

@shawnhathaway shawnhathaway Jul 28, 2020

Choose a reason for hiding this comment

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

In case these tests fail :) I removed fetching it from the column and used the proto object that is stored already

@@ -427,6 +426,9 @@ func (h *VersionHistories) Duplicate() *VersionHistories {

// ToProto return thrift format of version histories
Copy link
Member

Choose a reason for hiding this comment

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

🤦

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like thrift got a major upgrade!

@shawnhathaway shawnhathaway merged commit 80514cd into temporalio:master Jul 28, 2020
@shawnhathaway shawnhathaway changed the title Avoid Double Serialization; Remove VersionHistories Column Cassandra Remove Proto Double Serialization, VersionHistories Column Cassandra Jul 28, 2020
@shawnhathaway shawnhathaway deleted the double_encode branch July 28, 2020 23:57
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.

2 participants