Comments (4)
I cant reproduce this issue, could you provide the relevant parts of your code?
This works for me:
#include <librdkafka/rdkafka.h>
...
static void logger (const rd_kafka_t *rk, int level,
const char *fac, const char *buf) {
fprintf(stderr, "RDKAFKA-%i-%s: %s: %s\n",
level, fac, rd_kafka_name(rk), buf);
}
....
int main (...) {
...
rk = rd_kafka_new(....);
rd_kafka_set_logger(rk, logger);
...
from librdkafka.
Hi, Magnus.
Thank you for your reply.
I find that I used "rk->rk_name" in my c++ code. This causes the compilation error above since the compiler could not find the definition of "rd_kafka_t". What a stupid mistake!
When I use "rd_kafka_name(const_cast<rd_kafka_t *>(rk))" instead, the compilation error disappears.
from librdkafka.
Did you mean to reopen this issue?
from librdkafka.
No. Actually, I am new to Github. This is a misoperation. I hope you don't mind. :)
Thank you for solving my problem.
from librdkafka.
Related Issues (20)
- Some components use `strcmp` which is vulnerable to timing attacks
- Timeout overflows when over 2047.48
- Crash in rd_kafka_broker_add_logical HOT 1
- Reading committed offsets where metadata contains null byte leads to reading random data after null byte.
- zlib library security vulnerability through to version 1.3
- when using librdkafka, create a thread will fail.
- Unable to connect C++ consumer client with OAUTHBEARER mechanism to server HOT 1
- query_watermark_offsets() Doesn't Return Authentication Failure Errors.
- Critical Vulnerabilities identified in librdkafka HOT 3
- Pr 1
- Sporadic crash in rd_kafka_buf_callback()
- Starting with 8e20e1ee, after broker goes down and back up, `rd_kafka_destroy` of groupconsumer hangs HOT 3
- Increased CPU usage caused by a loop lasting 1ms max HOT 1
- Metadata cache cleared by a full metadata refresh HOT 1
- Resuming partitions not paused, manually or through incremental subscribe, can cause to restart consuming from a previous offset HOT 1
- Undesired partition migration happening because of stale metadata
- I am facing issue i try to build librdkafka and using CMake and it give me error for some library like unistd.h in transaction.h file
- Transactional producer silently fails to commit a transaction.
- libzstd not available at build time HOT 1
- Fails to set security.protocol to SSL HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librdkafka.