Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MINOR][0.7] Avoid returning null in defaultUserApps when quota file …
…does't config user (apache#822) ### What changes were proposed in this pull request? `map.getOrDefault()` => `map.computeIfAbsent()` ### Why are the changes needed? If do not define the user and app num in the quota configuration file, it will appear that the `defaultUserApps` does not have the corresponding app number for this user, because we did not include the `quotaAppNum` in the `defaultUserApps`. **before** : The log from coordinator is `[ERROR] 2023-03-28 19:24:11,18 Grpc-260 AccessAppQuotaChecker check - Denied by AccessAppQuotaChecker => User: xxxx, current app num is: 3, default app num is: null.` **after** : The log from coordinator is `[ERROR] 2023-03-31 14:32:21,228 Grpc-240 AccessAppQuotaChecker check - Denied by AccessAppQuotaChecker => User: xxxx, current app num is: 3, default app num is: 3.` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Origin uts.
- Loading branch information