Fix protogen empty messages marshaling #108

Merged
fyrchik merged 2 commits from fyrchik/frostfs-api-go:protogen-compat into master 2024-09-04 19:51:17 +00:00
Owner
  1. Add tests for compatibility of already written StableMarshal() functions. This will be useful during the transition period, were we to add any new messages.
  2. Compare with nil, do not use StableSize() invocation.
1. Add tests for compatibility of _already written_ `StableMarshal()` functions. This will be useful during the transition period, were we to add any new messages. 2. Compare with nil, do not use `StableSize()` invocation.
fyrchik added 2 commits 2024-08-27 07:55:59 +00:00
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
protogen: Distinguish between empty and nil messages
Some checks failed
Tests and linters / Tests (1.22) (pull_request) Successful in 1m21s
DCO action / DCO (pull_request) Failing after 1m24s
Tests and linters / Tests (1.23) (pull_request) Successful in 1m37s
Tests and linters / Tests with -race (pull_request) Successful in 1m50s
Tests and linters / Lint (pull_request) Successful in 2m33s
6a1f9272b2
Refs #59

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik force-pushed protogen-compat from 6a1f9272b2 to 9310d64742 2024-08-27 07:56:17 +00:00 Compare
fyrchik requested review from storage-core-committers 2024-08-27 07:56:19 +00:00
fyrchik requested review from storage-core-developers 2024-08-27 07:56:19 +00:00
Author
Owner

Caught by @mbiryukova because of the panic in TrueCloudLab/frostfs-sdk-go#260

Caught by @mbiryukova because of the panic in https://git.frostfs.info/TrueCloudLab/frostfs-sdk-go/issues/260
fyrchik force-pushed protogen-compat from 9310d64742 to 5fece80b42 2024-08-27 08:02:28 +00:00 Compare
aarifullin approved these changes 2024-08-27 08:06:42 +00:00
fyrchik added the
bug
internal
labels 2024-08-27 08:14:08 +00:00
acid-ant approved these changes 2024-08-27 08:15:20 +00:00
fyrchik merged commit 5fece80b42 into master 2024-08-27 08:30:30 +00:00
fyrchik deleted branch protogen-compat 2024-08-27 08:30:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-api-go#108
No description provided.