You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(protocol): fix random generation of CommandDistributionRecords
The CommandDistributionRecord contains a ValueType and a UnifiedRecordValue. We must make sure during the random generation of this record that the UnifiedRecordValue matches the ValueType. This is achieved by creating a custom randomizer for this specific class.
A downside of this implementation is that the ProtocolFactory is now aware of this specific Record. When we make changes in the Record we must change them in this randomizer as well.
Copy file name to clipboardExpand all lines: protocol-impl/src/main/java/io/camunda/zeebe/protocol/impl/record/value/distribution/CommandDistributionRecord.java
+6
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,12 @@ public final class CommandDistributionRecord extends UnifiedRecordValue
0 commit comments