Skip to content

Conversation

@jt2594838
Copy link
Contributor

No description provided.

public static final String JDBC_DRIVER_NAME = "org.apache.iotdb.jdbc.IoTDBDriver";

public static boolean rpcThriftCompressionEnable = false;
public static boolean rpcThriftCompressionEnable = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why set it as true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is said in thrift that when the thrift structures are large and sent frequently, it will be overall better to enable compression, so I made the default compression true.

# Conflicts:
#	session/src/main/java/org/apache/iotdb/session/Session.java
@jt2594838 jt2594838 added the Module - Cluster PRs for the cluster module label May 18, 2020
jt2594838 added 2 commits May 18, 2020 10:42
# Conflicts:
#	server/src/main/java/org/apache/iotdb/db/engine/upgrade/UpgradeTask.java
#	server/src/main/java/org/apache/iotdb/db/engine/version/SimpleFileVersionController.java
jt2594838 and others added 8 commits May 18, 2020 17:48
Co-authored-by: Haonan <hhaonan@outlook.com>
Co-authored-by: Haonan <hhaonan@outlook.com>
Co-authored-by: Haonan <hhaonan@outlook.com>
Co-authored-by: Haonan <hhaonan@outlook.com>
# Conflicts:
#	server/src/main/java/org/apache/iotdb/db/qp/constant/SQLConstant.java
@jixuan1989
Copy link
Member

Seems new files are defined.
partitionDirectFileVersions, partitionMaxFileVersions.

Is there some design docs?

@jt2594838
Copy link
Contributor Author

Seems new files are defined.
partitionDirectFileVersions, partitionMaxFileVersions.

Is there some design docs?

These are not persisted because they can be calculated by TsFileResources and there are no new files.

TsFileResource existingTsFile = iterator.next();
if (newTsFile.getHistoricalVersions().containsAll(existingTsFile.getHistoricalVersions())
&& !newTsFile.getHistoricalVersions().equals(existingTsFile.getHistoricalVersions())
&& existingTsFile.tryWriteLock()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do we handle if trylock failed? ignore?

Copy link
Contributor Author

@jt2594838 jt2594838 May 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and we will leave this for merge.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where to leave the message?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment added

Copy link
Member

@jixuan1989 jixuan1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work. See my comments.
many of them are minor issues but some of them are critical, IMO.


((LeafMNode) measurementNode)
.updateCachedLast(plan.composeTimeValuePair(i), true, latestFlushedTime);
if (measurementNode != null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why check null here? is there a bug before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is because we do not always have MNodes and data on the same node together in the distributed version.

jt2594838 and others added 6 commits May 21, 2020 14:01
# Conflicts:
#	server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
#	server/src/main/java/org/apache/iotdb/db/qp/strategy/LogicalGenerator.java
#	server/src/test/java/org/apache/iotdb/db/qp/plan/PhysicalPlanTest.java
#	session/src/main/java/org/apache/iotdb/session/Session.java
# Conflicts:
#	server/src/test/java/org/apache/iotdb/db/qp/plan/PhysicalPlanTest.java
jt2594838 and others added 14 commits June 3, 2020 10:43
# Conflicts:
#	server/src/main/antlr4/org/apache/iotdb/db/qp/strategy/SqlBase.g4
#	server/src/main/java/org/apache/iotdb/db/auth/authorizer/BasicAuthorizer.java
#	server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
#	server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
#	server/src/main/java/org/apache/iotdb/db/qp/physical/crud/InsertPlan.java
#	server/src/main/java/org/apache/iotdb/db/qp/strategy/LogicalGenerator.java
#	server/src/test/java/org/apache/iotdb/db/qp/plan/PhysicalPlanTest.java
#	server/src/test/java/org/apache/iotdb/db/tools/WalCheckerTest.java
# Conflicts:
#	server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
#	server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
# Conflicts:
#	server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
#	server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
#	server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
# Conflicts:
#	server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
#	server/src/main/java/org/apache/iotdb/db/qp/strategy/LogicalGenerator.java
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 8, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 2 Security Hotspots to review)
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

warning The version of Java (1.8.0_242) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11.
Read more here

@qiaojialin qiaojialin merged commit 1079e2e into master Jun 8, 2020
@qiaojialin qiaojialin deleted the cluster_premerge branch June 8, 2020 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module - Cluster PRs for the cluster module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants