-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Bug] Kafka Protocol is not working on Pulsar latest releases #24085
Comments
@mukesh154 Thanks for reporting. Do you have a chance to test with changes from #24087 ? |
@lhotari Yes, I tested with the above fix. While the IllegalStateException is no longer present, the consumer is still not initializing properly and is not receiving messages. The following log is continuously printed on the benchmark client:
|
@mukesh154 In 3.3.5 and 4.0.3 there's a potential regression which is mentioned in the release notes: https://pulsar.apache.org/release-notes/versioned/pulsar-3.3.5/#known-issues . It's worth testing with 3.3.4 instead of 3.3.5 due to that known issue. |
Kafka protocol support is not a standard part of the Pulsar project. Since you're using The 1st regression should be introduced by #23697 and fixed by #24087. The 2nd regression introduced by #23931 could be fixed by a workaround like changing https://github.com/datastax/starlight-for-kafka/blob/1bf51f259eb5ac4afca2d17eee1a9fd94c53d2c4/kafka-impl/src/main/java/io/streamnative/pulsar/handlers/kop/storage/PartitionLog.java#L1329 to long adjustedMaxBytes = Integer.MAX_VALUE; But it seems that NPE would still happen before #24089 is merged. I don't get which cases could it happen because the tests of our internal Kafka protocol implementation didn't fail. |
Search before asking
Read release policy
Version
Minimal reproduce step
Package the protocols inside apachepulsar/pulsar:3.3.5 image using below Dockerfile:
Build image:
docker buildx build --platform linux/amd64 -t custom-pulsar .
Deploy the custom-pulsar image with below additional configs to pulsar components to enable the kafka protocol:
broker:
proxy:
Now, deploy omb-kafka driver to run the kafka protocol testing by using : openmessaging/benchmark repo.
Exec into the omb-driver:
kubectl --namespace=mypulsar exec omb-driver --container=omb-driver -n mypulsar -- bash
Add test duration & copy the file:
Now run the benchmark test:
/benchmark/bin/benchmark -d driver-kafka/kafka-all.yaml-pulsar-proxy.yaml -w $WORKERS workloads/workload.yaml
What did you expect to see?
The omb-driver should do its work w/o any error.
What did you see instead?
The client will get stuck at this point:
You will see below error on the broker:
Anything else?
The issue arises after inclusion of this PR #23697. Without this PR, the functionality is working as expected.
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: