Closed lhotari closed 1 week ago
any released version
-
I'd expect that the configured compression type would be used. compression type is handled in the other location where Pulsar Sources create producers: https://github.com/apache/pulsar/blob/5fc0eafab9ea2a4ece7b87218404489c270b64e6/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/sink/PulsarSink.java#L123-L127
crypto config is handled for Pulsar Sources: https://github.com/apache/pulsar/blob/5fc0eafab9ea2a4ece7b87218404489c270b64e6/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/sink/PulsarSink.java#L134-L140
compression type is hard coded to LZ4: https://github.com/apache/pulsar/blob/5fc0eafab9ea2a4ece7b87218404489c270b64e6/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/ContextImpl.java#L565 There's no crypto config configuration.
Code to create producers shouldn't be duplicated in Pulsar Functions since it leads to inconsistencies.
Search before asking
Read release policy
Version
any released version
Minimal reproduce step
-
What did you expect to see?
I'd expect that the configured compression type would be used. compression type is handled in the other location where Pulsar Sources create producers: https://github.com/apache/pulsar/blob/5fc0eafab9ea2a4ece7b87218404489c270b64e6/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/sink/PulsarSink.java#L123-L127
crypto config is handled for Pulsar Sources: https://github.com/apache/pulsar/blob/5fc0eafab9ea2a4ece7b87218404489c270b64e6/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/sink/PulsarSink.java#L134-L140
What did you see instead?
compression type is hard coded to LZ4: https://github.com/apache/pulsar/blob/5fc0eafab9ea2a4ece7b87218404489c270b64e6/pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/ContextImpl.java#L565 There's no crypto config configuration.
Anything else?
Code to create producers shouldn't be duplicated in Pulsar Functions since it leads to inconsistencies.
Are you willing to submit a PR?