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

Stream Load transaction interface does not generate a label. #48465

Closed
jkim650 opened this issue Jul 16, 2024 · 5 comments · Fixed by #48548
Closed

Stream Load transaction interface does not generate a label. #48465

jkim650 opened this issue Jul 16, 2024 · 5 comments · Fixed by #48548
Assignees
Labels
type/bug Something isn't working

Comments

@jkim650
Copy link
Contributor

jkim650 commented Jul 16, 2024

Steps to reproduce the behavior (Required)

  1. CREATE DATABASE IF NOT EXISTS test_db;
  2. CREATE TABLE IF NOT EXISTS test_db.test_table (id INT NOT NULL) ENGINE=OLAP PROPERTIES ("replication_num" = "1");
  3. curl --location-trusted -uroot: -H "Expect: 100-continue" -H "db: test_db" -H "table: test_table" -XPOST http://localhost:8030/api/transaction/begin -v

Expected behavior (Required)

Starrocks returns "Status": "OK" with a generated "Label" as documented in https://docs.starrocks.io/docs/loading/Stream_Load_transaction_interface/#precautions.

Real behavior (Required)

Starrocks returned "Status": "FAILED" with empty label message.

{
  "Status": "FAILED",
  "Message": "class com.starrocks.common.UserException: empty label."
}

StarRocks version (Required)

  • 3.2
@jkim650 jkim650 added the type/bug Something isn't working label Jul 16, 2024
@tracymacding
Copy link
Contributor

3.2.x?

@banmoy
Copy link
Contributor

banmoy commented Jul 17, 2024

This should be a bug, and I will fix it later. Could you first specify the label explicitly as a workaround?

@chaoyli
Copy link
Contributor

chaoyli commented Jul 17, 2024

3.2.4 @tracymacding

@jkim650
Copy link
Contributor Author

jkim650 commented Jul 17, 2024

This should be a bug, and I will fix it later. Could you first specify the label explicitly as a workaround?

Sure. Thanks.

@banmoy
Copy link
Contributor

banmoy commented Jul 18, 2024

@jkim650 I checks the current implementation of transaction stream load again, and it actually relies on the user provided label at begin. The behavior is as expected, and since 2.5. So I will fix the wrong document description.

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

Successfully merging a pull request may close this issue.

4 participants