Skip to content

Commit 6ab886b

Browse files
authored
Document timer task page tokens' risky serialization needs (#6821)
Discovered due to a changed test in #6800 So I am writing this down so an accidental cleanup doesn't break task replication. This _can probably_ be changed at some point, and it'd probably be worth it, but it'd need to be done in two or three fully-deployed-and-all-data-updated stages (support both, create in new format, remove old support) and I don't feel like doing that right now.
1 parent 7c760b9 commit 6ab886b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/persistence/sql/sql_execution_store.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,8 +1007,8 @@ func (m *sqlExecutionStore) CreateFailoverMarkerTasks(
10071007
}
10081008

10091009
type timerTaskPageToken struct {
1010-
TaskID int64
1011-
Timestamp time.Time
1010+
TaskID int64 `json:"TaskID"` // CAUTION: JSON format is used in replication, this should not be changed without great care
1011+
Timestamp time.Time `json:"Timestamp"` // CAUTION: JSON format is used in replication, this should not be changed without great care
10121012
}
10131013

10141014
func (t *timerTaskPageToken) serialize() ([]byte, error) {

0 commit comments

Comments
 (0)