Ring-k commented on a change in pull request #1387:
URL: https://github.com/apache/incubator-iotdb/pull/1387#discussion_r444700377
##########
File path:
cluster/src/main/java/org/apache/iotdb/cluster/server/member/DataGroupMember.java
##########
@@ -1610,6 +1623,34 @@ public void getAggrResult(GetAggrResultRequest request,
resultHandler.onComplete(resultBuffers);
}
+ /**
+ * Check if the given measurements are registered or not
+ * @param header
+ * @param timeseriesList
+ * @param resultHandler
+ * @throws TException
+ */
+ @Override
+ public void getUnregisteredTimeseries(Node header, List<String>
timeseriesList,
+ AsyncMethodCallback<List<String>> resultHandler) throws TException {
+ if (!syncLeader()) {
+ resultHandler.onError(new LeaderUnknownException(getAllNodes()));
+ return;
+ }
+ List<String> result = new ArrayList<>();
+ for (String seriesPath : timeseriesList) {
+ try {
+ List<String> path =
MManager.getInstance().getAllTimeseriesName(seriesPath);
+ if (path.size() != 1) {
+ throw new MetadataException("Size of the path is not 1.");
Review comment:
Thanks for your suggestion. The information of the series will be
included.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]