Giter Site home page Giter Site logo

Comments (52)

github-actions avatar github-actions commented on July 3, 2024

Thank you for collaborate with the project giving us feedback!!' You will help us a lot if you can attach and example AVRO and an example Test Plan in order to be able to reproduce the error. If that is the case. Cheers

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Hi Vitaliee,
I´ll check it later today and come you back.

Cheers

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Hi @vitalee78 ,

I took a look into your problem I saw couple of thinks.
a) an issue in the our generic serialiser which I fixed in the branch linked to this issue
b) a miss configuration in your JMX file. In order to add the Key into the message there was a flag name keyed.message which need to be enable ("YES" value) like the image attached
Screenshot 2020-12-01 at 01 03 11

I also took a look into your test plan file and fixed there.
testPlan - Copy.jmx.txt

Just remove the ".txt" and you will be able to try it.

Cheers!!

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

Hi, Jose!
Thank you very much, I`ll definitely try today.

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

Hi, Jose!
if look through ./kafka-avro-console-consumer then a error
2020-12-01 12_03_07-Window
but on version 2.1.3 it worked in avro format

if through ./kafka-console-consumer then no errors

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

HI Vitaliee,
my guess you are using the generic kafka sampler, that one only send the message as a normal Json so yo can read it with the normal kafka-console-consumer.. if you are expecting the binary payload that don´t do this transformation. May be you should try the kafka Sampler or the Confluent one which let you configure which serialiser class should be used.
That solve your problem?
Cheers!

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

Hi Jose!
I try Confluent, the message is not generated so the kafka is empty and the error is log Jmeter as follows
ConfluentKafkaSampler
and I use serialiser class - GenericRecordSerializer for key and value.serializer

If Kafka Sampler, the message is generated and sent to kafka, but the error in kafka-avro-console-consumer...
2020-12-03 11_47_59-Window

and there is still a message in the log Jmeter - WARN, but maybe it`s not critical?
KafkaSampler

Help me understand what I'm doing wrong?

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

HI @vitalee78
is strange, can you please attach your latest test plan and current schema? I'll try to debug it and help you.

Cheers

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

TestPlan_schema.zip

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Hi Vitaliee,
May is a matter of configuration.. I can send messages without no problem with generic and kafka, Confluent is failing because it cannot solve the schema name, but this is issue of my setup I guess.

Screenshot 2020-12-03 at 11 29 01

can you please try with this test plan?

testPlan_KLoadGen.jmx.txt

I´m getting messages in the topic.....

Screenshot 2020-12-03 at 11 30 36

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

Hi kszosze!
you are not tired of me yet? ))

yes it also works for me if I look in kafka-console-consumer
and if you look in kafka-avro-console-consumer, then an error.
2020-12-03 11_47_59-Window

Our application reads in the topic in avro format and therefore I check in kafka-avro-console-consumer
Also the app reads the key / value message into the GenericRecordSerializer
if in the key GenericRecordSerializer error
error_avro_key

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Hi Vitaliee,
is not a problem help and not, I'm not tired of you.
What I'm seeing is you are using the same serialiser for key and value. That's the problem, Key is not an Avro document, so this serialiser should be use. Can you please change it back to the StringSerialiser one please?
org.apache.kafka.common.serialization.StringSerializer
I think that gonna work for you.
Cheers

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

yes, did the key in two versions - StringSerialiser works
And I realized that I misunderstood the task, talked to a colleague developer. Our application reads separately the key with its avro schema and the value with its avro schema
And I don’t understand, but what is the correct way to draw up a test plan and it is possible to do this in a plugin?
We need the key to be sent to avro too
schemas.zip

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Well, that's unusual, key usually are not codec in avro unless you where using the confluent system. Can you try using the io.confluent.kafka.serializers.KafkaAvroSerializer serialiser for the key?

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

yes, we are using the confluent system

I tried with ...KafkaAvroSerializer for the key
2020-12-04 12_57_06-Window

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

If you are using the confluent then your better option is go with the Confluent Sampler, it uses both confluent serialiser by default.. you tried that rigth? and give you some topic related issue?

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

Yes, tried Confluent Sampler, also an error as in the last screenshot
and give me please some topic related issue

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Ok I'll take a look into it today with your example test plan and back to you asap.

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Ok I´m gonna need the key schema too in order to see why it´s not finding it the schema registry. Can you provide it also?
Cheers!

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

schemas.zip
key schema and value schema

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Hi Vitaliee,
after saw your Key Schema I realize we cannot handle it now. But we can implement it, it will take a couple days.
Are you interested in this feature so we will implement it?

Cheers

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

Hi kszosze!
Yes, we interested in this feature!
Thank you!

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Privet Vitalee,

There is a branch linked to this ticket which a first approach for your request.
Is a breaking change, so you are gonna need to rewrite/tweak your test plan.
I upload one as an example about how to use it with your provided schemas.
Wish this gonna work for you.
TestPlans.jmx.txt
Cheers!!

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

Hi kszosze!
I will try to do it today

Thank you!

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

Hi kszosze!
trying to subtract testplan, error
error_jmeter

as I understood in the block
block_xml

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Hi @vitalie,
are you using this branch https://github.com/corunet/kloadgen/tree/%2368_adding_avro_key_support ?
Can you please upload the JMX?
Cheers

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

sorry, I used old release
It works and now I can see our message, but in the topic the message sent to String?
because if you look in kafka-avro-console-consumer then the error
2020-12-03 11_47_59-Window

if you look in a standard consumer (kafka-console-consumer) it works fine
string_topic

my JMX
TestPlans - Copy.jmx.txt

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Ok i'll take a look asap

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Ok i see.. Let's gonna change the Test plan for something like this...
ConfluentkafkaSampler as Java Request Sampler
and serializers should be io.confluent.kafka.serializers.KafkaAvroSerializer.

like this image

Screenshot 2020-12-11 at 12 22 53

then you can see something like

Screenshot 2020-12-11 at 12 25 23

using this command

kafka-avro-console-consumer --bootstrap-server kafka:9092 --topic matomo.matomo.matomo_log_action --group matomo

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

ok, I'll see it now

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

did, but I can't, there is an error on the jmeter side
message is not sent
java_req

error_jmeter

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Which version of JMeter are you using? It sounds the plugin jar hasn't build properly. That class is added in the build process as a dependency. Can you please double check there is only one kloadgen-plugin-X.X.X.jar in the lib/ext folder

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Hi Vitaliee,
some new code had been merge in to master and bring it to this issue branch. There you will find a new Sampler, GenericBinaryKafkaSampler. Do you mind try this one?

Cheers!

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

yes, in the lib/ext folder is only one, kloadgen-plugin-3.1.0.jar

and I try new code

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

I tried using GenericBinaryKafkaSampler but again the error is like in the last screenshot
it looks like I'm doing something wrong

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Well. does is really odd. Can you please send me yout apache-jmeter.... folder to my email jegarcia at corunet dot com

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

Hi Jose!
There was a conflict with another .jar, I removed it and there is no error

and reproduced another error, applied GenericBinaryKafkaSampler, GenericConfluentKafkaSampler and GenericKafkaSampler
also in the message the key missing {idaction: 123}

error_avro

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

well, we are getting better ... I'm asuming those errors are with the latest jmx file I sent to you or the one you sent to me or one new mix of both? I need to know in order to solve you problem.

Cheers!!

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

with my JMX
TestPlans - Copy.jmx.txt

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

I believe you are not using the latest version of that branch.. mainly because with just your jmx and only changing port of Schema Registry and Kafka brokers it give a good answer

Screenshot 2020-12-14 at 12 16 32

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

I using this branch - https://github.com/corunet/kloadgen/tree/%2368_adding_avro_key_support, right?

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

That's the right one. Just was a merge problem with latest changes in Master. I just fix and push them. Can you try it.
Sorry for that.

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

yes, it works right now!

though for some reason in the 'View Results Tree' report there is red text, but there are no errors in the kafka there are messages in avro
red_tree

at the moment it suits us, thanks!

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Red means There is an error during the process. Please check the response, it should show the broker answer.

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Hi Vitaliee,
any news about the red thing or this branch let's you run your tests?
Cheers

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

Hi, Jose!
our testing is working fine now,
but with red text, I did not find the reason, during load I disable this report

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Strange, may be in the response data you can find some answers.
I'll close this issue then.
Cheers

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

in the response data - topic: name_topic, partition: 0, offset: 2358125
I understand there is no crime

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Forget it.. it was a tiny error in the response build. Is gonna be fixed in the next commit.
Sorry and thanks for the feedback!

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

ok,
that is, then I can take the build from the master?

from kloadgen.

kszosze avatar kszosze commented on July 3, 2024

Once I'll do the merge.. for now all changes are over the branch

from kloadgen.

vitalee78 avatar vitalee78 commented on July 3, 2024

ok,
thank you for the work done, now we are using it for our tasks.
we have another point when generating data, but this is not critical, so maybe we will turn again

from kloadgen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.