gavinchou opened a new pull request, #63520:
URL: https://github.com/apache/doris/pull/63520
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: In cloud mode, schema change on MOW tables can fail when
registering a STOP_TOKEN compaction job. STOP_TOKEN is a lock marker and does
not compact rowsets, but the meta-service previously applied the stale tablet
cache check to all compaction types. If another BE advanced the tablet
compaction counters while the schema change BE still held older cached
counters, STOP_TOKEN registration could be rejected as STALE_TABLET_CACHE and
the ALTER task failed. This change skips the stale tablet cache check for
STOP_TOKEN while preserving the check for real compaction jobs.
### Release note
Fix cloud mode schema change failures caused by STOP_TOKEN registration
being rejected by stale tablet cache checks.
### Check List (For Author)
- Test: Unit Test
- Added `StopTokenSkipsStaleTabletCacheCheck` in
`cloud/test/meta_service_job_test.cpp`; not run in this session.
- Behavior changed: Yes. STOP_TOKEN compaction jobs no longer fail stale
tablet cache validation because they do not read or compact rowsets.
- Does this need documentation: No
--
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]