Skip to content

Conversation

@samarabbas
Copy link
Contributor

What changed?
Use 0 as value for EmptyEventID which represent value not being set

Why?
Previously we used a special value -23 to represent value for EventID is not not set.
After moving to protobuf we now use 0 as the value which represents Unspecified throughout the codebase.
For consistency moving to 0 as the value for EmptyEventID.

How did you test it?
Unit and Integration tests.

Potential risks
Medium Risk.

@samarabbas samarabbas requested a review from alexshtin July 30, 2020 08:09
BufferedEventID int64 = -123
// EmptyEventTaskID is uninitialized id of the task id within event
EmptyEventTaskID int64 = -1234
EmptyEventTaskID int64 = 0
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not what title says.

@samarabbas samarabbas force-pushed the empty-event-id-to-zero branch from 40121e1 to c86993c Compare July 31, 2020 00:54
@samarabbas samarabbas merged commit 04c4220 into temporalio:master Jul 31, 2020
@samarabbas samarabbas deleted the empty-event-id-to-zero branch July 31, 2020 05:23
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