You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2021/04/06 09:42:55 UTC
[iotdb] branch Vector_cluster_UT updated (6af3ffd -> 0440dd7)
This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a change to branch Vector_cluster_UT
in repository https://gitbox.apache.org/repos/asf/iotdb.git.
discard 6af3ffd fix cluster UT
add eed9b98 fix ci
add 170d679 [IOTDB-1260] optimize time_range query because syncMetaLeader (#2943)
add 52a7251 fix spelling mistake in TsFile's readme doc (#2947)
add 92e4755 [IOTDB-1265] fix bug: correct cluster to iotdb-cluster (#2949)
add 43c4981 [ISSUE-2730] Add the number of unseq merge times in TsFile name. (#2939)
add 9a05be4 [IOTDB-1257] Make a little bit improvement of config and fix some bugs for setting logic (#2904)
add 8c38f6d Fix unseq compaction file selector conflicts with time partition bug (#2920)
add 2e7a32e [IOTDB-1262] The test fails to be executed independently
add ee908fb bug fix:correct cluster to iotdb-cluster when pacakging zip files (#2954)
add 453d95d [IOTDB-1194]Fix a bug of checking time partition in DeviceTimeIndex (#2800)
add 5a752b0 [IOTDB-1267] optimize ServerTimeGenerator IExpression parameter (#2955)
add 5b73c1d [ISSUE-2730] Change the upgraded TsFile names (#2952)
add 48c5488 [ISSUE-2919] Fix C++ client memory leak bug (#2937)
add 70e451e Throw exception when device to be queried is not in TsFileMetaData (#2944)
add 1d7386d [IOTDB-1273]Feature/restrucutre python module as well as supporting pandas dataframe (#2922)
add fa86482 Fix monitor bug caused by virtual storage group name (#2852)
add fa5aafa [IOTDB-1197] add iotdb-client-go as a git submodule of IoTDB repo (#2792)
add b2986cc [Distributed]fix stackoverflow when parse plan failed (#2953)
add d726fb3 [IOTDB-1180] Reset the system log file names and maximal disk-space size (#2765)
add 3f739bf [IOTDB-1276]Add explain sql support and remove debug_state parameter (#2848)
add 4afda52 Fix incompatible max_degree_of_index_node (#2962)
add b9b3ea7 [ISSUE-2911]Fix The write stream is not closed when executing the command 'tracing off' (#2961)
add 2619fe0 [IOTDB-1230]Support cross multi time partition when loading one TsFile (#2864)
add 2825e47 [IOTDB-1277] support IoTDB as Flink source (#2963)
add 2728564 Fix the errors and reorganize the chapters of user guide (#2916)
add 2bf4845 Log more memory usage information in SystemInfo (#2967)
add a344eb7 [IOTDB-1278]limit the class name length <=25 in logback and reduce thread pool name length (#2966)
add becb301 [CLIENT-PY] Fixed print statements with logging output. Added Exceptions instead of empty returns (#2968)
add edb6d9e [IOTDB-1190]Fully support HTTP URL char set in IoTDB path (#2776)
add fd7e68f [IOTDB-1202] reduce the size of client library (#2795)
add 04be7b6 Fix group by month bug that use calendar month rather than use 30 days (#2964)
add 24e7d23 for releasing 0.12.0: add version 0.12 in website, add release_note
add 1e88f65 add parent pom to example/udf/example
add bc8ed3f fix conflicts
add 71b39e8 format code
add 21f39e3 support for value filter
add 19e1a13 format code
add d53ae51 interface changes cause the IoTDBEngineTimeGeneratorIT failed
add 4cbddc0 format code
new 0440dd7 fix cluster UT
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (6af3ffd)
\
N -- N -- N refs/heads/Vector_cluster_UT (0440dd7)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/{main-unix.yml => client-go.yml} | 23 +-
.github/workflows/main-unix.yml | 2 +
.github/workflows/main-win.yml | 2 +
.gitignore | 10 +-
.gitmodules | 3 +
Jenkinsfile | 2 +-
LICENSE-binary | 4 +-
README.md | 49 +-
README_ZH.md | 34 +-
RELEASE_NOTES.md | 149 ++++
.../antlr4/org/apache/iotdb/db/qp/sql/SqlBase.g4 | 7 +-
client-cpp/src/main/Session.cpp | 30 +-
client-cpp/src/main/Session.h | 27 +-
client-go | 1 +
client-py/{src/iotdb/utils/__init__.py => .flake8} | 17 +-
client-py/.gitignore | 5 +
client-py/{pypi => }/README.md | 119 +++-
client-py/SessionExample.py | 177 +++++
client-py/SessionTest.py | 243 +++++++
.../TestContainer.py => iotdb/IoTDBContainer.py} | 4 +-
client-py/{src => }/iotdb/Session.py | 411 +++++++----
client-py/{src => }/iotdb/__init__.py | 1 -
client-py/{src => }/iotdb/utils/Field.py | 10 +-
client-py/{src => }/iotdb/utils/IoTDBConstants.py | 0
client-py/{src => }/iotdb/utils/IoTDBRpcDataSet.py | 104 ++-
client-py/{src => }/iotdb/utils/RowRecord.py | 5 +-
client-py/{src => }/iotdb/utils/SessionDataSet.py | 112 ++-
client-py/{src => }/iotdb/utils/Tablet.py | 25 +-
client-py/{src => }/iotdb/utils/__init__.py | 1 -
client-py/pom.xml | 77 +--
.../utils/IoTDBConstants.py => pyproject.toml} | 61 +-
client-py/readme.md | 80 ---
client-py/{src/iotdb/__init__.py => release.sh} | 19 +
.../iotdb/utils/__init__.py => requirements.txt} | 4 +
.../utils/__init__.py => requirements_dev.txt} | 9 +
client-py/{pypi => }/setup.py | 18 +-
client-py/src/SessionExample.py | 115 ---
client-py/src/SessionTest.py | 158 -----
client-py/{src/iotdb => tests}/__init__.py | 1 -
.../IoTDBConstants.py => tests/test_dataframe.py} | 59 +-
cluster/pom.xml | 15 +
.../apache/iotdb/cluster/RemoteTsFileResource.java | 5 +-
.../org/apache/iotdb/cluster/log/HardState.java | 6 +-
.../iotdb/cluster/log/logtypes/AddNodeLog.java | 6 +-
.../iotdb/cluster/log/logtypes/RemoveNodeLog.java | 6 +-
.../log/snapshot/PullSnapshotTaskDescriptor.java | 6 +-
.../iotdb/cluster/partition/slot/SlotManager.java | 6 +-
.../cluster/partition/slot/SlotPartitionTable.java | 5 +-
.../cluster/query/ClusterDataQueryExecutor.java | 10 +-
.../iotdb/cluster/query/RemoteQueryContext.java | 4 +
.../query/aggregate/ClusterAggregateExecutor.java | 2 +-
.../groupby/ClusterGroupByVFilterDataSet.java | 6 +-
.../cluster/query/reader/ClusterReaderFactory.java | 8 +-
.../cluster/query/reader/ClusterTimeGenerator.java | 6 +-
.../apache/iotdb/cluster/server/ClientServer.java | 4 +-
.../iotdb/cluster/utils/NodeSerializeUtils.java | 90 +++
.../ClusterGroupByNoVFilterDataSetTest.java | 3 +
.../query/reader/ClusterTimeGeneratorTest.java | 2 +-
.../iotdb/cluster/utils/SerializeUtilTest.java | 13 +
code-coverage/pom.xml | 6 +
.../tests/tools/importCsv/AbstractScript.java | 4 +-
.../tests/tools/importCsv/ExportCsvTestIT.java | 36 +-
.../tests/tools/importCsv/ImportCsvTestIT.java | 79 ++-
distribution/pom.xml | 2 +-
distribution/src/assembly/all.xml | 2 +-
distribution/src/assembly/cluster.xml | 2 +-
docs/Development/ContributeGuide.md | 11 +
.../Programming-JDBC.md} | 23 +-
.../Programming-Native-API.md} | 313 +++------
docs/UserGuide/API/Programming-Other-Languages.md | 271 ++++++++
.../Programming-TsFile-API.md} | 121 ++--
.../Administration.md | 5 +-
.../Config Manual.md => Appendix/Config-Manual.md} | 4 +-
.../SQL Reference.md => Appendix/SQL-Reference.md} | 4 +-
.../Status Codes.md => Appendix/Status-Codes.md} | 3 +-
.../Command-Line-Interface.md} | 48 +-
.../Client/Programming - Other Languages.md | 72 --
.../Cluster Setup.md => Cluster/Cluster-Setup.md} | 4 +-
.../Sync-Tool.md} | 98 +--
.../Programming-MQTT.md} | 55 +-
.../Programming-Thrift.md | 157 +++++
docs/UserGuide/Comparison/TSDB-Comparison.md | 4 +-
.../{Concept => Data-Concept}/Compression.md | 4 +-
.../Data-Model-and-Terminology.md} | 8 +-
.../Data Type.md => Data-Concept/Data-Type.md} | 9 +-
.../{Concept => Data-Concept}/Encoding.md | 14 +-
docs/UserGuide/{Concept => Data-Concept}/SDT.md | 4 +-
.../UserGuide/Ecosystem Integration/Flink IoTDB.md | 107 ++-
.../Ecosystem Integration/Flink TsFile.md | 7 +-
docs/UserGuide/Ecosystem Integration/Grafana.md | 45 +-
.../UserGuide/Ecosystem Integration/Hive TsFile.md | 45 +-
.../Ecosystem Integration/MapReduce TsFile.md | 31 +-
.../UserGuide/Ecosystem Integration/Spark IoTDB.md | 36 +-
.../Ecosystem Integration/Spark TsFile.md | 51 +-
.../Writing Data on HDFS.md | 24 +-
.../Ecosystem Integration/Zeppelin-IoTDB.md | 37 +-
.../Frequently-asked-questions.md} | 31 +-
.../Architecture.md | 2 +-
.../{Overview => IoTDB-Introduction}/Features.md | 2 +-
.../Publication.md | 4 +-
.../{Overview => IoTDB-Introduction}/Scenario.md | 18 +-
.../What-is-IoTDB.md} | 0
.../DDL-Data-Definition-Language.md} | 288 ++++----
.../DML-Data-Manipulation-Language.md} | 28 +-
.../Maintenance-Command.md} | 50 +-
.../{Architecture => QuickStart}/Files.md | 18 +-
.../{Get Started => QuickStart}/QuickStart.md | 46 +-
.../{Server => QuickStart}/ServerFileList.md | 14 +-
.../WayToGetIoTDB.md} | 77 ++-
docs/UserGuide/Server/Download.md | 74 --
docs/UserGuide/Server/Single Node Setup.md | 38 -
.../CSV Tool.md => System-Tools/CSV-Tool.md} | 26 +-
.../JMX Tool.md => System-Tools/JMX-Tool.md} | 0
.../Load-External-Tsfile.md} | 14 +-
.../MLogParser-Tool.md} | 7 +-
.../Monitor-and-Log-Tools.md} | 31 +-
.../{System Tools => System-Tools}/NodeTool.md | 2 +-
.../Performance-Tracing-Tool.md} | 4 +-
.../Query-History-Visualization-Tool.md} | 3 +-
.../Watermark-Tool.md} | 25 +-
.../{Operation Manual => UDF}/Triggers.md | 0
.../UDF-User-Defined-Function.md} | 4 +-
docs/zh/SystemDesign/TsFile/Read.md | 10 +-
.../Programming-JDBC.md} | 22 +-
docs/zh/UserGuide/API/Programming-Native-API.md | 238 +++++++
.../UserGuide/API/Programming-Other-Languages.md | 320 +++++++++
.../Programming-TsFile-API.md} | 417 ++++++-----
.../Administration.md | 50 +-
.../Config Manual.md => Appendix/Config-Manual.md} | 332 ++++++---
.../SQL Reference.md => Appendix/SQL-Reference.md} | 19 +-
.../Status Codes.md => Appendix/Status-Codes.md} | 7 +-
.../Command-Line-Interface.md} | 64 +-
.../UserGuide/Client/Programming - Native API.md | 421 -----------
.../Client/Programming - Other Languages.md | 66 --
.../Cluster Setup.md => Cluster/Cluster-Setup.md} | 40 +-
.../Collaboration-of-Edge-and-Cloud/Sync-Tool.md | 187 +++++
.../Programming-MQTT.md} | 57 +-
.../Programming-Thrift.md | 157 +++++
.../{Concept => Data-Concept}/Compression.md | 4 +-
.../Data-Model-and-Terminology.md} | 23 +-
.../Data Type.md => Data-Concept/Data-Type.md} | 5 +-
.../{Concept => Data-Concept}/Encoding.md | 12 +-
docs/zh/UserGuide/{Concept => Data-Concept}/SDT.md | 4 +-
docs/zh/UserGuide/Ecosystem Integration/Grafana.md | 46 +-
.../UserGuide/Ecosystem Integration/Hive TsFile.md | 37 +-
.../Ecosystem Integration/MapReduce TsFile.md | 203 +++---
.../UserGuide/Ecosystem Integration/Spark IoTDB.md | 61 +-
.../Ecosystem Integration/Spark TsFile.md | 215 +++---
.../Writing Data on HDFS.md | 22 +-
.../Ecosystem Integration/Zeppelin-IoTDB.md | 32 +-
.../Frequently-asked-questions.md} | 33 +-
.../Architecture.md | 6 +-
.../{Overview => IoTDB-Introduction}/Features.md | 3 +-
.../Publication.md | 6 +-
.../{Overview => IoTDB-Introduction}/Scenario.md | 22 +-
.../What-is-IoTDB.md} | 4 +-
.../DDL-Data-Definition-Language.md} | 303 ++++----
.../DML-Data-Manipulation-Language.md} | 769 +++++++++------------
.../Maintenance-Command.md} | 52 +-
.../{Architecture => QuickStart}/Files.md | 18 +-
.../{Get Started => QuickStart}/QuickStart.md | 100 +--
.../{Server => QuickStart}/ServerFileList.md | 8 +-
.../WayToGetIoTDB.md} | 86 ++-
docs/zh/UserGuide/Server/Download.md | 76 --
docs/zh/UserGuide/Server/Single Node Setup.md | 39 --
docs/zh/UserGuide/System Tools/Sync Tool.md | 275 --------
.../CSV Tool.md => System-Tools/CSV-Tool.md} | 31 +-
.../JMX Tool.md => System-Tools/JMX-Tool.md} | 0
.../Load-External-Tsfile.md} | 24 +-
.../MLogParser-Tool.md} | 7 +-
.../Monitor-and-Log-Tools.md} | 76 +-
.../{System Tools => System-Tools}/NodeTool.md | 4 +-
.../Performance-Tracing-Tool.md} | 4 +-
.../Query-History-Visualization-Tool.md} | 4 +-
.../Watermark-Tool.md} | 40 +-
.../{Operation Manual => UDF}/Triggers.md | 0
.../UDF-User-Defined-Function.md} | 53 +-
example/client-cpp-example/src/SessionExample.cpp | 329 +++++----
.../org/apache/iotdb/flink/FlinkIoTDBSink.java | 5 +-
.../org/apache/iotdb/flink/FlinkIoTDBSource.java | 94 +++
.../org/apache/iotdb/VectorSessionExample.java | 22 +
.../java/org/apache/iotdb/tsfile/TsFileRead.java | 1 +
.../apache/iotdb/tsfile/TsFileSequenceRead.java | 3 +-
.../iotdb/tsfile/TsFileWriteWithTSRecord.java | 1 -
.../apache/iotdb/tsfile/TsFileWriteWithTablet.java | 2 +-
example/udf/pom.xml | 8 +-
.../java/org/apache/iotdb/flink/IoTDBSink.java | 13 +-
.../java/org/apache/iotdb/flink/IoTDBSource.java | 100 +++
.../apache/iotdb/flink/options/IoTDBOptions.java | 70 ++
.../IoTDBSinkOptions.java} | 51 +-
.../iotdb/flink/options/IoTDBSourceOptions.java | 51 ++
.../flink/DefaultIoTSerializationSchemaTest.java | 6 +-
.../iotdb/flink/IoTDBSinkBatchInsertTest.java | 5 +-
.../iotdb/flink/IoTDBSinkBatchTimerTest.java | 5 +-
.../apache/iotdb/flink/IoTDBSinkInsertTest.java | 5 +-
grafana/pom.xml | 4 +
jdbc/pom.xml | 5 -
.../main/java/org/apache/iotdb/jdbc/Config.java | 12 +-
.../org/apache/iotdb/jdbc/IoTDBConnection.java | 4 +-
.../apache/iotdb/jdbc/IoTDBConnectionParams.java | 22 +-
.../src/main/java/org/apache/iotdb/jdbc/Utils.java | 11 +-
pom.xml | 34 +-
server/file-changelists/conf-changelist.md | 7 +
server/pom.xml | 5 +
.../resources/conf/iotdb-engine.properties | 3 -
server/src/assembly/resources/conf/logback.xml | 170 ++---
.../iotdb/db/concurrent/IoTThreadFactory.java | 3 +-
.../org/apache/iotdb/db/concurrent/ThreadName.java | 40 +-
.../java/org/apache/iotdb/db/conf/IoTDBConfig.java | 28 +-
.../org/apache/iotdb/db/conf/IoTDBConstant.java | 8 +
.../org/apache/iotdb/db/conf/IoTDBDescriptor.java | 10 +-
.../apache/iotdb/db/engine/cache/ChunkCache.java | 6 +-
.../db/engine/cache/TimeSeriesMetadataCache.java | 15 +-
.../db/engine/compaction/TsFileManagement.java | 28 +-
.../level/LevelCompactionTsFileManagement.java | 64 +-
.../no/NoCompactionTsFileManagement.java | 180 ++++-
.../apache/iotdb/db/engine/flush/FlushManager.java | 5 +-
.../iotdb/db/engine/merge/task/MergeFileTask.java | 33 +-
.../db/engine/merge/task/MergeMultiChunkTask.java | 1 -
.../iotdb/db/engine/modification/Deletion.java | 16 +
.../engine/storagegroup/StorageGroupProcessor.java | 31 +-
.../db/engine/storagegroup/TsFileProcessor.java | 10 +
.../db/engine/storagegroup/TsFileResource.java | 150 +++-
.../storagegroup/timeindex/DeviceTimeIndex.java | 47 +-
.../storagegroup/timeindex/FileTimeIndex.java | 28 +-
.../engine/storagegroup/timeindex/ITimeIndex.java | 21 +-
.../iotdb/db/engine/upgrade/UpgradeTask.java | 2 +-
.../org/apache/iotdb/db/metadata/MManager.java | 16 +
.../iotdb/db/metadata/VectorPartialPath.java | 21 +
.../org/apache/iotdb/db/monitor/StatMonitor.java | 2 +
.../apache/iotdb/db/qp/executor/PlanExecutor.java | 32 +-
.../org/apache/iotdb/db/qp/logical/Operator.java | 11 +
.../apache/iotdb/db/qp/physical/PhysicalPlan.java | 10 +
.../iotdb/db/qp/physical/crud/AggregationPlan.java | 5 +
.../iotdb/db/qp/physical/crud/FillQueryPlan.java | 5 +
.../db/qp/physical/crud/InsertMultiTabletPlan.java | 3 +
.../iotdb/db/qp/physical/crud/InsertRowsPlan.java | 3 +
.../db/qp/physical/crud/InsertTabletPlan.java | 2 +-
.../iotdb/db/qp/physical/crud/LastQueryPlan.java | 5 +
.../iotdb/db/qp/physical/crud/QueryIndexPlan.java | 5 +
.../iotdb/db/qp/physical/crud/QueryPlan.java | 10 +
.../db/qp/physical/crud/RawDataQueryPlan.java | 43 ++
.../apache/iotdb/db/qp/physical/crud/UDTFPlan.java | 5 +
.../qp/physical/sys/CreateMultiTimeSeriesPlan.java | 20 +
.../apache/iotdb/db/qp/sql/IoTDBSqlVisitor.java | 6 +-
.../iotdb/db/qp/strategy/PhysicalGenerator.java | 47 +-
.../iotdb/db/query/context/QueryContext.java | 11 +
.../iotdb/db/query/control/TracingManager.java | 27 +-
.../dataset/RawQueryDataSetWithValueFilter.java | 8 +-
.../groupby/GroupByWithValueFilterDataSet.java | 9 +-
.../groupby/GroupByWithoutValueFilterDataSet.java | 5 +-
.../db/query/executor/AggregationExecutor.java | 2 +-
.../iotdb/db/query/executor/LastQueryExecutor.java | 16 +
.../iotdb/db/query/executor/QueryRouter.java | 37 +-
.../db/query/executor/RawDataQueryExecutor.java | 9 +-
.../iotdb/db/query/executor/UDTFQueryExecutor.java | 6 +-
.../db/query/reader/chunk/DiskChunkLoader.java | 9 +-
.../chunk/metadata/DiskChunkMetadataLoader.java | 27 +-
.../iotdb/db/query/reader/series/SeriesReader.java | 7 +-
.../query/timegenerator/ServerTimeGenerator.java | 12 +-
.../org/apache/iotdb/db/rescon/SystemInfo.java | 37 +-
.../org/apache/iotdb/db/service/TSServiceImpl.java | 8 +-
.../iotdb/db/sync/sender/transfer/SyncClient.java | 4 +-
...lineUpgradeTool.java => TsFileRewriteTool.java} | 248 +++----
.../db/tools/upgrade/TsFileOnlineUpgradeTool.java | 262 +------
.../org/apache/iotdb/db/utils/FileLoaderUtils.java | 3 +-
.../org/apache/iotdb/db/utils/FilePathUtils.java | 2 +-
.../org/apache/iotdb/db/utils/SerializeUtils.java | 63 --
.../db/engine/compaction/CompactionChunkTest.java | 4 +
.../compaction/LevelCompactionMoreDataTest.java | 6 +
.../compaction/LevelCompactionRecoverTest.java | 12 +
.../db/engine/compaction/LevelCompactionTest.java | 10 +-
.../LevelCompactionTsFileManagementTest.java | 8 +
.../NoCompactionTsFileManagementTest.java | 8 +
.../engine/merge/MaxFileMergeFileSelectorTest.java | 53 +-
.../iotdb/db/engine/merge/MergeOverLapTest.java | 6 +
.../iotdb/db/engine/merge/MergeTaskTest.java | 1 +
.../apache/iotdb/db/engine/merge/MergeTest.java | 8 +
.../iotdb/db/integration/IOTDBGroupByIT.java | 173 +----
.../iotdb/db/integration/IoTDBCheckConfigIT.java | 2 +-
.../db/integration/IoTDBEngineTimeGeneratorIT.java | 24 +-
.../iotdb/db/integration/IoTDBGroupByMonthIT.java | 180 +++++
...IoTDBLoadExternalTsfileWithTimePartitionIT.java | 192 +++++
.../db/integration/IoTDBRemovePartitionIT.java | 1 +
.../iotdb/db/monitor/IoTDBStatMonitorTest.java | 6 +-
.../iotdb/db/query/control/TracingManagerTest.java | 3 +
.../apache/iotdb/db/utils/SerializeUtilsTest.java | 13 -
.../iotdb/db/utils/TsFileRewriteToolTest.java | 273 ++++++++
service-rpc/pom.xml | 11 +
.../org/apache/iotdb/rpc/RpcTransportFactory.java | 14 +-
.../main/java/org/apache/iotdb/rpc/RpcUtils.java | 10 +-
.../rpc/TCompressedElasticFramedTransport.java | 12 +-
.../apache/iotdb/rpc/TElasticFramedTransport.java | 71 +-
.../iotdb/rpc/TSnappyElasticFramedTransport.java | 21 +-
.../rpc/TimeoutChangeableTFastFramedTransport.java | 13 +-
session/pom.xml | 9 +-
.../java/org/apache/iotdb/session/Session.java | 12 +-
.../apache/iotdb/session/SessionConnection.java | 4 +-
site/pom.xml | 92 +++
site/src/main/.vuepress/config.js | 587 ++++++++++++----
.../README.md | 8 +-
thrift-cluster/pom.xml | 67 ++
{thrift => thrift-cluster}/rpc-changelist.md | 0
.../src/main/thrift/cluster.thrift | 0
.../README.md | 8 +-
thrift-sync/pom.xml | 67 ++
{thrift => thrift-sync}/rpc-changelist.md | 0
.../src/main/thrift/sync.thrift | 0
.../Shared Nothing Cluster.md => thrift/README.md | 8 +-
.../iotdb/tsfile/common/conf/TSFileConfig.java | 2 +-
.../iotdb/tsfile/file/metadata/ChunkMetadata.java | 4 +-
.../tsfile/file/metadata/TimeseriesMetadata.java | 25 +
.../iotdb/tsfile/read/TsFileSequenceReader.java | 2 +-
.../expression/impl/SingleSeriesExpression.java | 4 +
.../iotdb/tsfile/read/filter/GroupByFilter.java | 11 +-
.../tsfile/read/filter/GroupByMonthFilter.java | 176 +++++
.../tsfile/read/reader/page/VectorPageReader.java | 3 +-
.../iotdb/tsfile/write/writer/TsFileIOWriter.java | 4 +-
.../tsfile/read/filter/GroupByMonthFilterTest.java | 226 ++++++
.../write/writer/RestorableTsFileIOWriterTest.java | 5 +-
320 files changed, 9423 insertions(+), 5920 deletions(-)
copy .github/workflows/{main-unix.yml => client-go.yml} (57%)
create mode 100644 .gitmodules
create mode 160000 client-go
copy client-py/{src/iotdb/utils/__init__.py => .flake8} (72%)
create mode 100644 client-py/.gitignore
rename client-py/{pypi => }/README.md (51%)
create mode 100644 client-py/SessionExample.py
create mode 100644 client-py/SessionTest.py
rename client-py/{src/iotdb/TestContainer.py => iotdb/IoTDBContainer.py} (92%)
rename client-py/{src => }/iotdb/Session.py (63%)
copy client-py/{src => }/iotdb/__init__.py (99%)
rename client-py/{src => }/iotdb/utils/Field.py (96%)
copy client-py/{src => }/iotdb/utils/IoTDBConstants.py (100%)
rename client-py/{src => }/iotdb/utils/IoTDBRpcDataSet.py (75%)
rename client-py/{src => }/iotdb/utils/RowRecord.py (95%)
rename client-py/{src => }/iotdb/utils/SessionDataSet.py (54%)
rename client-py/{src => }/iotdb/utils/Tablet.py (90%)
copy client-py/{src => }/iotdb/utils/__init__.py (99%)
copy client-py/{src/iotdb/utils/IoTDBConstants.py => pyproject.toml} (61%)
delete mode 100644 client-py/readme.md
copy client-py/{src/iotdb/__init__.py => release.sh} (69%)
mode change 100644 => 100755
copy client-py/{src/iotdb/utils/__init__.py => requirements.txt} (92%)
rename client-py/{src/iotdb/utils/__init__.py => requirements_dev.txt} (84%)
rename client-py/{pypi => }/setup.py (82%)
delete mode 100644 client-py/src/SessionExample.py
delete mode 100644 client-py/src/SessionTest.py
rename client-py/{src/iotdb => tests}/__init__.py (99%)
rename client-py/{src/iotdb/utils/IoTDBConstants.py => tests/test_dataframe.py} (52%)
create mode 100644 cluster/src/main/java/org/apache/iotdb/cluster/utils/NodeSerializeUtils.java
rename docs/UserGuide/{Client/Programming - JDBC.md => API/Programming-JDBC.md} (95%)
rename docs/UserGuide/{Client/Programming - Native API.md => API/Programming-Native-API.md} (60%)
create mode 100644 docs/UserGuide/API/Programming-Other-Languages.md
rename docs/UserGuide/{Client/Programming - TsFile API.md => API/Programming-TsFile-API.md} (88%)
rename docs/UserGuide/{Operation Manual => Administration-Management}/Administration.md (96%)
rename docs/UserGuide/{Server/Config Manual.md => Appendix/Config-Manual.md} (99%)
rename docs/UserGuide/{Operation Manual/SQL Reference.md => Appendix/SQL-Reference.md} (99%)
rename docs/UserGuide/{Client/Status Codes.md => Appendix/Status-Codes.md} (99%)
rename docs/UserGuide/{Client/Command Line Interface.md => CLI/Command-Line-Interface.md} (89%)
delete mode 100644 docs/UserGuide/Client/Programming - Other Languages.md
rename docs/UserGuide/{Server/Cluster Setup.md => Cluster/Cluster-Setup.md} (98%)
rename docs/UserGuide/{System Tools/Sync Tool.md => Collaboration-of-Edge-and-Cloud/Sync-Tool.md} (77%)
rename docs/UserGuide/{Client/Programming - MQTT.md => Communication-Service-Protocol/Programming-MQTT.md} (79%)
create mode 100644 docs/UserGuide/Communication-Service-Protocol/Programming-Thrift.md
rename docs/UserGuide/{Concept => Data-Concept}/Compression.md (96%)
rename docs/UserGuide/{Concept/Data Model and Terminology.md => Data-Concept/Data-Model-and-Terminology.md} (93%)
rename docs/UserGuide/{Concept/Data Type.md => Data-Concept/Data-Type.md} (74%)
rename docs/UserGuide/{Concept => Data-Concept}/Encoding.md (82%)
rename docs/UserGuide/{Concept => Data-Concept}/SDT.md (98%)
rename docs/UserGuide/{Architecture => Ecosystem Integration}/Writing Data on HDFS.md (87%)
rename docs/UserGuide/{Get Started/Frequently asked questions.md => FAQ/Frequently-asked-questions.md} (83%)
rename docs/UserGuide/{Overview => IoTDB-Introduction}/Architecture.md (99%)
rename docs/UserGuide/{Overview => IoTDB-Introduction}/Features.md (99%)
rename docs/UserGuide/{Get Started => IoTDB-Introduction}/Publication.md (97%)
rename docs/UserGuide/{Overview => IoTDB-Introduction}/Scenario.md (94%)
rename docs/UserGuide/{Overview/What is IoTDB.md => IoTDB-Introduction/What-is-IoTDB.md} (100%)
rename docs/UserGuide/{Operation Manual/DDL Data Definition Language.md => IoTDB-SQL-Language/DDL-Data-Definition-Language.md} (89%)
rename docs/UserGuide/{Operation Manual/DML Data Manipulation Language.md => IoTDB-SQL-Language/DML-Data-Manipulation-Language.md} (97%)
rename docs/UserGuide/{Operation Manual/Kill Query.md => IoTDB-SQL-Language/Maintenance-Command.md} (67%)
rename docs/UserGuide/{Architecture => QuickStart}/Files.md (82%)
rename docs/UserGuide/{Get Started => QuickStart}/QuickStart.md (90%)
rename docs/UserGuide/{Server => QuickStart}/ServerFileList.md (95%)
rename docs/UserGuide/{Server/Docker Image.md => QuickStart/WayToGetIoTDB.md} (56%)
delete mode 100644 docs/UserGuide/Server/Download.md
delete mode 100644 docs/UserGuide/Server/Single Node Setup.md
rename docs/UserGuide/{System Tools/CSV Tool.md => System-Tools/CSV-Tool.md} (94%)
rename docs/UserGuide/{System Tools/JMX Tool.md => System-Tools/JMX-Tool.md} (100%)
rename docs/UserGuide/{System Tools/Load External Tsfile.md => System-Tools/Load-External-Tsfile.md} (95%)
rename docs/UserGuide/{System Tools/MLogParser Tool.md => System-Tools/MLogParser-Tool.md} (97%)
rename docs/UserGuide/{System Tools/Monitor and Log Tools.md => System-Tools/Monitor-and-Log-Tools.md} (94%)
rename docs/UserGuide/{System Tools => System-Tools}/NodeTool.md (99%)
rename docs/UserGuide/{System Tools/Performance Tracing Tool.md => System-Tools/Performance-Tracing-Tool.md} (98%)
rename docs/UserGuide/{System Tools/Query History Visualization Tool.md => System-Tools/Query-History-Visualization-Tool.md} (97%)
rename docs/UserGuide/{System Tools/Watermark Tool.md => System-Tools/Watermark-Tool.md} (96%)
rename docs/UserGuide/{Operation Manual => UDF}/Triggers.md (100%)
rename docs/UserGuide/{Operation Manual/UDF User Defined Function.md => UDF/UDF-User-Defined-Function.md} (99%)
rename docs/zh/UserGuide/{Client/Programming - JDBC.md => API/Programming-JDBC.md} (95%)
create mode 100644 docs/zh/UserGuide/API/Programming-Native-API.md
create mode 100644 docs/zh/UserGuide/API/Programming-Other-Languages.md
rename docs/zh/UserGuide/{Client/Programming - TsFile API.md => API/Programming-TsFile-API.md} (56%)
rename docs/zh/UserGuide/{Operation Manual => Administration-Management}/Administration.md (82%)
rename docs/zh/UserGuide/{Server/Config Manual.md => Appendix/Config-Manual.md} (69%)
rename docs/zh/UserGuide/{Operation Manual/SQL Reference.md => Appendix/SQL-Reference.md} (99%)
rename docs/zh/UserGuide/{Client/Status Codes.md => Appendix/Status-Codes.md} (95%)
rename docs/zh/UserGuide/{Client/Command Line Interface.md => CLI/Command-Line-Interface.md} (82%)
delete mode 100644 docs/zh/UserGuide/Client/Programming - Native API.md
delete mode 100644 docs/zh/UserGuide/Client/Programming - Other Languages.md
rename docs/zh/UserGuide/{Server/Cluster Setup.md => Cluster/Cluster-Setup.md} (88%)
create mode 100644 docs/zh/UserGuide/Collaboration-of-Edge-and-Cloud/Sync-Tool.md
rename docs/zh/UserGuide/{Client/Programming - MQTT.md => Communication-Service-Protocol/Programming-MQTT.md} (79%)
create mode 100644 docs/zh/UserGuide/Communication-Service-Protocol/Programming-Thrift.md
rename docs/zh/UserGuide/{Concept => Data-Concept}/Compression.md (93%)
rename docs/zh/UserGuide/{Concept/Data Model and Terminology.md => Data-Concept/Data-Model-and-Terminology.md} (88%)
rename docs/zh/UserGuide/{Concept/Data Type.md => Data-Concept/Data-Type.md} (78%)
rename docs/zh/UserGuide/{Concept => Data-Concept}/Encoding.md (86%)
rename docs/zh/UserGuide/{Concept => Data-Concept}/SDT.md (97%)
rename docs/zh/UserGuide/{Architecture => Ecosystem Integration}/Writing Data on HDFS.md (88%)
rename docs/zh/UserGuide/{Get Started/Frequently asked questions.md => FAQ/Frequently-asked-questions.md} (81%)
rename docs/zh/UserGuide/{Overview => IoTDB-Introduction}/Architecture.md (88%)
rename docs/zh/UserGuide/{Overview => IoTDB-Introduction}/Features.md (98%)
rename docs/zh/UserGuide/{Get Started => IoTDB-Introduction}/Publication.md (96%)
rename docs/zh/UserGuide/{Overview => IoTDB-Introduction}/Scenario.md (93%)
rename docs/zh/UserGuide/{Overview/What is IoTDB.md => IoTDB-Introduction/What-is-IoTDB.md} (96%)
rename docs/zh/UserGuide/{Operation Manual/DDL Data Definition Language.md => IoTDB-SQL-Language/DDL-Data-Definition-Language.md} (87%)
rename docs/zh/UserGuide/{Operation Manual/DML Data Manipulation Language.md => IoTDB-SQL-Language/DML-Data-Manipulation-Language.md} (89%)
rename docs/zh/UserGuide/{Operation Manual/Kill Query.md => IoTDB-SQL-Language/Maintenance-Command.md} (64%)
rename docs/zh/UserGuide/{Architecture => QuickStart}/Files.md (84%)
rename docs/zh/UserGuide/{Get Started => QuickStart}/QuickStart.md (78%)
rename docs/zh/UserGuide/{Server => QuickStart}/ServerFileList.md (95%)
rename docs/zh/UserGuide/{Server/Docker Image.md => QuickStart/WayToGetIoTDB.md} (56%)
delete mode 100644 docs/zh/UserGuide/Server/Download.md
delete mode 100644 docs/zh/UserGuide/Server/Single Node Setup.md
delete mode 100644 docs/zh/UserGuide/System Tools/Sync Tool.md
rename docs/zh/UserGuide/{System Tools/CSV Tool.md => System-Tools/CSV-Tool.md} (93%)
rename docs/zh/UserGuide/{System Tools/JMX Tool.md => System-Tools/JMX-Tool.md} (100%)
rename docs/zh/UserGuide/{System Tools/Load External Tsfile.md => System-Tools/Load-External-Tsfile.md} (89%)
rename docs/zh/UserGuide/{System Tools/MLogParser Tool.md => System-Tools/MLogParser-Tool.md} (96%)
rename docs/zh/UserGuide/{System Tools/Monitor and Log Tools.md => System-Tools/Monitor-and-Log-Tools.md} (85%)
rename docs/zh/UserGuide/{System Tools => System-Tools}/NodeTool.md (99%)
rename docs/zh/UserGuide/{System Tools/Performance Tracing Tool.md => System-Tools/Performance-Tracing-Tool.md} (98%)
rename docs/zh/UserGuide/{System Tools/Query History Visualization Tool.md => System-Tools/Query-History-Visualization-Tool.md} (96%)
rename docs/zh/UserGuide/{System Tools/Watermark Tool.md => System-Tools/Watermark-Tool.md} (93%)
rename docs/zh/UserGuide/{Operation Manual => UDF}/Triggers.md (100%)
rename docs/zh/UserGuide/{Operation Manual/UDF User Defined Function.md => UDF/UDF-User-Defined-Function.md} (94%)
create mode 100644 example/flink/src/main/java/org/apache/iotdb/flink/FlinkIoTDBSource.java
create mode 100644 flink-iotdb-connector/src/main/java/org/apache/iotdb/flink/IoTDBSource.java
create mode 100644 flink-iotdb-connector/src/main/java/org/apache/iotdb/flink/options/IoTDBOptions.java
rename flink-iotdb-connector/src/main/java/org/apache/iotdb/flink/{IoTDBOptions.java => options/IoTDBSinkOptions.java} (79%)
create mode 100644 flink-iotdb-connector/src/main/java/org/apache/iotdb/flink/options/IoTDBSourceOptions.java
copy server/src/main/java/org/apache/iotdb/db/tools/{upgrade/TsFileOnlineUpgradeTool.java => TsFileRewriteTool.java} (70%)
create mode 100644 server/src/test/java/org/apache/iotdb/db/integration/IoTDBGroupByMonthIT.java
create mode 100644 server/src/test/java/org/apache/iotdb/db/integration/IoTDBLoadExternalTsfileWithTimePartitionIT.java
create mode 100644 server/src/test/java/org/apache/iotdb/db/utils/TsFileRewriteToolTest.java
rename docs/UserGuide/Architecture/Shared Nothing Cluster.md => thrift-cluster/README.md (85%)
create mode 100644 thrift-cluster/pom.xml
copy {thrift => thrift-cluster}/rpc-changelist.md (100%)
rename {thrift => thrift-cluster}/src/main/thrift/cluster.thrift (100%)
copy docs/zh/UserGuide/Architecture/Shared Nothing Cluster.md => thrift-sync/README.md (90%)
create mode 100644 thrift-sync/pom.xml
copy {thrift => thrift-sync}/rpc-changelist.md (100%)
rename {thrift => thrift-sync}/src/main/thrift/sync.thrift (100%)
rename docs/zh/UserGuide/Architecture/Shared Nothing Cluster.md => thrift/README.md (91%)
create mode 100644 tsfile/src/main/java/org/apache/iotdb/tsfile/read/filter/GroupByMonthFilter.java
create mode 100644 tsfile/src/test/java/org/apache/iotdb/tsfile/read/filter/GroupByMonthFilterTest.java
[iotdb] 01/01: fix cluster UT
Posted by ta...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tanxinyu pushed a commit to branch Vector_cluster_UT
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 0440dd777c4905f59d2496fab1cc02adb358cc66
Author: LebronAl <TX...@gmail.com>
AuthorDate: Tue Apr 6 17:41:03 2021 +0800
fix cluster UT
---
.../apache/iotdb/cluster/config/ClusterConfig.java | 2 +-
.../cluster/client/async/AsyncClientPoolTest.java | 33 +++++++++++++++-------
.../cluster/client/async/AsyncDataClientTest.java | 18 ++++++++++++
.../iotdb/cluster/log/LogDispatcherTest.java | 10 +++++--
4 files changed, 50 insertions(+), 13 deletions(-)
diff --git a/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterConfig.java b/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterConfig.java
index 41bf77f..619318e 100644
--- a/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterConfig.java
+++ b/cluster/src/main/java/org/apache/iotdb/cluster/config/ClusterConfig.java
@@ -45,7 +45,7 @@ public class ClusterConfig {
@ClusterConsistent private String clusterName = "default";
- @ClusterConsistent private boolean useAsyncServer = false;
+ @ClusterConsistent private boolean useAsyncServer = true;
private boolean useAsyncApplier = true;
diff --git a/cluster/src/test/java/org/apache/iotdb/cluster/client/async/AsyncClientPoolTest.java b/cluster/src/test/java/org/apache/iotdb/cluster/client/async/AsyncClientPoolTest.java
index 7a4e57a..5d8c997 100644
--- a/cluster/src/test/java/org/apache/iotdb/cluster/client/async/AsyncClientPoolTest.java
+++ b/cluster/src/test/java/org/apache/iotdb/cluster/client/async/AsyncClientPoolTest.java
@@ -8,12 +8,15 @@ import org.apache.iotdb.cluster.client.async.AsyncDataClient.FactoryAsync;
import org.apache.iotdb.cluster.common.TestAsyncClient;
import org.apache.iotdb.cluster.common.TestAsyncClientFactory;
import org.apache.iotdb.cluster.common.TestUtils;
+import org.apache.iotdb.cluster.config.ClusterConfig;
import org.apache.iotdb.cluster.config.ClusterDescriptor;
import org.apache.iotdb.cluster.rpc.thrift.Node;
import org.apache.iotdb.cluster.rpc.thrift.RaftService.AsyncClient;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TBinaryProtocol.Factory;
+import org.junit.After;
+import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
@@ -32,6 +35,20 @@ public class AsyncClientPoolTest {
@Mock private AsyncClientFactory testAsyncClientFactory;
+ private ClusterConfig config = ClusterDescriptor.getInstance().getConfig();
+ private boolean isAsyncServer;
+
+ @Before
+ public void setUp() {
+ isAsyncServer = config.isUseAsyncServer();
+ config.setUseAsyncServer(true);
+ }
+
+ @After
+ public void tearDown() {
+ config.setUseAsyncServer(isAsyncServer);
+ }
+
@Test
public void testTestClient() throws IOException {
testAsyncClientFactory = new TestAsyncClientFactory();
@@ -94,7 +111,7 @@ public class AsyncClientPoolTest {
@Test
public void testMaxClient() throws IOException {
int maxClientNum = ClusterDescriptor.getInstance().getConfig().getMaxClientPerNodePerMember();
- ClusterDescriptor.getInstance().getConfig().setMaxClientPerNodePerMember(5);
+ config.setMaxClientPerNodePerMember(5);
testAsyncClientFactory = new TestAsyncClientFactory();
AsyncClientPool asyncClientPool = new AsyncClientPool(testAsyncClientFactory);
@@ -114,7 +131,7 @@ public class AsyncClientPoolTest {
t.start();
t.interrupt();
assertNull(reference.get());
- ClusterDescriptor.getInstance().getConfig().setMaxClientPerNodePerMember(maxClientNum);
+ config.setMaxClientPerNodePerMember(maxClientNum);
}
@Test
@@ -122,7 +139,7 @@ public class AsyncClientPoolTest {
int maxClientPerNodePerMember =
ClusterDescriptor.getInstance().getConfig().getMaxClientPerNodePerMember();
try {
- ClusterDescriptor.getInstance().getConfig().setMaxClientPerNodePerMember(10);
+ config.setMaxClientPerNodePerMember(10);
testAsyncClientFactory = new TestAsyncClientFactory();
AsyncClientPool asyncClientPool = new AsyncClientPool(testAsyncClientFactory);
@@ -154,9 +171,7 @@ public class AsyncClientPoolTest {
}
assertNotNull(client);
} finally {
- ClusterDescriptor.getInstance()
- .getConfig()
- .setMaxClientPerNodePerMember(maxClientPerNodePerMember);
+ config.setMaxClientPerNodePerMember(maxClientPerNodePerMember);
}
}
@@ -165,7 +180,7 @@ public class AsyncClientPoolTest {
int maxClientPerNodePerMember =
ClusterDescriptor.getInstance().getConfig().getMaxClientPerNodePerMember();
try {
- ClusterDescriptor.getInstance().getConfig().setMaxClientPerNodePerMember(1);
+ config.setMaxClientPerNodePerMember(1);
testAsyncClientFactory = new TestAsyncClientFactory();
AsyncClientPool asyncClientPool = new AsyncClientPool(testAsyncClientFactory);
@@ -177,9 +192,7 @@ public class AsyncClientPoolTest {
assertNotEquals(clients.get(0), clients.get(1));
} finally {
- ClusterDescriptor.getInstance()
- .getConfig()
- .setMaxClientPerNodePerMember(maxClientPerNodePerMember);
+ config.setMaxClientPerNodePerMember(maxClientPerNodePerMember);
}
}
diff --git a/cluster/src/test/java/org/apache/iotdb/cluster/client/async/AsyncDataClientTest.java b/cluster/src/test/java/org/apache/iotdb/cluster/client/async/AsyncDataClientTest.java
index 1694446..4d32f8e 100644
--- a/cluster/src/test/java/org/apache/iotdb/cluster/client/async/AsyncDataClientTest.java
+++ b/cluster/src/test/java/org/apache/iotdb/cluster/client/async/AsyncDataClientTest.java
@@ -6,6 +6,8 @@ package org.apache.iotdb.cluster.client.async;
import org.apache.iotdb.cluster.client.async.AsyncDataClient.SingleManagerFactory;
import org.apache.iotdb.cluster.common.TestUtils;
+import org.apache.iotdb.cluster.config.ClusterConfig;
+import org.apache.iotdb.cluster.config.ClusterDescriptor;
import org.apache.iotdb.cluster.rpc.thrift.Node;
import org.apache.iotdb.cluster.server.RaftServer;
@@ -14,6 +16,8 @@ import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.async.TAsyncClientManager;
import org.apache.thrift.protocol.TBinaryProtocol.Factory;
import org.apache.thrift.transport.TNonblockingSocket;
+import org.junit.After;
+import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
@@ -25,6 +29,20 @@ import static org.junit.Assert.assertTrue;
public class AsyncDataClientTest {
+ private ClusterConfig config = ClusterDescriptor.getInstance().getConfig();
+ private boolean isAsyncServer;
+
+ @Before
+ public void setUp() {
+ isAsyncServer = config.isUseAsyncServer();
+ config.setUseAsyncServer(true);
+ }
+
+ @After
+ public void tearDown() {
+ config.setUseAsyncServer(isAsyncServer);
+ }
+
@Test
public void test() throws IOException, TException {
AsyncClientPool asyncClientPool = new AsyncClientPool(new SingleManagerFactory(new Factory()));
diff --git a/cluster/src/test/java/org/apache/iotdb/cluster/log/LogDispatcherTest.java b/cluster/src/test/java/org/apache/iotdb/cluster/log/LogDispatcherTest.java
index a0dc673..281e084 100644
--- a/cluster/src/test/java/org/apache/iotdb/cluster/log/LogDispatcherTest.java
+++ b/cluster/src/test/java/org/apache/iotdb/cluster/log/LogDispatcherTest.java
@@ -108,7 +108,10 @@ public class LogDispatcherTest {
@Override
public long appendEntry(AppendEntryRequest request) throws TException {
try {
- return mockedAppendEntry(request);
+ if (!downNode.contains(node)) {
+ return mockedAppendEntry(request);
+ }
+ return -1;
} catch (UnknownLogTypeException e) {
throw new TException(e);
}
@@ -117,7 +120,10 @@ public class LogDispatcherTest {
@Override
public long appendEntries(AppendEntriesRequest request) throws TException {
try {
- return mockedAppendEntries(request);
+ if (!downNode.contains(node)) {
+ return mockedAppendEntries(request);
+ }
+ return -1;
} catch (UnknownLogTypeException e) {
throw new TException(e);
}