DanielLeens opened a new issue, #13693:
URL: https://github.com/apache/seatunnel/issues/13693

   ### Search before asking
   
   I searched open and closed issues and pull requests for Doris label length, 
`LabelGenerator`, and `Label format error`. #13111 fixes multi-table label 
uniqueness; #10060 is an open shutdown/resource-cleanup fix. Neither bounds the 
generated label length. #4912 concerns unresolved configuration substitution, 
rather than this length failure.
   
   ### What happened
   
   At dev `0bef81d003a9dcc3266a10140dc639534ad81bfd`, a native Doris sink can 
fail after a successful small smoke test because the full generated label 
exceeds Doris' 128-character limit. This was reproduced against Apache Doris 
2.1.11-rc01 (`97b77e6cda`) while warming a 100,000-row mixed-type batch job. 
This is a correctness blocker, not a valid throughput measurement.
   
   The writer builds 
`configuredPrefix_database_table_jobId_subtask_sourceCRC_timestamp_sequence`. A 
2-character configured prefix, 21-character database name, 56-character table 
name, 19-digit job id, subtask `0`, 8-hex source discriminator, 13-digit 
timestamp, and two-character base36 sequence produce a 129-character label. All 
components and identifiers are otherwise valid. A short run can pass while the 
sequence is one character; crossing base36 `z` to `10` adds the character that 
causes failure.
   
   Doris returns `[ANALYSIS_ERROR] Label format error` with the 
1..128-character regular expression. The sequence and discriminator added in 
#13111 are necessary for uniqueness and must remain protected; simply 
truncating the final label would reintroduce collisions.
   
   ### Expected behavior
   
   Generated labels fit the supported length while retaining stable 
per-source/job/subtask identity, per-call non-2PC uniqueness, and deterministic 
checkpoint labels. Existing short labels should retain their shape. Recovery 
must still abort transactions using the exact prefix persisted in older state; 
after migrating to a bounded prefix, repeated recovery before a new checkpoint 
must also clean transactions created with that new prefix.
   
   ### Reproduction outline
   
   Use a Doris database name consisting of 21 ASCII letters and table name of 
56 ASCII letters. Configure `sink.label-prefix = "jc"`, `sink.enable-2pc = 
false`, one writer, JSON line stream load, and a batch size of 2000. Run enough 
rows to produce more than 36 stream-load batches, with a normal 19-digit engine 
job id. Retain the failure log and compare a short-name control using the same 
data and settings. The observed failed test used 100,000 rows and 19 mixed 
fields; it did not establish a successful million-row result.
   
   ### Scope
   
   A connector-local bounded-prefix fix with regression coverage for long 
names, old-state aborts, repeated restore, and multi-table uniqueness. No 
configuration-default, public API, dependency, POM, or state-serialization 
changes. Shutdown behavior remains tracked by #10060.
   
   ### Willing to submit a PR
   
   Yes, I will implement and validate the focused fix.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to