CRZbulabula commented on code in PR #16432:
URL: https://github.com/apache/iotdb/pull/16432#discussion_r2362337293
##########
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/user/BasicUserManager.java:
##########
@@ -102,6 +106,20 @@ private void initAdmin() throws AuthException {
LOGGER.info("Admin initialized");
}
+ private void initUserId() {
+ try {
+ long maxUserId = this.accessor.loadUserId();
+ if (maxUserId == -1 || maxUserId < 10000) {
+ nextUserId = 10000;
+ } else {
+ nextUserId = maxUserId;
+ }
+ } catch (IOException e) {
+ LOGGER.warn("meet error in load max userId.");
Review Comment:
```suggestion
LOGGER.warn("meet error in load max userId.", e);
```
--
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]