Code Monkey home page Code Monkey logo

Comments (5)

github-actions avatar github-actions commented on September 27, 2024

Thank you for collaborating with the project by giving us feedback! In case it applies, it would be helpful if you could attach an example AVRO and an example test plan for us to reproduce the error. Cheers!

from kloadgen.

amondacaSN avatar amondacaSN commented on September 27, 2024

Please, can you try with the property java.security.auth.login.config? It can directly take the value:

KafkaClient {
 org.apache.kafka.common.security.scram.ScramLoginModule required username="{username}" password="{password}";
};

or even a path to the config file containing this information.

from kloadgen.

ChameleonTartu avatar ChameleonTartu commented on September 27, 2024

@amondacaSN I have tried this mechanism, but the issue is that I still get no logs. I chose "ALL," and I cannot see if the producer sends any requests to Kafka.

  • Does it mean that there is no HTTP request ever sent? Do you think it should be sent?
  • How do I know that connection is established correctly?
  • What steps can I try to make it work/debug further?

from kloadgen.

amondacaSN avatar amondacaSN commented on September 27, 2024

@ChameleonTartu if you do not see any error log lines, probably this means that the HTTP request has been sent succesfully, because error level logs are active by default.
However, if you want to debug something related to KafkaProducer more depth, then you should config KafkaProducer logger in trace level. This can be done by adding this line to the Jmeter log4j2 config file (located in the bin jmeter directory):

<Logger name="org.apache.kafka.clients.producer" level="trace" />

With this configuration you will see new tace lines related to the KafkaProducer and Sender in the Log Viewer window like this:

TRACE o.a.k.c.p.KafkaProducer: [Producer clientId=] Waking up the sender since topic test_topic partition 0 is either full or getting a new batch
TRACE o.a.k.c.p.i.Sender: [Producer clientId=] Nodes with data ready to send: [localhost:29092 (id: 1001 rack: null)]
TRACE o.a.k.c.p.i.Sender: [Producer clientId=] Sent produce request to 1001: (type=ProduceRequest, acks=1, timeout=30000, partitionRecords=([PartitionProduceData(index=0, records=MemoryRecords(size=127, buffer=java.nio.HeapByteBuffer[pos=0 lim=127 cap=127]))]), transactionalId=''
TRACE o.a.k.c.p.i.Sender: [Producer clientId=] Received produce response from node 1001 with correlation id 3
TRACE o.a.k.c.p.i.ProducerBatch: Successfully produced messages to test_topic-0 with base offset 2.

from kloadgen.

amondacaSN avatar amondacaSN commented on September 27, 2024

@ChameleonTartu have you tried this solution? Do you need anything else from this issue?

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.