AshinGau opened a new pull request, #12011:
URL: https://github.com/apache/doris/pull/12011
# Proposed changes
## Problem summary
FE failed when updating from v1.1.2 to master:
```
java.io.IOException: java.lang.reflect.InvocationTargetException
at org.apache.doris.persist.meta.MetaReader.read(MetaReader.java:97)
at org.apache.doris.catalog.Env.loadImage(Env.java:1615)
at org.apache.doris.catalog.Env.initialize(Env.java:830)
at org.apache.doris.PaloFe.start(PaloFe.java:132)
at org.apache.doris.PaloFe.main(PaloFe.java:67)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.doris.persist.meta.MetaReader.read(MetaReader.java:94)
... 4 more
Caused by: java.io.IOException: errCode = 2, detailMessage = Catalog
privilege can not contains node or resource privileges: Select_priv Load_priv
Alter_priv Create_priv Usage_priv
at
org.apache.doris.mysql.privilege.UserPrivTable.degradeToInternalCatalogPriv(UserPrivTable.java:200)
at
org.apache.doris.mysql.privilege.PaloAuth.readFields(PaloAuth.java:1829)
at org.apache.doris.catalog.Env.loadPaloAuth(Env.java:1823)
... 9 more
```
This only happened in loading meta image from old version:
GlobalPrivEntry of the previous version does not check
'privs.containsResourcePriv()',
so GlobalPrivEntry maybe contians USAGE_PRIV which is wrong operation and
useless priv.
In order to be compatible with this scenario, we should delete USAGE_PRIV.
## Checklist(Required)
1. Does it affect the original behavior:
- [ ] Yes
- [x] No
- [ ] I don't know
2. Has unit tests been added:
- [ ] Yes
- [x] No
- [ ] No Need
3. Has document been added or modified:
- [ ] Yes
- [x] No
- [ ] No Need
4. Does it need to update dependencies:
- [ ] Yes
- [x] No
5. Are there any changes that cannot be rolled back:
- [ ] Yes (If Yes, please explain WHY)
- [x] No
## 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]