Skip to content

Commit

Permalink
[fix](cloud) Fix auth compatibility logic run errer mode (apache#38136)
Browse files Browse the repository at this point in the history
```
Caused by: java.lang.IllegalStateException: 11
	at com.google.common.base.Preconditions.checkState(Preconditions.java:512) ~[guava-32.1.2-jre.jar:?]
	at org.apache.doris.mysql.privilege.PrivBitSet.get(PrivBitSet.java:63) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.mysql.privilege.PrivBitSet.containsPrivs(PrivBitSet.java:116) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.mysql.privilege.Role.lambda$compatibilityErrEnum$4(Role.java:1150) ~[doris-fe.jar:1.2-SNAPSHOT]
	at java.util.LinkedHashMap$LinkedValues.forEach(LinkedHashMap.java:647) ~[?:?]
	at org.apache.doris.mysql.privilege.Role.compatibilityErrEnum(Role.java:1149) ~[doris-fe.jar:1.2-SNAPSHOT]
	at org.apache.doris.mysql.privilege.Role.gsonPostProcess(Role.java:1100) ~[doris-fe.jar:1.2-SNAPSHOT]
```

## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
  • Loading branch information
deardeng authored and gavinchou committed Jul 21, 2024
1 parent d490325 commit 9eb8ac2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ private void compatibilityErrEnum() {
privBitSet.set(Privilege.SHOW_VIEW_PRIV.getIdx());
}
});
} else {
} else if (Config.isCloudMode()) {
// cloud mode
// For versions greater than VERSION_123, the cloud requires compatibility logic.

Expand Down

0 comments on commit 9eb8ac2

Please sign in to comment.