morningman opened a new pull request, #24681:
URL: https://github.com/apache/doris/pull/24681
## Proposed changes
Fix 2 issues:
1. The replication num analysis will throw exception when there is no BE
alive when FE restart.
```
org.apache.doris.common.AnalysisException: errCode = 2, detailMessage =
errCode = 2, detailMessage = replication num should be less than the number of
available backends. replication num is 1, available backend num is 0
at
org.apache.doris.common.util.PropertyAnalyzer.analyzeReplicaAllocation(PropertyAnalyzer.java:1018)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.catalog.TableProperty.buildReplicaAllocation(TableProperty.java:483)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.catalog.TableProperty.read(TableProperty.java:529)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.catalog.OlapTable.readFields(OlapTable.java:1370)
~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.Table.read(Table.java:383)
~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.Database.readFields(Database.java:631)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.datasource.InternalCatalog.loadDb(InternalCatalog.java:3075)
~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.Env.loadDb(Env.java:1764)
~[doris-fe.jar:1.2-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_341]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_341]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_341]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_341]
at
org.apache.doris.persist.meta.MetaReader.read(MetaReader.java:116)
~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.catalog.Env.loadImage(Env.java:1701)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.master.Checkpoint.doCheckpoint(Checkpoint.java:130)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.master.Checkpoint.runAfterCatalogReady(Checkpoint.java:79)
~[doris-fe.jar:1.2-SNAPSHOT]
at
org.apache.doris.common.util.MasterDaemon.runOneCycle(MasterDaemon.java:58)
~[doris-fe.jar:1.2-SNAPSHOT]
at org.apache.doris.common.util.Daemon.run(Daemon.java:116)
~[doris-fe.jar:1.2-SNAPSHOT]
```
2. Paimon File Catalog meta issue
Fix #23366
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
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]