Skip to content
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

risingwave panicked when running sink example #13865

Closed
wangrunji0408 opened this issue Dec 8, 2023 · 4 comments
Closed

risingwave panicked when running sink example #13865

wangrunji0408 opened this issue Dec 8, 2023 · 4 comments
Assignees
Labels
no-issue-activity type/bug Something isn't working
Milestone

Comments

@wangrunji0408
Copy link
Contributor

wangrunji0408 commented Dec 8, 2023

Describe the bug

When I tried to follow the example in https://tutorials.risingwave.com/docs/basics/sink, RisingWave panicked.
I have started a Kafka on localhost:9092. But the error message showed Failed to resolve 'bogon:9092'.

Error message/log

The first error seems to be:

2023-12-08T11:11:30.426349+08:00 ERROR librdkafka: librdkafka: FAIL [thrd:bogon:9092/0]: bogon:9092/0: Failed to resolve 'bogon:9092': nodename nor servname provided, or not known (after 19ms in state CONNECT)

Eventually it panicked with:

thread 'risingwave-main' panicked at src/meta/src/barrier/mod.rs:1049:13:
failed to execute barrier: gRPC request to stream service failed: Internal error: Actor 33 exited unexpectedly: Executor error: Sink error: Kafka error: Message production error: MessageTimedOut (Local: Message timed out)

To Reproduce

CREATE TABLE t1 (v1 int, v2 int)
WITH (
     connector = 'datagen',
     fields.v1.kind = 'sequence',
     fields.v1.start = '1',
     fields.v2.kind = 'random',
     fields.v2.min = '-10',
     fields.v2.max = '10',
     fields.v2.seed = '1',
     datagen.rows.per.second = '10'
) ROW FORMAT JSON;

CREATE SINK test_sink
FROM t1 
WITH (
        properties.bootstrap.server = 'localhost:9092',
        topic = 'test_sink_topic',
        connector = 'kafka',
        primary_key = 'v1'
)
FORMAT UPSERT ENCODE JSON;

Expected behavior

RisingWave should not panic in this case.

How did you deploy RisingWave?

./risedev p

The version of RisingWave

The main branch 7fd2a0e.

Additional context

risingwave.log

@tabVersion
Copy link
Contributor

will take a look

@tabVersion
Copy link
Contributor

I didn't find the name resolve issue but found a panic inside. 🤣

@tabVersion
Copy link
Contributor

confluentinc/librdkafka#2035 (comment)


Summary: Message production error: MessageTimedOut (Local: Message timed out) basically stands for the producing rate is too high. Consider this case, we may have many parallelisms producing to a single partitioned topic.
Tested locally, if setting the parallelism to 1, everything goes well.

We may consider automatically setting the sink parallelism align with the downstream broker.

Copy link
Contributor

github-actions bot commented Jul 3, 2024

This issue has been open for 60 days with no activity.

If you think it is still relevant today, and needs to be done in the near future, you can comment to update the status, or just manually remove the no-issue-activity label.

You can also confidently close this issue as not planned to keep our backlog clean.
Don't worry if you think the issue is still valuable to continue in the future.
It's searchable and can be reopened when it's time. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue-activity type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants