Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
c135133
partial
Caideyipi Nov 6, 2025
b8bfec9
fix
Caideyipi Nov 6, 2025
9dd36ee
part
Caideyipi Nov 6, 2025
ffd1760
createOrUpdate
Caideyipi Nov 6, 2025
3f3af1c
partial
Caideyipi Nov 6, 2025
7a74ed6
fix
Caideyipi Nov 6, 2025
1c546b2
partial
Caideyipi Nov 6, 2025
39a3455
part
Caideyipi Nov 6, 2025
6c78ea7
may_main_final
Caideyipi Nov 6, 2025
b7d4960
bug-fix
Caideyipi Nov 6, 2025
035746a
fix
Caideyipi Nov 6, 2025
391429b
[To force_ci/object_type] Support insert object by sql & add IT (#16683)
HTHou Nov 6, 2025
af2ce13
Update StatementAnalyzer.java
Caideyipi Nov 7, 2025
1542fa4
fix
Caideyipi Nov 7, 2025
7e79670
removal
Caideyipi Nov 7, 2025
38e5b83
object
Caideyipi Nov 7, 2025
fddb70a
fix-add-test
Caideyipi Nov 10, 2025
5c4f79d
Merge branch 'force_ci/object_type' of https://github.com/apache/iotd…
Caideyipi Nov 10, 2025
3cb4adc
bug-fix
Caideyipi Nov 10, 2025
ec441b0
spotless
Caideyipi Nov 10, 2025
c8dc111
change-back
Caideyipi Nov 10, 2025
bd5a8c5
fix
Caideyipi Nov 10, 2025
0fc8e17
Fix wrong push limit down to AggTableScanNode (#16696)
JackieTien97 Nov 4, 2025
4dbb3c6
More robust IoTDBRegionReconstructForIoTV1IT (#16697)
CRZbulabula Nov 4, 2025
1bb15b2
Implemented the alter encoding compression function for tree model (#…
Caideyipi Nov 6, 2025
0971b8f
Support SSL-related parameters and interactive password input in expo…
LJW21-02 Nov 7, 2025
0e15626
implement the intersect (distinct | all ) for table model (#16700)
alpass163 Nov 7, 2025
96d4eae
Fix the error message of ConfigExecution (#16680)
shuwenwei Nov 7, 2025
5d9baf5
Fixed the null error message of fetch schema failed when the regions …
Caideyipi Nov 7, 2025
d0de0a6
Pipe: Fixed the NPE of commit interval (#16714)
Caideyipi Nov 10, 2025
ba7a7a6
Follow fix for encoding & compressor (#16712)
Caideyipi Nov 10, 2025
0657671
Avoid unnecessary ssl error log caused by jdk bug (#16709)
HTHou Nov 10, 2025
d7bda04
change-name
Caideyipi Nov 10, 2025
3ba82cb
fix
Caideyipi Nov 10, 2025
ed50ed2
fix
Caideyipi Nov 10, 2025
4412336
fix
Caideyipi Nov 10, 2025
97e48ac
partial_apply
Caideyipi Nov 11, 2025
7ed76c0
fix
Caideyipi Nov 11, 2025
36a6a9d
fix
Caideyipi Nov 11, 2025
93f8c00
fix
Caideyipi Nov 11, 2025
a8b4a66
fix
Caideyipi Nov 11, 2025
e5aba1d
fix
Caideyipi Nov 11, 2025
cbe5765
Active Load: Ignore java.io.UncheckedIOException exceptions thrown du…
luoluoyuyu Nov 10, 2025
3a8d6d5
Delete the tsfile and related attachments When only one table and dat…
zerolbsony Nov 10, 2025
602d465
Fixed the potential non-consistency caused by initialize of DataNodeT…
Caideyipi Nov 10, 2025
ce054e8
Optimize the configuration logic of dn_thrift_max_frame_size (#16724)
HTHou Nov 10, 2025
6f47cca
Changed the SQL of AlterEncodingCompressor statement & banned the "ro…
Caideyipi Nov 10, 2025
26b5ae3
chore!: Bind real config address for Thrift and Raft services (#16717)
CritasWang Nov 11, 2025
a3807d2
Make ErrMsg more readable when the predicate has too many conjunction…
Wei-hao-Li Nov 11, 2025
d24cdda
Pipe: Fix unhandled timeout exceptions in Thrift Client (#16727)
luoluoyuyu Nov 11, 2025
15f39d4
Fixed the procedure has_more_state bug & Fixed the IT for encoding & …
Caideyipi Nov 11, 2025
8a3dbcb
Optimized the lock for encoding & compressor's invalidate cache (#16733)
Caideyipi Nov 11, 2025
25d5ba5
Pipe: support path exclusion under tree model (#16632)
VGalaxies Nov 12, 2025
f19824d
Change the privilege of showVersionStatement #16736
shuwenwei Nov 12, 2025
ff6f7a2
[AINode] Package AINode via PyInstaller (#16707)
CRZbulabula Nov 12, 2025
4e1df94
Support the JDBC client to prevent SQL injection (#16734)
Young-Leo Nov 12, 2025
a1fe410
Fix that a deletion test may fail due to inconsistency caused by lead…
jt2594838 Nov 12, 2025
d712ffc
Fixed the NPE caused by concurrent "check for createTimeSeries" and d…
Caideyipi Nov 12, 2025
92878f4
Pipe: Optimized the default behavior in meta sync for retries to wait…
Caideyipi Nov 12, 2025
197c4f1
Adjust the exception message cause by the WHERE clause, which uses a …
zerolbsony Nov 13, 2025
401c5e9
Pipe: Trimmed some of the pipe logs (#16747)
Caideyipi Nov 13, 2025
43c0320
Active Load: Fixes errors caused by Load copying resource files. (#16…
luoluoyuyu Nov 14, 2025
8fe93f2
Pipe: Modify the Pipe configuration item log name to be consistent wi…
luoluoyuyu Nov 14, 2025
b396766
feat: encode load attributes in active load directories (#16722)
luoluoyuyu Nov 14, 2025
3a6c3bb
[AINode] Enable AINode start as background (-d) (#16762)
CRZbulabula Nov 15, 2025
71976f5
fix (#16702)
Caideyipi Nov 17, 2025
104bcf1
reduce error log when compaction service is stopped & fix bugs (#16756)
shuwenwei Nov 17, 2025
dfda7a0
[AINode] Update AINodeClient for DataNode to borrow (#16647)
Alchuang22-dev Nov 17, 2025
08c0eec
[AINode] Fix bug that AINode cannot compile in Windows (#16767)
CRZbulabula Nov 17, 2025
2078b4f
fix (#16773)
Caideyipi Nov 18, 2025
c110ab1
Load: Fixed the bug that mods is not deleted in load tsFile when ther…
Caideyipi Nov 18, 2025
81b6d59
[AINode] Fix bug of sundial and forecast udf (#16768)
yunbow30944 Nov 19, 2025
842c4a5
Fixed the bugs related to device auto-create alignment ignorance (#16…
Caideyipi Nov 20, 2025
fe49c5e
Load: Active Load supports ModV2 (#16769)
luoluoyuyu Nov 20, 2025
769f103
Load: Fixed the issue of TSFile parent directory being null and TSFil…
luoluoyuyu Nov 20, 2025
e72ee9a
Load: Fixed parameter passing error in MoveFile function (#16748)
luoluoyuyu Nov 20, 2025
40355e3
Refine CN consensus layer API for procedure robustness (#16303)
Pengzna Nov 20, 2025
b7e1c02
Pipe: improved the memory calculation for tablets (#16739)
Caideyipi Nov 21, 2025
50dd714
Fixed the bug related to "Fixed the bugs related to device auto-creat…
Caideyipi Nov 21, 2025
9488a7e
Load: Remove the getParentFile and exists checks from Load New File (…
luoluoyuyu Nov 24, 2025
ccf4346
Optimized the error message when the column is not tag/attribute in d…
Caideyipi Nov 24, 2025
e54b8a9
Avoid connection reset error log printed (#16797)
HTHou Nov 25, 2025
60e8c63
Fix that settle compaction may lgnore some newly incoming deletions (…
jt2594838 Nov 25, 2025
4582316
Fix slowQueryThreshold & optimize encodeBatch (#16765)
shuwenwei Nov 25, 2025
e34e0fc
Pipe: Adjusted the waiting time of temporary unavailable exceptions (…
Caideyipi Nov 25, 2025
a1b2287
[AINode] Delete poetry.lock for easier maintain different operating s…
CRZbulabula Nov 25, 2025
1b2d3ff
Bump ratis to apache 3.2.1 (#16801)
jt2594838 Nov 26, 2025
7a62fad
Add IT for session and jdbc query
JackieTien97 Nov 26, 2025
db058ab
Pipe: Fixed the check for no permission 2 (#16804)
Caideyipi Nov 26, 2025
e55b423
Update ratis-thirdparty-misc version to 1.0.10 (#16807)
HTHou Nov 26, 2025
cee173b
Fix window partiton across two TsBlock bugs (#16809)
Sh-Zh-7 Nov 26, 2025
d961572
may_fix (#16814)
Caideyipi Nov 26, 2025
32e1642
Fixed the bug of 305 error for unsupported table opreations #16816
Caideyipi Nov 26, 2025
426a964
Fixed the calculation error of schema cache (#16818)
Caideyipi Nov 27, 2025
a280635
Fixed the concurrency issue of region migrate and load (#16796)
Caideyipi Nov 27, 2025
ec7d627
Add 'show available urls' (#16441)
shuwenwei Nov 27, 2025
d33169d
Added back the mis-deleted "()" in last cache (#16824)
Caideyipi Nov 27, 2025
78fcd84
Reduced the auth log when paths are too many (#16825)
Caideyipi Nov 27, 2025
b6d21c6
perf: Optimize wide table write performance (#16699)
luoluoyuyu Nov 28, 2025
8c75110
implement the except (distinct | all ) for table model #16760
alpass163 Nov 28, 2025
53c730c
added support for Blob objects to the length() function, allowing for…
alpass163 Nov 28, 2025
a113051
implement intersect and except related optimization rule: MergeInters…
alpass163 Nov 28, 2025
7249a52
Fix compile error in DataRegion
JackieTien97 Dec 1, 2025
173263e
fix
Caideyipi Dec 2, 2025
57efae2
remove-check
Caideyipi Dec 2, 2025
1638240
check_write
Caideyipi Dec 2, 2025
6c86380
defense
Caideyipi Dec 2, 2025
ffe1fb1
Merge branch 'force_ci/object_type' of https://github.com/apache/iotd…
Caideyipi Dec 2, 2025
4f23e5e
unwebbed
Caideyipi Dec 2, 2025
f34ae76
clean
Caideyipi Dec 2, 2025
bab9a80
c
Caideyipi Dec 2, 2025
c82dfcb
remove-useless-check
Caideyipi Dec 2, 2025
a6cc072
may-comp
Caideyipi Dec 2, 2025
f6027d0
qp
Caideyipi Dec 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/cluster-it-1c1d1a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: cluster-log-ainode-${{ matrix.os }}
path: integration-test/target/ainode-logs
path: integration-test/target/*-logs
retention-days: 30
14 changes: 7 additions & 7 deletions dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
"com.nimbusds:nimbus-jose-jwt",
"com.nimbusds:oauth2-oidc-sdk",
"com.sun.istack:istack-commons-runtime",
"com.timecho.ratis:ratis-client",
"com.timecho.ratis:ratis-common",
"com.timecho.ratis:ratis-grpc",
"com.timecho.ratis:ratis-metrics-api",
"com.timecho.ratis:ratis-proto",
"com.timecho.ratis:ratis-server",
"com.timecho.ratis:ratis-server-api",
"org.apache.ratis:ratis-client",
"org.apache.ratis:ratis-common",
"org.apache.ratis:ratis-grpc",
"org.apache.ratis:ratis-metrics-api",
"org.apache.ratis:ratis-proto",
"org.apache.ratis:ratis-server",
"org.apache.ratis:ratis-server-api",
"com.zaxxer:HikariCP",
"commons-cli:commons-cli",
"commons-codec:commons-codec",
Expand Down
2 changes: 1 addition & 1 deletion integration-test/src/assembly/mpp-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</fileSet>
<fileSet>
<outputDirectory>lib</outputDirectory>
<directory>${project.basedir}/../iotdb-core/ainode/dist/</directory>
<directory>${project.basedir}/../iotdb-core/ainode/dist/ainode/</directory>
<fileMode>0755</fileMode>
</fileSet>
</fileSets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ public CommonConfig setSubscriptionEnabled(boolean subscriptionEnabled) {
}

@Override
public CommonConfig setDefaultStorageGroupLevel(int defaultStorageGroupLevel) {
setProperty("default_database_level", String.valueOf(defaultStorageGroupLevel));
public CommonConfig setDefaultDatabaseLevel(int defaultDatabaseLevel) {
setProperty("default_database_level", String.valueOf(defaultDatabaseLevel));
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,9 @@ public CommonConfig setSubscriptionEnabled(boolean subscriptionEnabled) {
}

@Override
public CommonConfig setDefaultStorageGroupLevel(int defaultStorageGroupLevel) {
dnConfig.setDefaultStorageGroupLevel(defaultStorageGroupLevel);
cnConfig.setDefaultStorageGroupLevel(defaultStorageGroupLevel);
public CommonConfig setDefaultDatabaseLevel(int defaultDatabaseLevel) {
dnConfig.setDefaultDatabaseLevel(defaultDatabaseLevel);
cnConfig.setDefaultDatabaseLevel(defaultDatabaseLevel);
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
import org.apache.tsfile.external.commons.io.file.PathUtils;
import org.slf4j.Logger;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.LinkOption;
Expand All @@ -37,6 +37,7 @@
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.stream.Stream;

import static org.apache.iotdb.it.env.cluster.ClusterConstant.AI_NODE_NAME;
Expand All @@ -62,15 +63,19 @@ public class AINodeWrapper extends AbstractNodeWrapper {
public static final String CACHE_BUILT_IN_MODEL_PATH = "/data/ainode/models/weights";

private void replaceAttribute(String[] keys, String[] values, String filePath) {
try (BufferedWriter writer = new BufferedWriter(new FileWriter(filePath, true))) {
for (int i = 0; i < keys.length; i++) {
String line = keys[i] + "=" + values[i];
writer.newLine();
writer.write(line);
}
Properties props = new Properties();
try (FileInputStream in = new FileInputStream(filePath)) {
props.load(in);
} catch (IOException e) {
logger.warn("Failed to load existing AINode properties from {}, because: ", filePath, e);
}
for (int i = 0; i < keys.length; i++) {
props.setProperty(keys[i], values[i]);
}
try (FileOutputStream out = new FileOutputStream(filePath)) {
props.store(out, "Updated by AINode integration-test env");
} catch (IOException e) {
logger.error(
"Failed to set attribute for AINode in file: {} because {}", filePath, e.getMessage());
logger.error("Failed to save properties to {}, because:", filePath, e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,12 @@ public static String recordToInsert(TSRecord record) {
}

public static String getTestTsFilePath(
String logicalStorageGroupName,
long VirtualStorageGroupId,
String logicalDatabaseName,
long VirtualDatabaseId,
long TimePartitionId,
long tsFileVersion) {
String filePath =
String.format(
TEST_TSFILE_PATH, logicalStorageGroupName, VirtualStorageGroupId, TimePartitionId);
String.format(TEST_TSFILE_PATH, logicalDatabaseName, VirtualDatabaseId, TimePartitionId);
String fileName =
System.currentTimeMillis()
+ FilePathUtils.FILE_NAME_SEPARATOR
Expand All @@ -184,11 +183,8 @@ public static String getTestTsFilePath(
}

public static String getTestTsFileDir(
String logicalStorageGroupName, long VirtualStorageGroupId, long TimePartitionId) {
String logicalDatabaseName, long VirtualDatabaseId, long TimePartitionId) {
return String.format(
TestConstant.TEST_TSFILE_PATH,
logicalStorageGroupName,
VirtualStorageGroupId,
TimePartitionId);
TestConstant.TEST_TSFILE_PATH, logicalDatabaseName, VirtualDatabaseId, TimePartitionId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ CommonConfig setSubscriptionPrefetchTsFileBatchMaxSizeInBytes(

CommonConfig setSubscriptionEnabled(boolean subscriptionEnabled);

default CommonConfig setDefaultStorageGroupLevel(int defaultStorageGroupLevel) {
default CommonConfig setDefaultDatabaseLevel(int defaultDatabaseLevel) {
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,12 @@ public Ref getRef(int columnIndex) {
}

@Override
public Blob getBlob(int columnIndex) {
throw new UnsupportedOperationException();
public Blob getBlob(int columnIndex) throws SQLException {
RequestDelegate<Blob> delegate = createLocalRequestDelegate();
for (ResultSet rs : resultSets) {
delegate.addRequest(() -> rs.getBlob(columnIndex));
}
return delegate.requestAllAndCompare();
}

@Override
Expand All @@ -806,8 +810,12 @@ public Ref getRef(String columnLabel) {
}

@Override
public Blob getBlob(String columnLabel) {
throw new UnsupportedOperationException();
public Blob getBlob(String columnLabel) throws SQLException {
RequestDelegate<Blob> delegate = createLocalRequestDelegate();
for (ResultSet rs : resultSets) {
delegate.addRequest(() -> rs.getBlob(columnLabel));
}
return delegate.requestAllAndCompare();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,33 +90,6 @@ private static void prepareDataForTableModel() throws SQLException {
}
}

// @Test
public void concurrentCPUCallInferenceTest() throws SQLException, InterruptedException {
concurrentCPUCallInferenceTest("timer_xl");
concurrentCPUCallInferenceTest("sundial");
}

private void concurrentCPUCallInferenceTest(String modelId)
throws SQLException, InterruptedException {
try (Connection connection = EnvFactory.getEnv().getConnection(BaseEnv.TREE_SQL_DIALECT);
Statement statement = connection.createStatement()) {
final int threadCnt = 4;
final int loop = 10;
final int predictLength = 96;
statement.execute(String.format("LOAD MODEL %s TO DEVICES 'cpu'", modelId));
checkModelOnSpecifiedDevice(statement, modelId, "cpu");
concurrentInference(
statement,
String.format(
"CALL INFERENCE(%s, 'SELECT s FROM root.AI', predict_length=%d)",
modelId, predictLength),
threadCnt,
loop,
predictLength);
statement.execute(String.format("UNLOAD MODEL %s FROM DEVICES 'cpu'", modelId));
}
}

// @Test
public void concurrentGPUCallInferenceTest() throws SQLException, InterruptedException {
concurrentGPUCallInferenceTest("timer_xl");
Expand Down Expand Up @@ -150,39 +123,6 @@ private void concurrentGPUCallInferenceTest(String modelId)
String forecastUDTFSql =
"SELECT forecast(s, 'MODEL_ID'='%s', 'PREDICT_LENGTH'='%d') FROM root.AI";

@Test
public void concurrentCPUForecastTest() throws SQLException, InterruptedException {
concurrentCPUForecastTest("timer_xl", forecastUDTFSql);
concurrentCPUForecastTest("sundial", forecastUDTFSql);
concurrentCPUForecastTest("timer_xl", forecastTableFunctionSql);
concurrentCPUForecastTest("sundial", forecastTableFunctionSql);
}

private void concurrentCPUForecastTest(String modelId, String selectSQL)
throws SQLException, InterruptedException {
try (Connection connection = EnvFactory.getEnv().getConnection(BaseEnv.TABLE_SQL_DIALECT);
Statement statement = connection.createStatement()) {
final int threadCnt = 4;
final int loop = 10;
final int predictLength = 96;
statement.execute(String.format("LOAD MODEL %s TO DEVICES 'cpu'", modelId));
checkModelOnSpecifiedDevice(statement, modelId, "cpu");
long startTime = System.currentTimeMillis();
concurrentInference(
statement,
String.format(selectSQL, modelId, predictLength),
threadCnt,
loop,
predictLength);
long endTime = System.currentTimeMillis();
LOGGER.info(
String.format(
"Model %s concurrent inference %d reqs (%d threads, %d loops) in CPU takes time: %dms",
modelId, threadCnt * loop, threadCnt, loop, endTime - startTime));
statement.execute(String.format("UNLOAD MODEL %s FROM DEVICES 'cpu'", modelId));
}
}

@Test
public void concurrentGPUForecastTest() throws SQLException, InterruptedException {
concurrentGPUForecastTest("timer_xl", forecastUDTFSql);
Expand Down Expand Up @@ -221,7 +161,7 @@ private void checkModelOnSpecifiedDevice(Statement statement, String modelId, St
throws SQLException, InterruptedException {
Set<String> targetDevices = ImmutableSet.copyOf(device.split(","));
LOGGER.info("Checking model: {} on target devices: {}", modelId, targetDevices);
for (int retry = 0; retry < 20; retry++) {
for (int retry = 0; retry < 200; retry++) {
Set<String> foundDevices = new HashSet<>();
try (final ResultSet resultSet =
statement.executeQuery(String.format("SHOW LOADED MODELS '%s'", device))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public void tearDown() {
@Test
public void testPartitionInfoSnapshot() throws Exception {
final String sg = "root.sg";
final int storageGroupNum = 10;
final int databaseNum = 10;
final int seriesPartitionSlotsNum = 10;
final int timePartitionSlotsNum = 10;

Expand All @@ -118,18 +118,18 @@ public void testPartitionInfoSnapshot() throws Exception {

Set<TCQEntry> expectedCQEntries = createCQs(client);

for (int i = 0; i < storageGroupNum; i++) {
String storageGroup = sg + i;
TDatabaseSchema storageGroupSchema = new TDatabaseSchema(storageGroup);
TSStatus status = client.setDatabase(storageGroupSchema);
for (int i = 0; i < databaseNum; i++) {
String database = sg + i;
TDatabaseSchema databaseSchema = new TDatabaseSchema(database);
TSStatus status = client.setDatabase(databaseSchema);
assertEquals(TSStatusCode.SUCCESS_STATUS.getStatusCode(), status.getCode());

for (int j = 0; j < seriesPartitionSlotsNum; j++) {
TSeriesPartitionSlot seriesPartitionSlot = new TSeriesPartitionSlot(j);

// Create SchemaPartition
ByteBuffer patternTree =
generatePatternTreeBuffer(new String[] {storageGroup + ".d" + j + ".s"});
generatePatternTreeBuffer(new String[] {database + ".d" + j + ".s"});
TSchemaPartitionReq schemaPartitionReq = new TSchemaPartitionReq(patternTree);
TSchemaPartitionTableResp schemaPartitionTableResp =
client.getOrCreateSchemaPartitionTable(schemaPartitionReq);
Expand All @@ -139,10 +139,8 @@ public void testPartitionInfoSnapshot() throws Exception {
schemaPartitionTableResp.getStatus().getCode());
Assert.assertNotNull(schemaPartitionTableResp.getSchemaPartitionTable());
assertEquals(1, schemaPartitionTableResp.getSchemaPartitionTableSize());
Assert.assertNotNull(
schemaPartitionTableResp.getSchemaPartitionTable().get(storageGroup));
assertEquals(
1, schemaPartitionTableResp.getSchemaPartitionTable().get(storageGroup).size());
Assert.assertNotNull(schemaPartitionTableResp.getSchemaPartitionTable().get(database));
assertEquals(1, schemaPartitionTableResp.getSchemaPartitionTable().get(database).size());

for (int k = 0; k < timePartitionSlotsNum; k++) {
TTimePartitionSlot timePartitionSlot =
Expand All @@ -151,9 +149,9 @@ public void testPartitionInfoSnapshot() throws Exception {
// Create DataPartition
Map<String, Map<TSeriesPartitionSlot, TTimeSlotList>> partitionSlotsMap =
new HashMap<>();
partitionSlotsMap.put(storageGroup, new HashMap<>());
partitionSlotsMap.put(database, new HashMap<>());
partitionSlotsMap
.get(storageGroup)
.get(database)
.put(
seriesPartitionSlot,
new TTimeSlotList()
Expand All @@ -167,19 +165,18 @@ public void testPartitionInfoSnapshot() throws Exception {
dataPartitionTableResp.getStatus().getCode());
Assert.assertNotNull(dataPartitionTableResp.getDataPartitionTable());
assertEquals(1, dataPartitionTableResp.getDataPartitionTableSize());
Assert.assertNotNull(dataPartitionTableResp.getDataPartitionTable().get(storageGroup));
assertEquals(
1, dataPartitionTableResp.getDataPartitionTable().get(storageGroup).size());
Assert.assertNotNull(dataPartitionTableResp.getDataPartitionTable().get(database));
assertEquals(1, dataPartitionTableResp.getDataPartitionTable().get(database).size());
Assert.assertNotNull(
dataPartitionTableResp
.getDataPartitionTable()
.get(storageGroup)
.get(database)
.get(seriesPartitionSlot));
assertEquals(
1,
dataPartitionTableResp
.getDataPartitionTable()
.get(storageGroup)
.get(database)
.get(seriesPartitionSlot)
.size());
}
Expand Down
Loading
Loading