gatling-kafka icon indicating copy to clipboard operation
gatling-kafka copied to clipboard

Gatling 3.4 compatibility

Open arthur25000 opened this issue 4 years ago • 4 comments

Hello.

Not sure if this project is still maintain but if anyone needs it, here is a patch for Gatling 3.4.2 compatibility : support_for_gatling_3_4.patch.txt

I'd have created a PR but I'm not allowed to create a branch.

These modifications are NOT tested thoroughly, I've just made modification so that the project compile against Gatling 3.4.2 and tested that sending a message to a kafka queue is working (check the BaseSimulation example)

In case anyone needs the sources, I've forked this repository and push the modification to a branch named gatling-3.4 : https://github.com/arthur25000/gatling-kafka/tree/gatling-3.4

arthur25000 avatar Jan 11 '21 07:01 arthur25000

Hey Arthur, thx for this message and your work. Built the project you changed, however the jar does not get generated. any clues ?

dekideian avatar Feb 06 '21 21:02 dekideian

Hi. What command did you run ?

You have to run "package" phase to build the jar, not just the compile phase : "sbt compile package"

arthur25000 avatar Feb 07 '21 11:02 arthur25000

Hey Arthur,

Thanks for the response, I finally got it running by using the exact version you suggested (3.4.2) of gatling. When the jar was not generated I had scala 2.13 installed. With scala 2.12 the jar was generated(with sbt assembly) and by using gatling 3.4.2 messages reached Kafka. Thank you very much Arthur! :) It's a shame you can't open a branch here on mnogu for this change..

Best regards 👍

dekideian avatar Feb 08 '21 07:02 dekideian

It's a shame you can't open a branch here on mnogu for this change..

@arthur25000 you'll have to create a fork of this repo, make your change in a new branch in your fork, and then raise a PR back to this repository. This workflow is quite common in open source repos.

testworksau avatar Feb 15 '21 03:02 testworksau