liaoxin01 opened a new pull request, #71394:
URL: https://github.com/apache/doris/pull/71394

   ### Background
   
   In cloud mode, COPY INTO loads files from a stage. The FE submits the job, 
Meta Service tracks the files, and the recycler cleans up internal stage 
objects.
   
   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: None
   PR Type: Enhancement
   
   Problem Summary: Retire the unmaintained COPY INTO feature, including stage 
management, file uploads, job history, and automatic cleanup.
   
   ### Details
   
   - **Change map:** About 8k changed lines cover FE and Cloud code. Another 
11.3k cover tests and fixtures, including a 5k-line file-listing fixture.
   - **Before and after:** Doris rejects `COPY INTO`, `SHOW COPY`, stage DDL 
and stage grants. It removes `/copy/query`, `/copy/upload`, and the 
implementations of eight Meta Service RPCs.
   - **Configs and defaults:** Remove COPY execution, stage management, history 
retention, and cleanup settings.
   - **Impact on existing users:** Stop submitting COPY jobs and drain them 
before upgrading the first FE or Meta Service. Arrange cleanup for remaining 
stage files.
   - **Behavior change:** FE skips historical COPY entries when reading images 
and journals. Other load jobs continue to replay.
   
   ### Testing
   
   Local FE and Cloud builds, 29 FE tests and five Cloud tests passed. Coverage 
includes mixed-image recovery, journal replay, retired RPCs, and instance 
recycling. The SQL regression passed on the packaged FE with a mock BE. An 
authenticated PUT to `/copy/upload` returned HTTP 405.
   
   ### Release note
   
   COPY INTO and stages have been removed. Drain COPY jobs before upgrading. 
Doris no longer recycles stage files.
   
   ### Check List (For Author)
   
   - Behavior changed: Yes (see Details)
   - Does this need documentation: Yes. Update the SQL and HTTP references and 
upgrade notes in doris-website.
   - Pre-submission status: Ready
   
   ### AI Disclosure
   
   - Tool: Codex (GPT-6)
   - Generated: Implementation, tests, and PR description.
   - Human review: The author defined the removal scope and chose to drain COPY 
before upgrading.
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to