Skip to content

branch-4.0:[test](fe) Isolate cloud frontend service test- #65577 #65577 - #66381

Merged
morningman merged 3 commits into
apache:branch-4.0from
0AyanamiRei:pick-65577-branch-4.0
Aug 4, 2026
Merged

branch-4.0:[test](fe) Isolate cloud frontend service test- #65577 #65577#66381
morningman merged 3 commits into
apache:branch-4.0from
0AyanamiRei:pick-65577-branch-4.0

Conversation

@0AyanamiRei

@0AyanamiRei 0AyanamiRei commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

pick from #65577

Issue Number: None

Related PR: None

Problem Summary: FrontendServiceImplTest starts a non-cloud mocked FE and BE. testGetTabletReplicaInfosNullJobReturnsCancelledWithoutNpe temporarily enabled cloud mode through Config.cloud_unique_id, allowing the shared background heartbeat thread to take a cloud-only path and mark the mock BE dead. Move this cloud-specific test into a dedicated class without the mocked FE/BE fixture, while preserving the same getTabletReplicaInfos cancellation assertions.

None

- Test: Unit Test
    - ./run-fe-ut.sh --run org.apache.doris.service.FrontendServiceImplCloudTest
    - ./run-fe-ut.sh --run org.apache.doris.service.FrontendServiceImplTest
- Behavior changed: No
- Does this need documentation: No

(cherry picked from commit 666eec9)
@0AyanamiRei
0AyanamiRei requested a review from morningman as a code owner August 3, 2026 09:26
@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@0AyanamiRei 0AyanamiRei changed the title branch-4.0: [test](fe) Isolate cloud frontend service test branch-4.0:[test](fe) Isolate cloud frontend service test- #65577 #65577 Aug 3, 2026
@0AyanamiRei

Copy link
Copy Markdown
Contributor Author

run buildall

morningman
morningman previously approved these changes Aug 3, 2026
@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Aug 3, 2026
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

### What problem does this PR solve?

Issue Number: None

Related PR: apache#65577

Problem Summary: The branch-4.0 backport moves the cloud-specific getTabletReplicaInfos test out of FrontendServiceImplTest so it cannot disturb the shared mock backend. Unlike master, branch-4.0 initializes ThriftServerEventProcessor connection context only when a Thrift server is constructed. The standalone test therefore failed before reaching the removed warm-up job path. Mock the absent connection context within the test so it preserves the CANCELLED response coverage without changing production behavior.

### Release note

None

### Check List (For Author)

- Test: Unit Test
    - ./run-fe-ut.sh --run org.apache.doris.service.FrontendServiceImplCloudTest,org.apache.doris.service.FrontendServiceImplTest
- Behavior changed: No
- Does this need documentation: No
@0AyanamiRei

Copy link
Copy Markdown
Contributor Author

run buildall

@github-actions github-actions Bot removed the approved Indicates a PR has been approved by one committer. label Aug 4, 2026
@0AyanamiRei

Copy link
Copy Markdown
Contributor Author

run buildall

@morningman
morningman merged commit 7243779 into apache:branch-4.0 Aug 4, 2026
25 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants