gaoran10 commented on a change in pull request #10811:
URL: https://github.com/apache/pulsar/pull/10811#discussion_r644969977
##########
File path:
pulsar-client/src/test/java/org/apache/pulsar/client/impl/TypedMessageBuilderImplTest.java
##########
@@ -225,5 +226,12 @@ public void testSetKeyBytesEncodingTypeSeparated() {
}
}
+ @Test
+ public void test() {
+ producerBase = mock(ProducerBase.class);
+ TypedMessageBuilderImpl builder = new
TypedMessageBuilderImpl(producerBase, null);
+ AutoConsumeSchema autoConsumeSchema = new AutoConsumeSchema();
Review comment:
The method `message.getValue()` will use the AutoConsumeSchema to decode
data.
Because the schema version is null, so fallback uses the BYTES schema to
decode data.
--
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:
[email protected]