-
Notifications
You must be signed in to change notification settings - Fork 976
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
[IOTDB-1117][Distributed]Batched creation and fetch of RemoteSeriesRe… #2875
Conversation
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 job, but there are still some small issues. I think the definition and usage of IMultReader
are confusing, especially that some classes are defined as Mult
but only have Single
behavior.
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/ClusterReaderFactory.java
Outdated
Show resolved
Hide resolved
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/ClusterReaderFactory.java
Outdated
Show resolved
Hide resolved
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/ClusterReaderFactory.java
Show resolved
Hide resolved
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/mult/IMultBatchReader.java
Show resolved
Hide resolved
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/mult/MultBatchReader.java
Outdated
Show resolved
Hide resolved
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/mult/MultManagedMergeReader.java
Outdated
Show resolved
Hide resolved
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/mult/MultPriorityMergeReader.java
Outdated
Show resolved
Hide resolved
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/mult/RemoteMultSeriesReader.java
Outdated
Show resolved
Hide resolved
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/mult/RemoteMultSeriesReader.java
Outdated
Show resolved
Hide resolved
I refactor code, please review again. |
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/mult/MultPriorityMergeReader.java
Outdated
Show resolved
Hide resolved
cluster/src/main/java/org/apache/iotdb/cluster/query/reader/mult/AbstractMultPointReader.java
Outdated
Show resolved
Hide resolved
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.
I suggest to output exception information through logger, don’t ignore
try { | ||
paths.add(new PartialPath(fullPath)); | ||
} catch (IllegalPathException e) { | ||
// 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.
I suggest to output exception information through logger, don’t 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.
done
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.
Thinks!
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.
LGTM
TSDataType dataType = queryPlan.getDeduplicatedDataTypes().get(i); | ||
AssignPathManagedMergeReader assignPathManagedMergeReader = | ||
new AssignPathManagedMergeReader(partialPath.getFullPath(), dataType); | ||
for (AbstractMultPointReader multPointReader : multPointReaders) { |
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.
I think AbstractMultPointReader -> AbstractMultiPointReader is better.
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.
Mult can mean multiple times,
iPointReader and Multi are easy to confuse,
So Mult can express abstract classes better here.
Test results show that query glitches are reduced by 30%.