eolivelli opened a new pull request #9396: URL: https://github.com/apache/pulsar/pull/9396
### Motivation if you do not set an initial schema to the Producer the schema must be prepared at the first message with a Schema. There is a bug and compression is not applied in this case, and the consumer receives an uncompressed message, failing ### Modifications Ensure that compression is applied in the code path during the schema preparation. With enableBatching=true the compression is usually applied per batch, but in case of schema preparation the code flows down to a separate path and we have to enforce compression. ### Verifying this change This change added tests that failed without this fix ### Does this pull request potentially affect one of the following parts: The patch applied to producers that enable batching, compression and do not send an initial schema to the producer. ---------------------------------------------------------------- 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]
