Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,19 @@ public final class DataNodeQueryMessages {
"The table '%s' does not contain a time column";
public static final String THE_OPERATOR_OF_TAG_PREDICATE_MUST_BE_FOR =
"The operator of tag predicate must be '=' for ";
public static final String THE_OPERATOR_OF_ATTRIBUTE_PREDICATE_MUST_BE_FOR =
"The operator of attribute predicate must be =, !=, <, <=, >, or >= for ";
public static final String
THE_RIGHT_HAND_VALUE_OF_ATTRIBUTE_PREDICATE_CANNOT_BE_NULL_WITH_COMPARISON_OPERATOR =
"The right hand value of attribute predicate cannot be null with comparison operator, "
+ "please use IS NULL or IS NOT NULL instead";
public static final String THE_RIGHT_HAND_VALUE_OF_ATTRIBUTE_PREDICATE_MUST_BE_A_STRING =
"The right hand value of attribute predicate must be a string: ";
public static final String THE_COLUMN_S_DOES_NOT_EXIST_OR_IS_NOT_A_TAG_COLUMN =
"The column '%s' does not exist or is not a tag column";
public static final String TOO_MANY_DEVICES_MATCHED_BY_ATTRIBUTE_FILTERS_IN_DELETION =
"Too many devices (%d) matched by attribute filters in deletion, limit is %d. "
+ "Please remove all attribute filters (%s) or add more attribute filters.";
public static final String ONLY_TIME_FILTERS_ARE_SUPPORTED_IN_LAST_QUERY =
"Only time filters are supported in LAST query";
public static final String VIEWS_CANNOT_BE_USED_IN_GROUP_BY_TAGS =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ private StorageEngineMessages() {}
public static final String INTERRUPTED_WAITING_THREAD_POOL_EXIT = "Interrupted while waiting {} thread pool to exit. ";
public static final String BUFFERED_ARRAY_SIZE_THRESHOLD = "BufferedArraySizeThreshold is {}";
public static final String CURRENT_SG_COST = "Current Sg cost is {}";
public static final String DIRECT_BUFFER_MEMORY_ALLOCATION_FAILED =
"Total allocated memory for direct buffer will be %d, which is greater than limit mem cost: %d";
public static final String FORCE_DEGRADE_TSFILE_RESOURCE = "Force degrade tsfile resource {}";
public static final String CANNOT_DEGRADE_TIME_INDEX_ALL_FILE_LEVEL = "Can't degrade time index any more because all time index are file level.";
public static final String DEGRADE_TSFILE_RESOURCE = "Degrade tsfile resource {}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,17 @@ public final class DataNodeQueryMessages {
"表 '%s' 不包含时间列";
public static final String THE_OPERATOR_OF_TAG_PREDICATE_MUST_BE_FOR =
"标签谓词的运算符必须为 '=',目标:";
public static final String THE_OPERATOR_OF_ATTRIBUTE_PREDICATE_MUST_BE_FOR =
"属性谓词的运算符必须为 =, !=, <, <=, > 或 >=,目标:";
public static final String
THE_RIGHT_HAND_VALUE_OF_ATTRIBUTE_PREDICATE_CANNOT_BE_NULL_WITH_COMPARISON_OPERATOR =
"属性谓词的右侧值不能在比较运算符中为 null,请改用 IS NULL 或 IS NOT NULL";
public static final String THE_RIGHT_HAND_VALUE_OF_ATTRIBUTE_PREDICATE_MUST_BE_A_STRING =
"属性谓词的右侧值必须为字符串:";
public static final String THE_COLUMN_S_DOES_NOT_EXIST_OR_IS_NOT_A_TAG_COLUMN =
"列 '%s' 不存在或不是标签列";
public static final String TOO_MANY_DEVICES_MATCHED_BY_ATTRIBUTE_FILTERS_IN_DELETION =
"删除语句中的属性过滤条件匹配了过多设备(%d),限制为 %d。请移除所有属性过滤条件(%s),或进一步增加属性过滤条件。";
public static final String ONLY_TIME_FILTERS_ARE_SUPPORTED_IN_LAST_QUERY =
"LAST 查询中仅支持时间过滤器";
public static final String VIEWS_CANNOT_BE_USED_IN_GROUP_BY_TAGS =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ private StorageEngineMessages() {}
public static final String INTERRUPTED_WAITING_THREAD_POOL_EXIT = "等待 {} 线程池退出时被中断。 ";
public static final String BUFFERED_ARRAY_SIZE_THRESHOLD = "BufferedArraySizeThreshold 为 {}";
public static final String CURRENT_SG_COST = "当前存储组内存开销为 {}";
public static final String DIRECT_BUFFER_MEMORY_ALLOCATION_FAILED =
"DirectBuffer 总分配内存将达到 %d,超过内存限制:%d";
public static final String FORCE_DEGRADE_TSFILE_RESOURCE = "强制降级 TsFile 资源 {}";
public static final String CANNOT_DEGRADE_TIME_INDEX_ALL_FILE_LEVEL = "无法继续降级时间索引,所有时间索引已为文件级别。";
public static final String DEGRADE_TSFILE_RESOURCE = "降级 TsFile 资源 {}";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.db.exception;

Check warning on line 19 in iotdb-core/datanode/src/main/java/org/apache/iotdb/db/exception/DirectBufferMemoryAllocationException.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

'package' should be separated from previous line.

See more on https://sonarcloud.io/project/issues?id=apache_iotdb&issues=AZ8cUctw7UYFBmGm6wRh&open=AZ8cUctw7UYFBmGm6wRh&pullRequest=18079

import org.apache.iotdb.db.i18n.StorageEngineMessages;

public class DirectBufferMemoryAllocationException extends DataRegionException {

private static final long serialVersionUID = -8268138833145785933L;

public DirectBufferMemoryAllocationException(
long allocatedDirectBufferMemory, long directBufferMemoryLimit) {
super(
String.format(
StorageEngineMessages.DIRECT_BUFFER_MEMORY_ALLOCATION_FAILED,
allocatedDirectBufferMemory,
directBufferMemoryLimit));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@
import org.apache.iotdb.db.storageengine.dataregion.compaction.settle.SettleRequestHandler;
import org.apache.iotdb.db.storageengine.dataregion.flush.CompressionRatio;
import org.apache.iotdb.db.storageengine.dataregion.modification.DeletionPredicate;
import org.apache.iotdb.db.storageengine.dataregion.modification.IDPredicate;
import org.apache.iotdb.db.storageengine.dataregion.modification.TableDeletionEntry;
import org.apache.iotdb.db.storageengine.dataregion.modification.TagPredicate;
import org.apache.iotdb.db.storageengine.dataregion.tsfile.TsFileManager;
import org.apache.iotdb.db.storageengine.dataregion.tsfile.TsFileResource;
import org.apache.iotdb.db.storageengine.rescon.quotas.DataNodeSpaceQuotaManager;
Expand Down Expand Up @@ -2148,7 +2148,7 @@ public TSStatus deleteColumnData(final TDeleteColumnDataReq req) {
new TableDeletionEntry(
new DeletionPredicate(
req.getTableName(),
new IDPredicate.NOP(),
new TagPredicate.NOP(),
Collections.singletonList(req.getColumnName())),
new TimeRange(Long.MIN_VALUE, Long.MAX_VALUE)),
// the request is only sent to associated region
Expand Down
Loading
Loading