sv2000 commented on a change in pull request #2956: GOBBLIN-1116: Avoid registering schema with schema registry during Me… URL: https://github.com/apache/incubator-gobblin/pull/2956#discussion_r410378026
########## File path: gobblin-metrics-libs/gobblin-metrics-base/src/main/java/org/apache/gobblin/metrics/reporter/util/EventUtils.java ########## @@ -109,5 +110,47 @@ public synchronized static GobblinTrackingEvent deserializeReportFromAvroSeriali closer.close(); } } -} + /** + * Parses a {@link org.apache.gobblin.metrics.GobblinTrackingEvent} from a byte array Avro serialization. + * @param reuse GobblinTrackingEvent to reuse. + * @param bytes Input bytes. + * @param schemaId Expected schemaId. + * @param schemaIdLengthBytes schemaId length in number of bytes. + * @return GobblinTrackingEvent. + * @throws java.io.IOException + */ + public synchronized static GobblinTrackingEvent deserializeEventFromAvroSerialization(GobblinTrackingEvent reuse, byte[] bytes, String schemaId, int schemaIdLengthBytes) Review comment: Thanks. Done. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services