-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[da-vinci] Enable compatibility of DVRT for BLOB transfer #1280
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -306,13 +306,22 @@ CharSequence guidToUtf8(GUID guid) { | |
return new Utf8(GuidUtils.getCharSequenceFromGuid(guid)); | ||
} | ||
|
||
public Integer getTransformerClassHash() { | ||
return partitionState.getTransformerClassHash(); | ||
} | ||
|
||
public void setTransformerClassHash(Integer classHash) { | ||
this.partitionState.transformerClassHash = classHash; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "OffsetRecord{" + "localVersionTopicOffset=" + getLocalVersionTopicOffset() + ", upstreamOffset=" | ||
+ getPartitionUpstreamOffsetString() + ", leaderTopic=" + getLeaderTopic() + ", offsetLag=" + getOffsetLag() | ||
+ ", eventTimeEpochMs=" + getMaxMessageTimeInMs() + ", latestProducerProcessingTimeInMs=" | ||
+ getLatestProducerProcessingTimeInMs() + ", isEndOfPushReceived=" + isEndOfPushReceived() + ", databaseInfo=" | ||
+ getDatabaseInfo() + ", realTimeProducerState=" + getRealTimeProducerState() + '}'; | ||
+ getDatabaseInfo() + ", realTimeProducerState=" + getRealTimeProducerState() + ", transformerClassHash=" | ||
+ getTransformerClassHash() + '}'; | ||
Comment on lines
+309
to
+324
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Can we make it explicit that this belongs to the record transformer? i.e. |
||
} | ||
|
||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,6 +186,12 @@ | |
"avro.java.string": "String" | ||
}, | ||
"default": {} | ||
}, | ||
{ | ||
"name": "transformerClassHash", | ||
"doc": "An integer hash code of the DaVinci record transformer for compatibility checks during BLOB transfer", | ||
"type": ["null", "int"], | ||
"default": null | ||
Comment on lines
+191
to
+194
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: DaVinci record transformer -> DaVinciRecordTransformer This will also be utilized when blob transfer isn't enabled. Can we change the phrasing to "during bootstrapping?" |
||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we set up the mocks so that this passes?