StarRocks / starrocks

StarRocks, a Linux Foundation project, is a next-generation sub-second MPP OLAP database for full analytics scenarios, including multi-dimensional analytics, real-time analytics, and ad-hoc queries.
https://starrocks.io
Apache License 2.0
8.74k stars 1.75k forks source link

Transaction stream load failed due to NPE #43325

Open wangshisan opened 6 months ago

wangshisan commented 6 months ago

Steps to reproduce the behavior (Required)

CREATE TABLE IF NOT EXISTS test_bucket (user_idint NOT NULL ) ENGINE=OLAP DISTRIBUTED BY HASH(user_id) BUCKETS 2 PROPERTIES ( "replication_num" = "1" );

echo '1' > test_load.csv

curl --location-trusted -u root:'' -H "label:streamload_txn_example3" \
-H "channel_num:5" \
-H "channel_id:0" \
-H "timeout:600" \
-H "db:test" \
-H "table:test_bucket" \
-XPOST http://127.0.0.1:8080/api/transaction/begin
curl --location-trusted -u root:'' -H "label:streamload_txn_example3" \
-H "channel_num:5" \
-H "channel_id:1" \
-H "db:test" -H "table:test_bucket" \
-T test_load.csv \
-XPUT http://127.0.0.1:8080/api/transaction/load

Expected behavior (Required)

Load success

Real behavior (Required)

Load Failed

Screenshot 2024-03-28 at 14 42 30

StarRocks version (Required)

github-actions[bot] commented 1 day ago

We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!