AshinGau opened a new pull request, #12016:
URL: https://github.com/apache/doris/pull/12016

   # 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
   ```
   USAGE_PRIV is save in userPrivTable, and is no need to degrade to 
catalogPrivTable.
   when replaying USAGE_PRIV in Editlog, the PrivInfo will return right 
`ResourcePattern` and create the right `GlobalPriveEntry`.
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: 
       - [ ] Yes
       - [ ] No
       - [ ] I don't know
   2. Has unit tests been added:
       - [ ] Yes
       - [ ] No
       - [ ] No Need
   3. Has document been added or modified:
       - [ ] Yes
       - [ ] No
       - [ ] No Need
   4. Does it need to update dependencies:
       - [ ] Yes
       - [ ] No
   5. Are there any changes that cannot be rolled back:
       - [ ] Yes (If Yes, please explain WHY)
       - [ ] 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]

Reply via email to