Skip to content

Commit 0b2c81b

Browse files
authored
Merge branch 'master' into codex/upgrade-thrift-0.25
2 parents 10ba8ea + 1a83481 commit 0b2c81b

96 files changed

Lines changed: 4306 additions & 965 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎LICENSE-binary‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ io.swagger.core.v3:swagger-integration-jakarta:2.2.50
232232
io.swagger.core.v3:swagger-jaxrs2-jakarta:2.2.50
233233
io.swagger.core.v3:swagger-models-jakarta:2.2.50
234234
jakarta.inject:jakarta.inject-api:2.0.1
235-
at.yawk.lz4:lz4-java:1.11.1
235+
at.yawk.lz4:lz4-java:1.11.4
236236
com.github.ben-manes.caffeine:caffeine:2.9.3
237237
org.eclipse.jetty:jetty-http:12.0.36
238238
org.eclipse.jetty:jetty-io:12.0.36

‎docker/ReadMe.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ apache-iotdb-2.0.11-SNAPSHOT-all-bin.zip
7070
apache-iotdb-2.0.11-SNAPSHOT-ainode-bin.zip
7171
```
7272

73-
To avoid mannually copy these files, you can run our `do-docker-build.sh` with argument `-b`.
73+
To avoid manually copy these files, you can run our `do-docker-build.sh` with argument `-b`.
7474

7575
# How to run IoTDB server
7676

@@ -85,7 +85,7 @@ docker run -d --name iotdb -p 6667:6667 -p 31999:31999 -p 8181:8181 -p 5555:5555
8585
```shell
8686
docker run -d --name iotdb -p 6667:6667 -p 31999:31999 -p 8181:8181 -p 5555:5555 -p 9003:9003 -p 40010:40010 apache/iotdb:<version>
8787
```
88-
Since 1.0.0, see [offical documents.](https://iotdb.apache.org/UserGuide/latest/QuickStart/QuickStart.html)
88+
Since 1.0.0, see [official documents.](https://iotdb.apache.org/UserGuide/latest/QuickStart/QuickStart.html)
8989

9090
# How to register AINode to IoTDB cluster
9191

‎docker/src/main/Dockerfile-1.0.0-confignode‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# specific language governing permissions and limitations
1717
# under the License.
1818
#
19-
FROM eclipse-temurin:17-jre-focal
19+
FROM eclipse-temurin:17-jre-jammy
2020
ARG version=1.0.0
2121
ARG target=apache-iotdb-${version}-all-bin
2222

‎docker/src/main/Dockerfile-1.0.0-datanode‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# specific language governing permissions and limitations
1717
# under the License.
1818
#
19-
FROM eclipse-temurin:17-jre-focal
19+
FROM eclipse-temurin:17-jre-jammy
2020
ARG version=1.0.0
2121
ARG target=apache-iotdb-${version}-all-bin
2222

‎docker/src/main/Dockerfile-1.0.0-standalone‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#
1919
# syntax=docker/dockerfile:1
2020

21-
FROM eclipse-temurin:17-jre-focal
21+
FROM eclipse-temurin:17-jre-jammy
2222
ARG version=1.0.0
2323
ARG target=apache-iotdb-${version}-all-bin
2424

‎docker/src/main/Dockerfile-1c1d‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
# docker build context is the root path of the repository
2121

22-
FROM eclipse-temurin:17-jre-focal
22+
FROM eclipse-temurin:17-jre-jammy
2323

2424
ADD distribution/target/apache-iotdb-*-all-bin.zip /
2525
ADD docker/src/main/DockerCompose/start-1c1d.sh /

‎iotdb-client/client-py/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You have to install thrift (>=0.14.1) before using the package.
4747

4848
First, download the latest package: `pip3 install apache-iotdb`
4949

50-
You can get an example of using the package to read and write data at here: [Example](https://github.com/apache/iotdb/blob/master/iotdb-client/client-py/SessionExample.py)
50+
You can get an example of using the package to read and write data at here: [Example](https://github.com/apache/iotdb/blob/master/iotdb-client/client-py/session_example.py)
5151

5252
An example of aligned timeseries: [Aligned Timeseries Session Example](https://github.com/apache/iotdb/blob/master/iotdb-client/client-py/SessionAlignedTimeseriesExample.py)
5353

@@ -576,7 +576,7 @@ This folder is ignored from git and should **never be pushed to git!**
576576

577577
### Session Client & Example
578578

579-
We packed up the Thrift interface in `client-py/src/iotdb/Session.py` (similar with its Java counterpart), also provided an example file `client-py/src/SessionExample.py` of how to use the session module. please read it carefully.
579+
We packed up the Thrift interface in `client-py/iotdb/Session.py` (similar with its Java counterpart), also provided an example file `client-py/session_example.py` of how to use the session module. please read it carefully.
580580

581581

582582
Or, another simple example:
@@ -606,7 +606,7 @@ To run all defined tests just type `pytest .` in the root folder.
606606

607607

608608

609-
### Futher Tools
609+
### Further Tools
610610

611611
[black](https://pypi.org/project/black/) and [flake8](https://pypi.org/project/flake8/) are installed for autoformatting and linting.
612612
Both can be run by `black .` or `flake8 .` respectively.

‎iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/TSStatusCode.java‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,28 @@ public enum TSStatusCode {
371371
EXTERNAL_SERVICE_INSTANCE_CREATE_ERROR(2303),
372372
CANNOT_DROP_BUILTIN_EXTERNAL_SERVICE(2304),
373373
CANNOT_DROP_RUNNING_EXTERNAL_SERVICE(2305),
374+
375+
// LBAC
376+
LBAC_ACCESS_DENIED(2400),
377+
COMPONENT_NOT_EXISTS(2401),
378+
COMPONENT_ALREADY_EXISTS(2402),
379+
POLICY_NOT_EXISTS(2403),
380+
POLICY_ALREADY_EXISTS(2404),
381+
LABEL_NOT_EXISTS(2405),
382+
LABEL_ALREADY_EXISTS(2406),
383+
ELEMENT_NOT_EXISTS(2407),
384+
ELEMENT_ALREADY_EXISTS(2408),
385+
INVALID_COMPONENT_TYPE(2409),
386+
INVALID_ELEMENT_CLAUSE(2410),
387+
INVALID_COMMENT_TARGET(2411),
388+
COMPONENT_IS_REFERENCED(2412),
389+
POLICY_IS_REFERENCED(2413),
390+
LABEL_IS_REFERENCED(2414),
391+
POLICY_NOT_SET(2415),
392+
POLICY_ALREADY_SET(2416),
393+
POLICY_CONFLICT(2417),
394+
LABEL_NOT_SET(2418),
395+
INVALID_LABEL_VALUE(2419),
374396
;
375397

376398
private final int statusCode;

‎iotdb-core/confignode/src/main/i18n/en/org/apache/iotdb/confignode/i18n/ManagerMessages.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ private ManagerMessages() {}
611611
public static final String LOG_GOT_IOEXCEPTION_DESERIALIZE_USE_ROLE_FILE_TYPE_ARG_1B548759 = "Got IOException when deserialize use&role file, type:{}";
612612
public static final String LOG_GOT_IOEXCEPTION_DESERIALIZE_ROLELIST_1354F29E = "Got IOException when deserialize roleList";
613613
public static final String LOG_GOT_EXCEPTION_DESERIALIZING_TTL_FILE_F806EB40 = "Got exception when deserializing ttl file";
614+
public static final String LOG_UNSUPPORTED_USER_ROLE_PROFILE_VERSION_ARG_THIS_NODE_SUPPORTS_UP_TO_ARG_2ABBF4FA = "Unsupported user/role profile version %d, this node supports up to %d";
614615
public static final String LOG_UNRECOGNIZED_NODE_TYPE_CANNOT_DESERIALIZE_MTREE_GIVEN_BUFFER_5CF3121B = "Unrecognized node type. Cannot deserialize MTree from given buffer";
615616
public static final String LOG_GOT_IOEXCEPTION_CONSTRUCT_DATABASE_TREE_49436621 = "Got IOException when construct database Tree";
616617
public static final String LOG_GOT_IOEXCEPTION_DESERIALIZE_TEMPLATE_INFO_49EE617E = "Got IOException when deserialize template info";

‎iotdb-core/confignode/src/main/i18n/en/org/apache/iotdb/confignode/i18n/ProcedureMessages.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,8 @@ private ProcedureMessages() {}
12001200
public static final String LOG_FINISHED_SUBPROCEDURE_PID_ARG_RESUME_PROCESSING_PPID_ARG_93ED990B = "Finished subprocedure pid={}, resume processing ppid={}";
12011201
public static final String LOG_HALT_PID_ARG_ACTIVECOUNT_ARG_411F3EBF = "Halt pid={}, activeCount={}";
12021202
public static final String LOG_EXCEPTION_HAPPENED_WORKER_ARG_EXECUTE_PROCEDURE_ARG_6E3AD27D = "Exception happened when worker {} execute procedure {}";
1203+
public static final String LOG_FAILED_TO_COMMIT_RELEASE_ARG_FOR_TABLE_ARG_ARG_TO_DATANODE_FAILURE_RESULTS_ARG_55386572 =
1204+
"Failed to commit-release {} for table {}.{} to DataNode, failure results: {}";
12031205
public static final String LOG_WORKER_STUCK_ARG_ARG_RUN_TIME_ARG_MS_FB612354 = "Worker stuck {}({}), run time {} ms";
12041206
public static final String LOG_PROCEDURE_WORKERS_ARG_RUNNING_ARG_RUNNING_STUCK_1565936D = "Procedure workers: {} is running, {} is running and stuck";
12051207
public static final String LOG_ADD_PROCEDURE_ARG_AS_ARG_TH_ROLLBACK_STEP_C71B2184 = "Add procedure {} as the {}th rollback step";

0 commit comments

Comments
 (0)