-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Premerge for the distributed version #1169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # 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
| public static final String JDBC_DRIVER_NAME = "org.apache.iotdb.jdbc.IoTDBDriver"; | ||
|
|
||
| public static boolean rpcThriftCompressionEnable = false; | ||
| public static boolean rpcThriftCompressionEnable = true; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
# 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
server/src/main/java/org/apache/iotdb/db/qp/executor/PlanExecutor.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/iotdb/db/query/dataset/groupby/LocalGroupByExecutor.java
Outdated
Show resolved
Hide resolved
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>
…r-iotdb into cluster_premerge
# Conflicts: # server/src/main/java/org/apache/iotdb/db/qp/constant/SQLConstant.java
|
Seems new files are defined. Is there some design docs? |
These are not persisted because they can be calculated by TsFileResources and there are no new files. |
server/src/main/java/org/apache/iotdb/db/auth/role/BasicRoleManager.java
Show resolved
Hide resolved
server/src/main/java/org/apache/iotdb/db/auth/user/BasicUserManager.java
Show resolved
Hide resolved
server/src/main/java/org/apache/iotdb/db/engine/modification/ModificationFile.java
Show resolved
Hide resolved
| TsFileResource existingTsFile = iterator.next(); | ||
| if (newTsFile.getHistoricalVersions().containsAll(existingTsFile.getHistoricalVersions()) | ||
| && !newTsFile.getHistoricalVersions().equals(existingTsFile.getHistoricalVersions()) | ||
| && existingTsFile.tryWriteLock()) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment added
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
Show resolved
Hide resolved
jixuan1989
left a comment
There was a problem hiding this 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.
server/src/main/java/org/apache/iotdb/db/auth/user/BasicUserManager.java
Show resolved
Hide resolved
server/src/main/java/org/apache/iotdb/db/auth/user/BasicUserManager.java
Show resolved
Hide resolved
server/src/main/java/org/apache/iotdb/db/auth/role/BasicRoleManager.java
Show resolved
Hide resolved
|
|
||
| ((LeafMNode) measurementNode) | ||
| .updateCachedLast(plan.composeTimeValuePair(i), true, latestFlushedTime); | ||
| if (measurementNode != null) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
server/src/main/java/org/apache/iotdb/db/qp/physical/sys/AuthorPlan.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/iotdb/db/qp/strategy/LogicalGenerator.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/iotdb/db/query/dataset/ShowTimeSeriesResult.java
Outdated
Show resolved
Hide resolved
tsfile/src/main/java/org/apache/iotdb/tsfile/utils/ReadWriteIOUtils.java
Show resolved
Hide resolved
# 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
…into cluster_premerge
# Conflicts: # server/src/test/java/org/apache/iotdb/db/qp/plan/PhysicalPlanTest.java
# 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
|
Kudos, SonarCloud Quality Gate passed!
|
No description provided.