You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2023/09/02 00:35:32 UTC
[iotdb] branch auth updated (eed42670c65 -> abe117461dc)
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a change to branch auth
in repository https://gitbox.apache.org/repos/asf/iotdb.git
from eed42670c65 Fix some
new 3cbd3a81b49 add license
new e1de60e268b Merge branch 'auth' of https://github.com/apache/iotdb into auth
add 9669a68b185 Feature add insertRecords method to rest service (#10832)
add d11974558d1 [IOTDB-6082] Improve disk space metrics (#10983)
add 1357cede80d Pipe: fix some minor concurrent issues & collect pipe's logs into a separate file (#10990)
add f869a95cfef [IOTDB-6119] Add ConfigNode leader service check (#10985)
add 39819a2bd1d [IOTDB-6061] Fix the instability failure caused by initServer in IoTConsensus UT not binding to the corresponding port (#10991)
add 656c462af56 [IOTDB-6129] ConfigNode restarts without relying on Seed-ConfigNode (#10988)
add 35736cc6782 Pipe: Fix start-time and end-time parameters not working when extracting history data (#11001)
add 155c181ad6e fix (#10993)
add b1ac40b42b9 fix wal npe when memTable has flushed. (#10899)
add d5450a1e564 [IOTDB-6134] Fill statement content in show queries for inner schema fetch
add d1c0cf9050c Optimize python client package and release process (#11007)
new abe117461dc Merge remote-tracking branch 'origin/master' into auth
The 3 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/client-python.yml | 3 +
.gitignore | 9 +-
.../iotdb/it/env/cluster/env/AbstractEnv.java | 40 +++++--
.../it/cluster/IoTDBClusterNodeErrorStartUpIT.java | 27 -----
.../it/cluster/IoTDBClusterRestartIT.java | 29 ++++-
.../confignode/it/utils/ConfigNodeTestUtils.java | 7 --
iotdb-client/client-py/.gitignore | 2 +
iotdb-client/client-py/SessionPoolExample.py | 21 ++--
iotdb-client/client-py/iotdb/IoTDBContainer.py | 9 +-
iotdb-client/client-py/iotdb/SessionPool.py | 60 +++++++---
iotdb-client/client-py/pom.xml | 62 +++++++++-
iotdb-client/client-py/release.sh | 19 +--
iotdb-client/client-py/requirements_dev.txt | 2 +-
iotdb-client/client-py/{ => resources}/setup.py | 2 +-
iotdb-client/client-py/tests/test_session.py | 60 +++++-----
iotdb-client/client-py/tests/test_session_pool.py | 33 +++++-
.../client/sync/SyncConfigNodeClientPool.java | 3 -
.../confignode/conf/SystemPropertiesUtils.java | 4 +-
.../statemachine/ConfigRegionStateMachine.java | 56 ++++-----
.../iotdb/confignode/manager/ConfigManager.java | 23 ----
.../apache/iotdb/confignode/manager/IManager.java | 3 -
.../manager/consensus/ConsensusManager.java | 25 ++--
.../iotdb/confignode/manager/cq/CQManager.java | 9 --
.../iotdb/confignode/service/ConfigNode.java | 54 ++-------
.../thrift/ConfigNodeRPCServiceProcessor.java | 11 --
.../org/apache/iotdb/consensus/IStateMachine.java | 5 +
.../apache/iotdb/consensus/config/RatisConfig.java | 48 +++++++-
.../ratis/ApplicationStateMachineProxy.java | 5 +
.../apache/iotdb/consensus/ratis/utils/Utils.java | 3 +
.../simple/SimpleConsensusServerImpl.java | 1 +
.../apache/iotdb/consensus/iot/ReplicateTest.java | 129 ++++++++++++---------
.../assembly/resources/conf/logback-datanode.xml | 40 +++----
.../java/org/apache/iotdb/db/conf/IoTDBConfig.java | 3 +-
.../config/constant/PipeConnectorConstant.java | 4 +-
.../db/pipe/connector/protocol/IoTDBConnector.java | 7 +-
.../protocol/airgap/IoTDBAirGapConnector.java | 4 +-
.../thrift/async/IoTDBThriftAsyncConnector.java | 4 +-
.../thrift/sync/IoTDBThriftSyncConnector.java | 4 +-
.../apache/iotdb/db/pipe/event/EnrichedEvent.java | 9 +-
.../common/tablet/PipeRawTabletInsertionEvent.java | 2 +-
.../common/tsfile/PipeTsFileInsertionEvent.java | 5 +
.../realtime/epoch/TsFileEpochManager.java | 6 +-
.../iotdb/db/protocol/client/ConfigNodeClient.java | 9 +-
.../db/protocol/rest/utils/InsertRowDataUtils.java | 105 +++++++++++++++++
.../rest/v1/handler/RequestValidationHandler.java | 12 ++
.../v1/handler/StatementConstructionHandler.java | 60 +++++++++-
.../protocol/rest/v1/impl/RestApiServiceImpl.java | 47 ++++++++
.../rest/v2/handler/RequestValidationHandler.java | 12 ++
.../v2/handler/StatementConstructionHandler.java | 61 +++++++++-
.../protocol/rest/v2/impl/RestApiServiceImpl.java | 47 ++++++++
.../impl/DataNodeInternalRPCServiceImpl.java | 4 +
.../analyze/schema/ClusterSchemaFetchExecutor.java | 14 ++-
.../dataregion/memtable/TsFileProcessor.java | 3 +-
.../storageengine/dataregion/wal/node/WALNode.java | 25 ++--
.../src/test/resources/datanode1conf/logback.xml | 40 +++----
.../src/test/resources/datanode2conf/logback.xml | 40 +++----
.../src/test/resources/datanode3conf/logback.xml | 40 +++----
.../exception/IllegalPrivilegeException.java | 19 +++
.../apache/iotdb/commons/utils/AuthUtilsTest.java | 19 +++
.../openapi/src/main/openapi3/iotdb_rest_v1.yaml | 52 +++++++++
.../openapi/src/main/openapi3/iotdb_rest_v2.yaml | 52 +++++++++
.../src/main/thrift/confignode.thrift | 14 ---
62 files changed, 1067 insertions(+), 460 deletions(-)
rename iotdb-client/client-py/{ => resources}/setup.py (98%)
create mode 100644 iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/rest/utils/InsertRowDataUtils.java
[iotdb] 02/03: Merge branch 'auth' of https://github.com/apache/iotdb into auth
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch auth
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit e1de60e268b44bd99591defe46e707782dc47d29
Merge: 3cbd3a81b49 eed42670c65
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Sat Sep 2 08:34:35 2023 +0800
Merge branch 'auth' of https://github.com/apache/iotdb into auth
.../iotdb/confignode/persistence/AuthorInfo.java | 55 ++++++++---------
.../org/apache/iotdb/db/auth/AuthorityChecker.java | 52 +++-------------
.../iotdb/db/auth/ClusterAuthorityFetcher.java | 71 ++++++++++------------
.../apache/iotdb/db/auth/IAuthorityFetcher.java | 2 +-
.../plan/statement/sys/AuthorStatement.java | 38 +++++++++---
.../db/queryengine/plan/analyze/AnalyzeTest.java | 11 +++-
.../iotdb/commons/auth/entity/PrivilegeType.java | 4 ++
.../iotdb/commons/auth/user/BasicUserManager.java | 2 +-
.../org/apache/iotdb/commons/utils/AuthUtils.java | 61 ++++++++++---------
9 files changed, 143 insertions(+), 153 deletions(-)
[iotdb] 03/03: Merge remote-tracking branch 'origin/master' into auth
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch auth
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit abe117461dc7503159e94cd46c949928f1dc154b
Merge: e1de60e268b d1c0cf9050c
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Sat Sep 2 08:35:13 2023 +0800
Merge remote-tracking branch 'origin/master' into auth
.github/workflows/client-python.yml | 3 +
.gitignore | 9 +-
.../iotdb/it/env/cluster/env/AbstractEnv.java | 40 +++++--
.../it/cluster/IoTDBClusterNodeErrorStartUpIT.java | 27 -----
.../it/cluster/IoTDBClusterRestartIT.java | 29 ++++-
.../confignode/it/utils/ConfigNodeTestUtils.java | 7 --
iotdb-client/client-py/.gitignore | 2 +
iotdb-client/client-py/SessionPoolExample.py | 21 ++--
iotdb-client/client-py/iotdb/IoTDBContainer.py | 9 +-
iotdb-client/client-py/iotdb/SessionPool.py | 60 +++++++---
iotdb-client/client-py/pom.xml | 62 +++++++++-
iotdb-client/client-py/release.sh | 19 +--
iotdb-client/client-py/requirements_dev.txt | 2 +-
iotdb-client/client-py/{ => resources}/setup.py | 2 +-
iotdb-client/client-py/tests/test_session.py | 60 +++++-----
iotdb-client/client-py/tests/test_session_pool.py | 33 +++++-
.../client/sync/SyncConfigNodeClientPool.java | 3 -
.../confignode/conf/SystemPropertiesUtils.java | 4 +-
.../statemachine/ConfigRegionStateMachine.java | 56 ++++-----
.../iotdb/confignode/manager/ConfigManager.java | 23 ----
.../apache/iotdb/confignode/manager/IManager.java | 3 -
.../manager/consensus/ConsensusManager.java | 25 ++--
.../iotdb/confignode/manager/cq/CQManager.java | 9 --
.../iotdb/confignode/service/ConfigNode.java | 54 ++-------
.../thrift/ConfigNodeRPCServiceProcessor.java | 11 --
.../org/apache/iotdb/consensus/IStateMachine.java | 5 +
.../apache/iotdb/consensus/config/RatisConfig.java | 48 +++++++-
.../ratis/ApplicationStateMachineProxy.java | 5 +
.../apache/iotdb/consensus/ratis/utils/Utils.java | 3 +
.../simple/SimpleConsensusServerImpl.java | 1 +
.../apache/iotdb/consensus/iot/ReplicateTest.java | 129 ++++++++++++---------
.../assembly/resources/conf/logback-datanode.xml | 40 +++----
.../java/org/apache/iotdb/db/conf/IoTDBConfig.java | 3 +-
.../config/constant/PipeConnectorConstant.java | 4 +-
.../db/pipe/connector/protocol/IoTDBConnector.java | 7 +-
.../protocol/airgap/IoTDBAirGapConnector.java | 4 +-
.../thrift/async/IoTDBThriftAsyncConnector.java | 4 +-
.../thrift/sync/IoTDBThriftSyncConnector.java | 4 +-
.../apache/iotdb/db/pipe/event/EnrichedEvent.java | 9 +-
.../common/tablet/PipeRawTabletInsertionEvent.java | 2 +-
.../common/tsfile/PipeTsFileInsertionEvent.java | 5 +
.../realtime/epoch/TsFileEpochManager.java | 6 +-
.../iotdb/db/protocol/client/ConfigNodeClient.java | 9 +-
.../db/protocol/rest/utils/InsertRowDataUtils.java | 105 +++++++++++++++++
.../rest/v1/handler/RequestValidationHandler.java | 12 ++
.../v1/handler/StatementConstructionHandler.java | 60 +++++++++-
.../protocol/rest/v1/impl/RestApiServiceImpl.java | 47 ++++++++
.../rest/v2/handler/RequestValidationHandler.java | 12 ++
.../v2/handler/StatementConstructionHandler.java | 61 +++++++++-
.../protocol/rest/v2/impl/RestApiServiceImpl.java | 47 ++++++++
.../impl/DataNodeInternalRPCServiceImpl.java | 4 +
.../analyze/schema/ClusterSchemaFetchExecutor.java | 14 ++-
.../dataregion/memtable/TsFileProcessor.java | 3 +-
.../storageengine/dataregion/wal/node/WALNode.java | 25 ++--
.../src/test/resources/datanode1conf/logback.xml | 40 +++----
.../src/test/resources/datanode2conf/logback.xml | 40 +++----
.../src/test/resources/datanode3conf/logback.xml | 40 +++----
.../openapi/src/main/openapi3/iotdb_rest_v1.yaml | 52 +++++++++
.../openapi/src/main/openapi3/iotdb_rest_v2.yaml | 52 +++++++++
.../src/main/thrift/confignode.thrift | 14 ---
60 files changed, 1029 insertions(+), 460 deletions(-)
[iotdb] 01/03: add license
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch auth
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 3cbd3a81b49644150aa76814f3493fb41694c428
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Sat Sep 2 08:34:31 2023 +0800
add license
---
.../commons/exception/IllegalPrivilegeException.java | 19 +++++++++++++++++++
.../org/apache/iotdb/commons/utils/AuthUtilsTest.java | 19 +++++++++++++++++++
2 files changed, 38 insertions(+)
diff --git a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/IllegalPrivilegeException.java b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/IllegalPrivilegeException.java
index 943e4cc7430..475edefaaee 100644
--- a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/IllegalPrivilegeException.java
+++ b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/exception/IllegalPrivilegeException.java
@@ -1,3 +1,22 @@
+/*
+ * 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.commons.exception;
import org.apache.iotdb.commons.auth.entity.PrivilegeType;
diff --git a/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/utils/AuthUtilsTest.java b/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/utils/AuthUtilsTest.java
index ffd8000e924..b0048e09bd0 100644
--- a/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/utils/AuthUtilsTest.java
+++ b/iotdb-core/node-commons/src/test/java/org/apache/iotdb/commons/utils/AuthUtilsTest.java
@@ -1,3 +1,22 @@
+/*
+ * 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.commons.utils;
import org.apache.iotdb.commons.auth.AuthException;