Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

ship delta changes for issue 9255 - #9669

Merged
venu-block1 merged 7 commits into
developfrom
ship_delta_changes_epe-240
Nov 20, 2020
Merged

venu-block1 merged 7 commits into
developfrom
ship_delta_changes_epe-240

Conversation

@venu-block1

Copy link
Copy Markdown
Contributor

Change Description

Change Type

Select ONE

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@tbfleming tbfleming left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This doesn't encode variant version changes correctly

@tbfleming

Copy link
Copy Markdown
Contributor
  • When creating the deltas, it's storing the newer (version 1) table_delta format, but writing version 0 into the stream
  • The ABI file decodes version=0 mapping to table_delta_v1 instead of table_delta_v0
  • The ABI file is missing row_v0 and table_delta_v0

@venu-block1

Copy link
Copy Markdown
Contributor Author
  • The ABI file is missing row_v0 and table_delta_v0

May be I'm misunderstanding the not backward compatible part of this comment "... its a simple change but it is not strictly speaking backwards compatible" on the slack discussion thread. Now, I have both table_delta_v0 and table_delta_v1 in ABI file.

@tbfleming

Copy link
Copy Markdown
Contributor

Later on in that thread we decided to go with strict backwards compatibility.

@venu-block1

Copy link
Copy Markdown
Contributor Author

@tbfleming, I made changes in commit f447093 so that both table_delta_v0 and table_delta_v1 are in ABI file.

Can you please review and confirm if I covered all the changes that are required to be done for this issue? Are there any other code changes I should be doing to advance this draft PR to PR? Thanks!

Comment thread libraries/rodeos/rodeos.cpp Resolved
@tbfleming

Copy link
Copy Markdown
Contributor

This still needs fixing:

  • When creating the deltas, it's storing the newer (version 1) table_delta format, but writing version 0 into the stream

@venu-block1

Copy link
Copy Markdown
Contributor Author

This still needs fixing:

  • When creating the deltas, it's storing the newer (version 1) table_delta format, but writing version 0 into the stream

Please review commit f57011c, and confirm the change fixes this. Thanks!

@tbfleming

Copy link
Copy Markdown
Contributor

Approved. Switch it from draft mode.

@victorj8 victorj8 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I noticed we currently don't have a unit test, for the case where we are updating a value (1), if you could add some that would be great, specially to test_deltas_contract and/or test_deltas_kv (which is where rocksdb and chainbase would be used for delta calculation)

@victorj8
victorj8 marked this pull request as ready for review November 20, 2020 16:13
@victorj8
victorj8 self-requested a review November 20, 2020 16:13
@venu-block1

Copy link
Copy Markdown
Contributor Author

I noticed we currently don't have a unit test, for the case where we are updating a value (1), if you could add some that would be great, specially to test_deltas_contract and/or test_deltas_kv (which is where rocksdb and chainbase would be used for delta calculation)

Changes to exiting test cases to cover present values (0 and 2) are made in b0cf772. Created a ticket to cover present value 1.

@venu-block1
venu-block1 merged commit 16e17c3 into develop Nov 20, 2020
@heifner
heifner deleted the ship_delta_changes_epe-240 branch June 10, 2021 16:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants