Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #49569

@github-actions github-actions bot requested a review from yiguolei as a code owner March 28, 2025 01:59
@hello-stephen
Copy link
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?

@dataroaring dataroaring reopened this Mar 28, 2025
@hello-stephen
Copy link
Contributor

run buildall

### What problem does this PR solve?

Problem Summary:

```
2025-03-27 11:35:33,694 ERROR (stateListener|95) [EditLog.loadJournal():1231] Operation Type 142
org.apache.doris.common.DdlException: errCode = 2, detailMessage = Failed to find enough backend for ssd storage medium. When setting dynamic_partition.hot_partition_num>0, the hot partitions will store in ssd. Please check the replication num, replication tag and storage medium.
	at org.apache.doris.common.util.DynamicPartitionUtil.checkReplicaAllocation(DynamicPartitionUtil.java:254) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.common.util.DynamicPartitionUtil.checkDynamicPartition(DynamicPartitionUtil.java:190) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.catalog.ColocateTableIndex.replayModifyReplicaAlloc(ColocateTableIndex.java:914) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.catalog.ColocateTableIndex.replayModifyReplicaAlloc(ColocateTableIndex.java:655) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.catalog.Env.replayJournal(Env.java:2759) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.catalog.Env$JournalObserver.runOneCycle(Env.java:116) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.common.util.Daemon.run(Daemon.java:116) [doris-fe.jar:1.2-SNAPSHOT]
```

We should not throw any exception when checking the properties in replay
logic.
This PR skip the checking logic when replay.
But I am not sure how to reproduce this situation, l can just guess that
after user modify the colocation property
of a table, but some properties of backends are changed, then this issue
may happen.
This PR has been tested by user and it can solve the problem.
@yiguolei yiguolei force-pushed the auto-pick-49569-branch-2.1 branch from 7586a95 to 288a18f Compare March 29, 2025 12:27
@yiguolei
Copy link
Contributor

run buildall

@yiguolei yiguolei merged commit 2b08429 into branch-2.1 Apr 3, 2025
21 of 24 checks passed
@github-actions github-actions bot deleted the auto-pick-49569-branch-2.1 branch April 3, 2025 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants