HeimingZ opened a new pull request #4083: URL: https://github.com/apache/iotdb/pull/4083
Recently, i see following error message in the IoTDBCompleteIT's log:  To resolve this error, there are two places to modify: Firstly, It is dangerous that IoTDBCompleteIT uses HashVirtualPartitioner's setStorageGroupNum method to set the number of virtual storage groups, because VirtualStorageGroupManager initializes StorageGroupProcessor array when it's constructed and the call of setStorageGroupNum method will cause sg num conflicts between HashVirtualPartitioner and VirtualStorageGroupManager, then throw ArrayIndexOutOfBoundsException. So, i remove the setStorageGroupNum method of HashVirtualPartitioner. Secondly, the restart of StorageEngine in EnvironmentUtils.restartDaemon() is confusing because the start method only start timed service except the initialization of storage groups. So, i move the initialization of storage groups in StorageEngine from constructor to start method. -- 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]
