提交 639cf975 编写于 作者: L lta

fix a bug of deleting sg

上级 d688c1b5
......@@ -149,7 +149,7 @@ public class IoTDBConfigDynamicAdapter implements IDynamicAdapter {
CONFIG.setMaxMemtableNumber(maxMemTableNum);
CONFIG.setTsFileSizeThreshold(tsFileSizeThreshold);
CONFIG.setMemtableSizeThreshold(memtableSizeInByte);
if (LOGGER.isDebugEnabled()) {
if (LOGGER.isDebugEnabled() && initialized) {
LOGGER.debug(
"After adjusting, max memTable num is {}, tsFile threshold is {}, memtableSize is {}, memTableSizeFloorThreshold is {}, storage group = {}, total timeseries = {}, the max number of timeseries among storage groups = {}",
maxMemTableNum, tsFileSizeThreshold, memtableSizeInByte, memTableSizeFloorThreshold,
......
......@@ -25,7 +25,9 @@ public class ConfigAdjusterException extends ProcessException {
private static final long serialVersionUID = 3502288856999147687L;
public ConfigAdjusterException(String action) {
super(String.format("IoTDB system load is too large to %s", action));
super(String.format(
"IoTDB system load is too large to %s, please increase memory or disable the enable_parameter_adapter in iotdb-engine.properties",
action));
errorCode = TSStatusCode.CONFIG_ADJUSTER.getStatusCode();
}
}
......@@ -647,7 +647,8 @@ public class MManager {
mNodeCache.clear();
IoTDBConfigDynamicAdapter.getInstance().addOrDeleteStorageGroup(-1);
mgraph.deleteStorageGroup(delStorageGroup);
seriesNumberInStorageGroups.remove(delStorageGroup);
IoTDBConfigDynamicAdapter.getInstance()
.addOrDeleteTimeSeries(seriesNumberInStorageGroups.remove(delStorageGroup) * (-1));
ActiveTimeSeriesCounter.getInstance().delete(delStorageGroup);
} catch (PathException e) {
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册