Skip to content

[Bug] app_name  #3490

@jweicai

Description

@jweicai

Search before asking

  • I had searched in the issues and found no similar issues.

Java Version

No response

Scala Version

2.12.x

StreamPark Version

2.1.2

Flink Version

1.17.1

deploy mode

None

What happened

When creating a sparksql task, app_name can be a very long string. However, when you copy a task and have a very long app_name, an error will be reported, and the error level is relatively high. This should not be a reasonable operation.

Error Exception

internal server error: ### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'cluster_id' at row 1 ### The error may exist in org/apache/streampark/console/core/mapper/ApplicationMapper.java (best guess) ### The error may involve org.apache.streampark.console.core.mapper.ApplicationMapper.insert-Inline ### The error occurred while setting parameters ### SQL: INSERT INTO t_flink_app ( team_id, job_type, user_id, job_name, version_id, cluster_id, flink_image, k8s_namespace, state, `release`, restart_size, option_state, alert_id, args, options, hot_params, resolve_order, execution_mode, dynamic_properties, app_type, tracking, cp_max_failure_interval, cp_failure_rate_interval, cp_failure_action, description, create_time, k8s_hadoop_integration, tags ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) ### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'cluster_id' at row 1 ; Data truncation: Data too long for column 'cluster_id' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Data too long for column 'cluster_id' at row 1

Screenshots

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!(您是否要贡献这个PR?)

Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions