Skip to content

Conversation

@morgando
Copy link
Contributor

@morgando morgando commented Dec 18, 2025

Deletes non-protobuf schema change serialization code.

Don't merge until we're sure we won't want to do a direct 8.0 -> 8.2 upgrade (8.0 doesn't understand the protobuf format, so we would need to have it disabled during the upgrade process so that the nodes coming up as 8.2 don't send messages that the 8.0 nodes don't understand)

@morgando morgando changed the title Only support serializing schema changes with protobuf Require protobuf schema change serialization Dec 18, 2025
Copy link

@roborivers roborivers left a comment

Choose a reason for hiding this comment

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

Coding style check: Success ✓.
Cbuild submission: Success ✓.
Regression testing: Success ✓.

The first 10 failing tests are:
consumer_non_atomic_default_consumer_generated
insert_lots
reco-ddlk-sql

free(buf);
return NULL;
}
p_buf = p_buf_end = buf + plen;
Copy link
Contributor Author

@morgando morgando Dec 18, 2025

Choose a reason for hiding this comment

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

I got rid of this line because if we return zero from pack_schema_change_protobuf, then buf is guaranteed to be non-null. if buf is non null, then p_buf won't be null. If p_buf is never null, then we don't need to compute p_buf and can get rid of the if (!p_buf) block below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also removed p_buf_end because it is not used.

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