You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "shuolinl (via GitHub)" <gi...@apache.org> on 2023/12/22 06:52:39 UTC
[PR] fix insert&delete cases dead data. [iotdb]
shuolinl opened a new pull request, #11773:
URL: https://github.com/apache/iotdb/pull/11773
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix insert&delete cases dead data. [iotdb]
Posted by "JackieTien97 (via GitHub)" <gi...@apache.org>.
JackieTien97 merged PR #11773:
URL: https://github.com/apache/iotdb/pull/11773
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix insert&delete cases dead data. [iotdb]
Posted by "JackieTien97 (via GitHub)" <gi...@apache.org>.
JackieTien97 commented on code in PR #11773:
URL: https://github.com/apache/iotdb/pull/11773#discussion_r1434829495
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/AnalyzeVisitor.java:
##########
@@ -2579,10 +2580,15 @@ public Analysis visitPipeEnrichedStatement(
return analysis;
}
+ /*
+ * This function will acquire a read lock on datanode's schema cache.
+ */
private void validateSchema(
Analysis analysis, InsertBaseStatement insertStatement, MPPQueryContext context) {
final long startTime = System.nanoTime();
try {
+ DataNodeSchemaCache.getInstance().takeReadLock();
+ context.setAcquiredLock(true);
Review Comment:
Better to move these lines to the two `validate` methods of `SchemaValidator`. We should taka account for load.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix insert&delete cases dead data. [iotdb]
Posted by "shuolinl (via GitHub)" <gi...@apache.org>.
shuolinl commented on PR #11773:
URL: https://github.com/apache/iotdb/pull/11773#issuecomment-1867336540
You can reproduce the problem using the steps below:
add code at the end of function validateSchema()
```java
try {
Thread.sleep(10 * 1000);
} catch (InterruptedException e) {
// nothing
}
```
run create and insert in one cli:
```java
CREATE TIMESERIES root.db.d1.s1 WITH DATATYPE=INT32, ENCODING=PLAIN
INSERT INTO root.db.d1(timestamp,s1) values(1,1)
```
run delete on another cli:
```java
delete timeseries root.db.d1.s1
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org