| /* | |
| * Licensed to the Apache Software Foundation (ASF) under one | |
| * or more contributor license agreements. See the NOTICE file | |
| * distributed with this work for additional information | |
| * regarding copyright ownership. The ASF licenses this file | |
| * to you under the Apache License, Version 2.0 (the | |
| * "License"); you may not use this file except in compliance | |
| * with the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, | |
| * software distributed under the License is distributed on an | |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| * KIND, either express or implied. See the License for the | |
| * specific language governing permissions and limitations | |
| * under the License. | |
| */ | |
| include "common.thrift" | |
| include "client.thrift" | |
| namespace java org.apache.iotdb.mpp.rpc.thrift | |
| namespace py iotdb.thrift.datanode | |
| struct TCreateSchemaRegionReq { | |
| 1: required common.TRegionReplicaSet regionReplicaSet | |
| 2: required string storageGroup | |
| } | |
| struct TCreateDataRegionReq { | |
| 1: required common.TRegionReplicaSet regionReplicaSet | |
| 2: required string storageGroup | |
| } | |
| struct TInvalidateCacheReq { | |
| 1: required bool storageGroup | |
| 2: required string fullPath | |
| } | |
| struct TRegionLeaderChangeReq { | |
| 1: required common.TConsensusGroupId regionId | |
| 2: required common.TDataNodeLocation newLeaderNode | |
| } | |
| struct TRegionLeaderChangeResp { | |
| 1: required common.TSStatus status | |
| 2: required i64 consensusLogicalTimestamp | |
| } | |
| struct TRegionMigrateResult { | |
| 1: optional common.TConsensusGroupId regionId | |
| 2: optional common.TSStatus migrateResult | |
| 3: optional map<common.TDataNodeLocation, common.TRegionMigrateFailedType> failedNodeAndReason | |
| 4: required common.TRegionMaintainTaskStatus taskStatus | |
| } | |
| struct TNotifyRegionMigrationReq { | |
| 1: required i64 logicalClock | |
| 2: required i64 timestamp | |
| 3: optional common.TConsensusGroupId regionId | |
| 4: optional bool isStart | |
| 5: required list<common.TConsensusGroupId> currentRegionOperations | |
| } | |
| struct TCreatePeerReq { | |
| 1: required common.TConsensusGroupId regionId | |
| 2: required list<common.TDataNodeLocation> regionLocations | |
| 3: required string storageGroup | |
| } | |
| struct TMaintainPeerReq { | |
| 1: required common.TConsensusGroupId regionId | |
| 2: required common.TDataNodeLocation destNode | |
| 3: required i64 taskId | |
| } | |
| struct TResetPeerListReq { | |
| 1: required common.TConsensusGroupId regionId | |
| 2: required list<common.TDataNodeLocation> correctLocations | |
| } | |
| struct TFragmentInstanceId { | |
| 1: required string queryId | |
| 2: required i32 fragmentId | |
| 3: required string instanceId | |
| } | |
| struct TGetDataBlockRequest { | |
| 1: required TFragmentInstanceId sourceFragmentInstanceId | |
| 2: required i32 startSequenceId | |
| 3: required i32 endSequenceId | |
| // Index of upstream SinkChannel | |
| 4: required i32 index | |
| // Optional byte range for fetching one serialized TsBlock in fragments. | |
| 5: optional i32 offset | |
| } | |
| struct TGetDataBlockResponse { | |
| 1: required list<binary> tsBlocks | |
| // The start offset of the next fragment. It is set only when the last element in tsBlocks is a fragment. | |
| 2: optional i32 offset | |
| // Total serialized length of the TsBlock when the response starts its first fragment. | |
| 3: optional i32 totalLength | |
| } | |
| struct TAcknowledgeDataBlockEvent { | |
| 1: required TFragmentInstanceId sourceFragmentInstanceId | |
| 2: required i32 startSequenceId | |
| 3: required i32 endSequenceId | |
| // Index of upstream SinkChannel | |
| 4: required i32 index | |
| } | |
| struct TCloseSinkChannelEvent { | |
| 1: required TFragmentInstanceId sourceFragmentInstanceId | |
| // Index of upstream SinkChannel | |
| 2: required i32 index | |
| } | |
| struct TNewDataBlockEvent { | |
| 1: required TFragmentInstanceId targetFragmentInstanceId | |
| 2: required string targetPlanNodeId | |
| 3: required TFragmentInstanceId sourceFragmentInstanceId | |
| 4: required i32 startSequenceId | |
| 5: required list<i64> blockSizes | |
| } | |
| struct TEndOfDataBlockEvent { | |
| 1: required TFragmentInstanceId targetFragmentInstanceId | |
| 2: required string targetPlanNodeId | |
| 3: required TFragmentInstanceId sourceFragmentInstanceId | |
| 4: required i32 lastSequenceId | |
| } | |
| struct TFragmentInstance { | |
| 1: required binary body | |
| } | |
| struct TPlanNode { | |
| 1: required binary body | |
| } | |
| // Issued and checked by one DataNode process using its own monotonic clock. Opaque to peers. | |
| struct TQueryAdmissionToken { | |
| 1: required string issuer | |
| 2: required i64 deadlineNanos | |
| 3: required i64 validityMs | |
| } | |
| struct TSendFragmentInstanceReq { | |
| 1: required TFragmentInstance fragmentInstance | |
| 2: optional common.TConsensusGroupId consensusGroupId | |
| // Attempt metadata is absent for a legacy coordinator. Do not change the binary FI body. | |
| 3: optional i32 queryAttemptId | |
| 4: optional TQueryAdmissionToken admissionToken | |
| // The receiver anchors the remaining duration to its own clock at RPC receipt. | |
| 5: optional i64 remainingQueryTimeMs | |
| } | |
| struct TSendFragmentInstanceResp { | |
| 1: required bool accepted | |
| 2: optional string message | |
| 3: optional bool needRetry | |
| 4: optional common.TSStatus status | |
| } | |
| struct TSendSinglePlanNodeReq { | |
| 1: required TPlanNode planNode | |
| 2: required common.TConsensusGroupId consensusGroupId | |
| } | |
| struct TSendSinglePlanNodeResp { | |
| 1: required bool accepted | |
| 2: optional string message | |
| 3: optional common.TSStatus status | |
| } | |
| struct TSendBatchPlanNodeReq { | |
| 1: required list<TSendSinglePlanNodeReq> requests; | |
| } | |
| struct TSendBatchPlanNodeResp { | |
| 1: required list<TSendSinglePlanNodeResp> responses; | |
| } | |
| struct TFetchFragmentInstanceInfoReq { | |
| 1: required TFragmentInstanceId fragmentInstanceId | |
| } | |
| // TODO: Need to supply more fields according to implementation | |
| struct TFragmentInstanceInfoResp { | |
| 1: required string state | |
| 2: optional i64 endTime | |
| 3: optional list<string> failedMessages | |
| 4: optional list<binary> failureInfoList | |
| 5: optional common.TSStatus errorCode | |
| } | |
| struct TCancelQueryReq { | |
| 1: required string queryId | |
| 2: required list<TFragmentInstanceId> fragmentInstanceIds | |
| 3: required bool hasThrowable | |
| // Close this attempt even if some of its planned FIs were never dispatched. | |
| 4: optional i32 queryAttemptId | |
| 5: optional TQueryAdmissionToken admissionToken | |
| } | |
| struct TCancelPlanFragmentReq { | |
| 1: required string planFragmentId | |
| } | |
| struct TCancelFragmentInstanceReq { | |
| 1: required TFragmentInstanceId fragmentInstanceId | |
| } | |
| struct TCancelResp { | |
| 1: required bool cancelled | |
| 2: optional string message | |
| } | |
| struct TSchemaFetchRequest { | |
| 1: required binary serializedPathPatternTree | |
| 2: required bool isPrefixMatchPath | |
| } | |
| struct TSchemaFetchResponse { | |
| 1: required binary serializedSchemaTree | |
| } | |
| struct TCleanDataNodeCacheReq { | |
| 1: required list<common.TDataNodeLocation> dataNodeLocations | |
| } | |
| struct TCreateFunctionInstanceReq { | |
| 1: required binary udfInformation | |
| 2: optional binary jarFile | |
| } | |
| struct TDropFunctionInstanceReq { | |
| 1: required string functionName | |
| 2: required bool needToDeleteJar | |
| 3: optional common.Model model | |
| } | |
| struct TCreateTriggerInstanceReq { | |
| 1: required binary triggerInformation | |
| 2: optional binary jarFile | |
| } | |
| struct TActiveTriggerInstanceReq { | |
| 1: required string triggerName | |
| } | |
| struct TInactiveTriggerInstanceReq { | |
| 1: required string triggerName | |
| } | |
| struct TDropTriggerInstanceReq { | |
| 1: required string triggerName | |
| 2: required bool needToDeleteJarFile | |
| } | |
| struct TUpdateTriggerLocationReq { | |
| 1: required string triggerName | |
| 2: required common.TDataNodeLocation newLocation | |
| } | |
| struct TFireTriggerReq { | |
| 1: required string triggerName | |
| 2: required binary tablet | |
| 3: required i8 triggerEvent | |
| } | |
| struct TFireTriggerResp { | |
| 1: required bool foundExecutor | |
| 2: required i32 fireResult | |
| } | |
| struct TCreatePipePluginInstanceReq { | |
| 1: required binary pipePluginMeta | |
| 2: required binary jarFile | |
| } | |
| struct TDropPipePluginInstanceReq { | |
| 1: required string pipePluginName | |
| 2: required bool needToDeleteJar | |
| } | |
| struct TInvalidatePermissionCacheReq { | |
| 1: required string username | |
| 2: required string roleName | |
| 3: optional bool needDisconnect | |
| } | |
| struct TDataNodeHeartbeatReq { | |
| 1: required i64 heartbeatTimestamp | |
| 2: required bool needJudgeLeader | |
| 3: required bool needSamplingLoad | |
| 4: required i64 timeSeriesQuotaRemain | |
| 5: optional list<i32> schemaRegionIds | |
| 6: optional list<i32> dataRegionIds | |
| 7: optional map<string, common.TSpaceQuota> spaceQuotaUsage | |
| 8: optional bool needPipeMetaList | |
| 9: optional i64 deviceQuotaRemain | |
| 10: optional TDataNodeActivation activation | |
| 11: optional set<common.TEndPoint> configNodeEndPoints | |
| 12: optional map<i32, common.TDataNodeLocation> dataNodes | |
| 13: optional map<i32, set<i32>> topology | |
| 14: required i64 logicalClock | |
| 15: optional list<common.TConsensusGroupId> currentRegionOperations | |
| // Using 8 bit to represent 8 bool | |
| // lowest bit: enable separation of admin powers | |
| 16: optional byte booleanVariables1 | |
| 17: optional i64 fenceThresholdMs | |
| } | |
| struct TDataNodeActivation { | |
| 1: required bool activated | |
| 2: required i64 deviceNumRemain | |
| 3: required i64 sensorNumRemain | |
| } | |
| struct TDataNodeHeartbeatResp { | |
| 1: required i64 heartbeatTimestamp | |
| 2: required string status | |
| 3: optional string statusReason | |
| 4: optional map<common.TConsensusGroupId, bool> judgedLeaders | |
| 5: optional common.TLoadSample loadSample | |
| 6: optional map<i32, i64> regionSeriesUsageMap | |
| 7: optional map<i32, i64> regionDeviceUsageMap | |
| 8: optional map<i32, i64> regionDisk | |
| // TODO: schemaLimitLevel is not used from 1.3.0, keep it for compatibility | |
| 9: optional TSchemaLimitLevel schemaLimitLevel | |
| 10: optional list<binary> pipeMetaList | |
| 11: optional string activateStatus | |
| 12: optional set<common.TEndPoint> confirmedConfigNodeEndPoints | |
| 13: optional map<common.TConsensusGroupId, i64> consensusLogicalTimeMap | |
| 14: optional list<bool> pipeCompletedList | |
| 15: optional list<i64> pipeRemainingEventCountList | |
| 16: optional list<double> pipeRemainingTimeList | |
| 17: optional map<i32, i64> dataRegionRawDataSize | |
| 18: optional list<i32> pipeDegradedStatusList | |
| 19: optional list<map<string, i64>> pipeRecentFailureList | |
| 20: optional list<common.TPipeCompletedDataRegion> pipeCompletedDataRegionList | |
| } | |
| struct TPipeHeartbeatReq { | |
| 1: required i64 heartbeatId | |
| } | |
| enum TSchemaLimitLevel{ | |
| DEVICE, | |
| TIMESERIES | |
| } | |
| struct TRegionRouteReq { | |
| 1: required i64 timestamp | |
| 2: required map<common.TConsensusGroupId, common.TRegionReplicaSet> regionRouteMap | |
| } | |
| struct TUpdateClusterTopologyReq { | |
| 1: required map<i32, common.TDataNodeLocation> dataNodes | |
| 2: required map<i32, set<i32>> topology | |
| } | |
| struct TUpdateTemplateReq { | |
| 1: required byte type | |
| 2: required binary templateInfo | |
| } | |
| struct TUpdateTableReq { | |
| 1: required byte type | |
| 2: required binary tableInfo | |
| 3: optional string oldName | |
| 4: optional TUpdateTree2TableView updateTree2TableViewInfo | |
| } | |
| struct TUpdateTree2TableView{ | |
| 1: required byte tree2TableOperationType | |
| 2: optional string treePath | |
| 3: optional bool isRestrict | |
| 4: optional i32 tagNum | |
| } | |
| struct TInvalidateTableCacheReq { | |
| 1: required string database | |
| 2: required string tableName | |
| } | |
| struct TInvalidateColumnCacheReq { | |
| 1: required string database, | |
| 2: required string tableName, | |
| 3: required string columnName, | |
| 4: required bool isAttributeColumn | |
| } | |
| struct TDeleteColumnDataReq { | |
| 1: required list<common.TConsensusGroupId> regionIdList | |
| 2: required string tableName, | |
| 3: required string columnName, | |
| 4: required bool isAttributeColumn | |
| 5: optional i64 procedureId | |
| 6: optional bool trackModFileProgress | |
| } | |
| struct TDeleteDataOrDevicesForDropTableReq { | |
| 1: required list<common.TConsensusGroupId> regionIdList | |
| 2: required string tableName | |
| 3: optional i64 procedureId | |
| 4: optional bool trackModFileProgress | |
| } | |
| struct TDropTableModProgress { | |
| 1: required i64 writtenModFileCount | |
| // Unset until the region has identified all mod files involved in this deletion. | |
| 2: optional i64 remainingModFileCount | |
| } | |
| struct TGetDropTableModProgressReq { | |
| 1: required i64 procedureId | |
| 2: required list<common.TConsensusGroupId> regionIdList | |
| 3: optional bool clearProgress | |
| } | |
| struct TGetDropTableModProgressResp { | |
| 1: required common.TSStatus status | |
| 2: optional map<i32, TDropTableModProgress> regionProgress | |
| } | |
| struct TTableDeviceDeletionWithPatternAndFilterReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required string tableName | |
| 3: required binary patternInfo | |
| 4: required binary filterInfo | |
| } | |
| struct TTableDeviceDeletionWithPatternOrModReq { | |
| 1: required list<common.TConsensusGroupId> regionIdList | |
| 2: required string tableName | |
| 3: required binary patternOrModInfo | |
| } | |
| struct TTableDeviceInvalidateCacheReq { | |
| 1: required string database | |
| 2: required string tableName | |
| 3: required binary patternInfo | |
| } | |
| struct TTsFilePieceReq { | |
| 1: required binary body | |
| 2: required string uuid | |
| 3: required common.TConsensusGroupId consensusGroupId | |
| 4: optional i32 sliceIndex | |
| 5: optional i32 sliceCount | |
| 6: optional i32 originBodySize | |
| } | |
| struct TLoadCommandReq { | |
| 1: required i32 commandType | |
| 2: required string uuid | |
| 3: optional bool isGeneratedByPipe | |
| 4: optional map<common.TTimePartitionSlot, binary> timePartition2ProgressIndex | |
| } | |
| struct TAttributeUpdateReq { | |
| 1: required map<i32, TSchemaRegionAttributeInfo> attributeUpdateMap | |
| } | |
| struct TSchemaRegionAttributeInfo { | |
| 1: required i64 version | |
| 2: required string database | |
| 3: required binary body | |
| } | |
| struct TDeviceViewReq { | |
| 1: required list<common.TConsensusGroupId> regionIds | |
| 2: required list<string> prefixPattern | |
| 3: required i32 tagNumber | |
| 4: required bool restrict | |
| 5: optional set<string> requiredMeasurements | |
| 6: optional bool tolerateTypeMismatch | |
| } | |
| struct TDeviceViewResp { | |
| 1: required common.TSStatus status | |
| 2: required map<string, byte> deviewViewFieldTypeMap | |
| } | |
| struct TLoadResp { | |
| 1: required bool accepted | |
| 2: optional string message | |
| 3: optional common.TSStatus status | |
| } | |
| struct TConstructSchemaBlackListReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required binary pathPatternTree | |
| } | |
| struct TRollbackSchemaBlackListReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required binary pathPatternTree | |
| } | |
| struct TInvalidateMatchedSchemaCacheReq { | |
| 1: required binary pathPatternTree | |
| 2: optional bool needLock | |
| } | |
| struct TFetchSchemaBlackListReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required binary pathPatternTree | |
| } | |
| struct TFetchSchemaBlackListResp { | |
| 1: required common.TSStatus status | |
| 2: required binary pathPatternTree | |
| } | |
| struct TDeleteDataForDeleteSchemaReq { | |
| 1: required list<common.TConsensusGroupId> dataRegionIdList | |
| 2: required binary pathPatternTree | |
| 3: optional bool isGeneratedByPipe | |
| 4: optional i64 procedureId | |
| 5: optional bool trackModFileProgress | |
| } | |
| struct TDeleteTimeSeriesReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required binary pathPatternTree | |
| 3: optional bool isGeneratedByPipe | |
| } | |
| struct TAlterEncodingCompressorReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required binary pathPatternTree | |
| 3: required bool ifExists | |
| 4: optional byte encoding | |
| 5: optional byte compressor | |
| } | |
| struct TAlterTimeSeriesReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required string queryId | |
| 3: required binary measurementPath | |
| 4: required byte operationType | |
| 5: required binary updateInfo | |
| } | |
| struct TConstructSchemaBlackListWithTemplateReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required map<string, list<i32>> templateSetInfo | |
| } | |
| struct TRollbackSchemaBlackListWithTemplateReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required map<string, list<i32>> templateSetInfo | |
| } | |
| struct TDeactivateTemplateReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required map<string, list<i32>> templateSetInfo | |
| 3: optional bool isGeneratedByPipe | |
| } | |
| struct TCountPathsUsingTemplateReq { | |
| 1: required i32 templateId | |
| 2: required binary patternTree | |
| 3: required list<common.TConsensusGroupId> schemaRegionIdList | |
| } | |
| struct TCountPathsUsingTemplateResp { | |
| 1: required common.TSStatus status | |
| 2: optional i64 count | |
| } | |
| struct TCheckSchemaRegionUsingTemplateReq{ | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| } | |
| struct TCheckSchemaRegionUsingTemplateResp { | |
| 1: required common.TSStatus status | |
| 2: required bool result | |
| } | |
| struct TCheckTimeSeriesExistenceReq { | |
| 1: required binary patternTree | |
| 2: required list<common.TConsensusGroupId> schemaRegionIdList | |
| } | |
| struct TCheckTimeSeriesExistenceResp { | |
| 1: required common.TSStatus status | |
| 2: optional bool exists | |
| } | |
| struct TPushPipeMetaReq { | |
| 1: required list<binary> pipeMetas | |
| } | |
| struct TPushPipeMetaResp { | |
| 1: required common.TSStatus status | |
| 2: optional list<TPushPipeMetaRespExceptionMessage> exceptionMessages | |
| } | |
| struct TPushPipeMetaRespExceptionMessage { | |
| 1: required string pipeName | |
| 2: required string message | |
| 3: required i64 timeStamp | |
| 4: optional i64 creationTime | |
| } | |
| struct TPushSinglePipeMetaReq { | |
| 1: optional binary pipeMeta // Should not set both to null. | |
| 2: optional string pipeNameToDrop // If it is not null, pipe with indicated name on datanode will be dropped. | |
| } | |
| struct TPushMultiPipeMetaReq { | |
| 1: optional list<binary> pipeMetas // Should not set both to null. | |
| 2: optional list<string> pipeNamesToDrop // If it is not null, pipes with indicated names on datanode will be dropped. | |
| } | |
| struct TPushTopicMetaReq { | |
| 1: required list<binary> topicMetas | |
| } | |
| struct TPushSingleTopicMetaReq { | |
| 1: optional binary topicMeta // Should not set both to null. | |
| 2: optional string topicNameToDrop | |
| 3: optional bool isTableModel | |
| } | |
| struct TPushMultiTopicMetaReq { | |
| 1: optional list<binary> topicMetas // Should not set both to null. | |
| 2: optional list<string> topicNamesToDrop | |
| } | |
| struct TPushTopicMetaResp { | |
| 1: required common.TSStatus status | |
| 2: optional list<TPushTopicMetaRespExceptionMessage> exceptionMessages | |
| } | |
| struct TPushTopicMetaRespExceptionMessage { | |
| 1: required string topicName | |
| 2: required string message | |
| 3: required i64 timeStamp | |
| } | |
| // Dedicated subscription owner-lease heartbeat (CN -> DN), decoupled from the node heartbeat. | |
| // Carries a relative remaining duration; the DataNode derives the local expire time on its own | |
| // clock (leaseExpireAt = localNow + leaseRemainingMs), so no absolute timestamp is compared across | |
| // ConfigNode and DataNode clocks. | |
| struct TTopicOwnerLeaseEntry { | |
| 1: required string topicName | |
| 2: required string ownerId | |
| 3: required i64 ownerEpoch | |
| 4: required i64 leaseRemainingMs | |
| 5: optional bool isTableModel | |
| } | |
| struct TPushTopicOwnerLeaseReq { | |
| 1: required list<TTopicOwnerLeaseEntry> ownerLeases | |
| } | |
| struct TPushConsumerGroupMetaReq { | |
| 1: required list<binary> consumerGroupMetas | |
| } | |
| struct TPushSingleConsumerGroupMetaReq { | |
| 1: optional binary consumerGroupMeta // Should not set both to null. | |
| 2: optional string consumerGroupNameToDrop | |
| } | |
| struct TPushConsumerGroupMetaResp { | |
| 1: required common.TSStatus status | |
| 2: optional list<TPushConsumerGroupMetaRespExceptionMessage> exceptionMessages | |
| } | |
| struct TPushConsumerGroupMetaRespExceptionMessage { | |
| 1: required string consumerGroupId | |
| 2: required string message | |
| 3: required i64 timeStamp | |
| } | |
| struct TPullCommitProgressReq { | |
| 1: optional bool includeConsensusQueueReadiness // Request a point-in-time queue binding snapshot. | |
| } | |
| // One entry means all matching local DataRegion queues for this subscription are bound. | |
| struct TConsensusSubscriptionQueueReadiness { | |
| 1: required string topicName | |
| 2: required string consumerGroupId | |
| 3: required bool tableModel | |
| } | |
| struct TPullCommitProgressResp { | |
| 1: required common.TSStatus status | |
| 2: optional map<string, binary> commitRegionProgress | |
| 3: optional map<string, binary> subscriptionProgress | |
| 4: optional list<TConsensusSubscriptionQueueReadiness> consensusQueueReadiness | |
| } | |
| struct TSyncSubscriptionProgressReq { | |
| 1: required string consumerGroupId | |
| 2: required string topicName | |
| 3: required string regionId | |
| 4: required i64 physicalTime | |
| 5: required i32 writerNodeId | |
| 6: required i64 localSeq | |
| } | |
| struct TSubscriptionRuntimeStateEntry { | |
| 1: required common.TConsensusGroupId regionId | |
| 2: required i64 runtimeVersion | |
| 3: required i32 preferredWriterNodeId | |
| 4: required bool active | |
| 5: required list<i32> activeWriterNodeIds | |
| } | |
| struct TPushSubscriptionRuntimeReq { | |
| 1: required list<TSubscriptionRuntimeStateEntry> runtimeStates | |
| } | |
| struct TConstructViewSchemaBlackListReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required binary pathPatternTree | |
| } | |
| struct TRollbackViewSchemaBlackListReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required binary pathPatternTree | |
| } | |
| struct TDeleteViewSchemaReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required binary pathPatternTree | |
| 3: optional bool isGeneratedByPipe | |
| } | |
| struct TAlterViewReq { | |
| 1: required list<common.TConsensusGroupId> schemaRegionIdList | |
| 2: required list<binary> viewBinaryList | |
| 3: optional bool isGeneratedByPipe | |
| } | |
| // ==================================================== | |
| // CQ | |
| // ==================================================== | |
| struct TExecuteCQ { | |
| 1: required string queryBody | |
| 2: required i64 startTime | |
| 3: required i64 endTime | |
| 4: required i64 timeout | |
| 5: required string zoneId | |
| 6: required string cqId | |
| 7: required string username | |
| } | |
| // ==================================================== | |
| // AI Node | |
| // ==================================================== | |
| struct TFetchMoreDataReq{ | |
| 1: required i64 queryId | |
| 2: optional i64 timeout | |
| 3: optional i32 fetchSize | |
| } | |
| struct TFetchMoreDataResp{ | |
| 1: required common.TSStatus status | |
| 2: optional list<binary> tsDataset | |
| 3: optional bool hasMoreData | |
| } | |
| struct TFetchTimeseriesReq { | |
| 1: required string queryBody | |
| 2: optional i32 fetchSize | |
| 3: optional i64 timeout | |
| } | |
| struct TFetchTimeseriesResp { | |
| 1: required common.TSStatus status | |
| 2: optional i64 queryId | |
| 3: optional list<string> columnNameList | |
| 4: optional list<string> columnTypeList | |
| 5: optional map<string, i32> columnNameIndexMap | |
| 6: optional list<binary> tsDataset | |
| 7: optional bool hasMoreData | |
| } | |
| struct TAuditLogReq { | |
| 1: required string username | |
| 2: required i64 userId | |
| 3: required string cliHostname | |
| 4: required string auditEventType | |
| 5: required string operationType | |
| 6: required string privilegeType | |
| 7: required bool result | |
| 8: required string database | |
| 9: required string sqlString | |
| 10: required string log | |
| 11: required i32 cnId | |
| } | |
| /** | |
| * BEGIN: Data Partition Table Integrity Check Structures | |
| **/ | |
| struct TGetEarliestTimeslotsResp { | |
| 1: required common.TSStatus status | |
| 2: optional map<string, i64> databaseToEarliestTimeslot | |
| } | |
| struct TGenerateDataPartitionTableReq { | |
| 1: required set<string> databases | |
| } | |
| struct TGenerateDataPartitionTableResp { | |
| 1: required common.TSStatus status | |
| 2: required i32 errorCode | |
| 3: optional string message | |
| } | |
| struct TGenerateDataPartitionTableHeartbeatResp { | |
| 1: required common.TSStatus status | |
| 2: required i32 errorCode | |
| 3: optional string message | |
| 4: optional list<binary> databaseScopedDataPartitionTables | |
| 5: optional double progress | |
| } | |
| struct TGetDataPartitionTableGeneratorProgressResp { | |
| 1: required common.TSStatus status | |
| 2: required i32 errorCode | |
| 3: required double progress | |
| 4: optional string message | |
| } | |
| /** | |
| * END: Data Partition Table Integrity Check Structures | |
| **/ | |
| /** | |
| * BEGIN: Used for EXPLAIN ANALYZE | |
| **/ | |
| struct TOperatorStatistics{ | |
| 1: required string planNodeId | |
| 2: required string operatorType | |
| 3: required i64 totalExecutionTimeInNanos | |
| 4: required i64 nextCalledCount | |
| 5: required i64 hasNextCalledCount | |
| 6: required map<string,string> specifiedInfo | |
| 7: required i64 outputRows | |
| 8: required i64 memoryUsage | |
| 9: optional i64 count | |
| } | |
| struct TQueryStatistics { | |
| 1: i64 loadTimeSeriesMetadataDiskSeqCount, | |
| 2: i64 loadTimeSeriesMetadataDiskUnSeqCount, | |
| 3: i64 loadTimeSeriesMetadataMemSeqCount, | |
| 4: i64 loadTimeSeriesMetadataMemUnSeqCount, | |
| 5: i64 loadTimeSeriesMetadataAlignedDiskSeqCount, | |
| 6: i64 loadTimeSeriesMetadataAlignedDiskUnSeqCount, | |
| 7: i64 loadTimeSeriesMetadataAlignedMemSeqCount, | |
| 8: i64 loadTimeSeriesMetadataAlignedMemUnSeqCount, | |
| 9: i64 loadTimeSeriesMetadataDiskSeqTime, | |
| 10: i64 loadTimeSeriesMetadataDiskUnSeqTime, | |
| 11: i64 loadTimeSeriesMetadataMemSeqTime, | |
| 12: i64 loadTimeSeriesMetadataMemUnSeqTime, | |
| 13: i64 loadTimeSeriesMetadataAlignedDiskSeqTime, | |
| 14: i64 loadTimeSeriesMetadataAlignedDiskUnSeqTime, | |
| 15: i64 loadTimeSeriesMetadataAlignedMemSeqTime, | |
| 16: i64 loadTimeSeriesMetadataAlignedMemUnSeqTime, | |
| 17: i64 constructNonAlignedChunkReadersDiskCount, | |
| 18: i64 constructNonAlignedChunkReadersMemCount, | |
| 19: i64 constructAlignedChunkReadersDiskCount, | |
| 20: i64 constructAlignedChunkReadersMemCount, | |
| 21: i64 constructNonAlignedChunkReadersDiskTime, | |
| 22: i64 constructNonAlignedChunkReadersMemTime, | |
| 23: i64 constructAlignedChunkReadersDiskTime, | |
| 24: i64 constructAlignedChunkReadersMemTime, | |
| 25: i64 pageReadersDecodeAlignedDiskCount, | |
| 26: i64 pageReadersDecodeAlignedDiskTime, | |
| 27: i64 pageReadersDecodeAlignedMemCount, | |
| 28: i64 pageReadersDecodeAlignedMemTime, | |
| 29: i64 pageReadersDecodeNonAlignedDiskCount, | |
| 30: i64 pageReadersDecodeNonAlignedDiskTime, | |
| 31: i64 pageReadersDecodeNonAlignedMemCount, | |
| 32: i64 pageReadersDecodeNonAlignedMemTime, | |
| 33: i64 pageReaderMaxUsedMemorySize | |
| 34: i64 alignedTimeSeriesMetadataModificationCount | |
| 35: i64 alignedTimeSeriesMetadataModificationTime | |
| 36: i64 nonAlignedTimeSeriesMetadataModificationCount | |
| 37: i64 nonAlignedTimeSeriesMetadataModificationTime | |
| 38: i64 loadBloomFilterFromCacheCount | |
| 39: i64 loadBloomFilterFromDiskCount | |
| 40: i64 loadBloomFilterActualIOSize | |
| 41: i64 loadBloomFilterTime | |
| 42: i64 loadTimeSeriesMetadataFromCacheCount | |
| 43: i64 loadTimeSeriesMetadataFromDiskCount | |
| 44: i64 loadTimeSeriesMetadataActualIOSize | |
| 45: i64 loadChunkFromCacheCount | |
| 46: i64 loadChunkFromDiskCount | |
| 47: i64 loadChunkActualIOSize | |
| 48: i64 chunkWithMetadataErrorsCount | |
| 49: i64 timeSeriesIndexFilteredRows | |
| 50: i64 chunkIndexFilteredRows | |
| 51: i64 pageIndexFilteredRows | |
| 52: i64 rowScanFilteredRows | |
| } | |
| struct TFetchFragmentInstanceStatisticsReq { | |
| 1: required TFragmentInstanceId fragmentInstanceId | |
| } | |
| struct TFetchFragmentInstanceStatisticsResp { | |
| 1: required common.TSStatus status | |
| 2: optional TFragmentInstanceId fragmentInstanceId | |
| 3: optional string dataRegion | |
| 4: optional i64 startTimeInMS | |
| 5: optional i64 endTimeInMS | |
| 6: optional TQueryStatistics queryStatistics | |
| 7: optional map<string, TOperatorStatistics> operatorStatisticsMap | |
| 8: optional i64 initDataQuerySourceCost | |
| 9: optional i64 seqUnclosedNum | |
| 10: optional i64 seqClosednNum | |
| 11: optional i64 unseqClosedNum | |
| 12: optional i64 unseqUnclosedNum | |
| 13: optional i64 readyQueuedTime | |
| 14: optional i64 blockQueuedTime | |
| 15: optional string ip | |
| 16: optional string state | |
| 17: optional i32 initDataQuerySourceRetryCount | |
| } | |
| struct TKillQueryInstanceReq { | |
| 1: optional string queryId | |
| 2: optional string allowedUsername | |
| } | |
| struct TFetchDeviceEntrySegmentReq { | |
| 1: required string queryId | |
| 2: required string planNodeId | |
| 3: required i32 segmentId | |
| } | |
| struct TFetchDeviceEntrySegmentResp { | |
| 1: required common.TSStatus status | |
| 2: optional binary payload | |
| } | |
| /** | |
| * END: Used for EXPLAIN ANALYZE | |
| **/ | |
| service IDataNodeRPCService { | |
| // -----------------------------------For Data Node----------------------------------------------- | |
| /** | |
| * dispatch FragmentInstance to remote node for query request | |
| */ | |
| // Stateless: a delayed token request cannot create or reopen a query attempt. | |
| TQueryAdmissionToken fetchQueryAdmissionToken(1: i64 validityMs); | |
| TSendFragmentInstanceResp sendFragmentInstance(TSendFragmentInstanceReq req); | |
| /** | |
| * dispatch PlanNodes in batches to remote node for write request in order to save resource | |
| */ | |
| TSendBatchPlanNodeResp sendBatchPlanNode(TSendBatchPlanNodeReq req); | |
| TFragmentInstanceInfoResp fetchFragmentInstanceInfo(TFetchFragmentInstanceInfoReq req); | |
| TCancelResp cancelQuery(TCancelQueryReq req); | |
| TCancelResp cancelPlanFragment(TCancelPlanFragmentReq req); | |
| TCancelResp cancelFragmentInstance(TCancelFragmentInstanceReq req); | |
| TSchemaFetchResponse fetchSchema(TSchemaFetchRequest req); | |
| i32 getThriftMaxFrameSize(); | |
| TLoadResp sendTsFilePieceNode(TTsFilePieceReq req); | |
| TLoadResp sendLoadCommand(TLoadCommandReq req); | |
| common.TSStatus updateAttribute(TAttributeUpdateReq req); | |
| // -----------------------------------For Config Node----------------------------------------------- | |
| /** | |
| * Config node will create a schema region on a list of data nodes. | |
| * | |
| * @param data nodes of the schema region, and schema region id generated by config node | |
| */ | |
| common.TSStatus createSchemaRegion(TCreateSchemaRegionReq req) | |
| /** | |
| * Config node will create a data region on a list of data nodes. | |
| * | |
| * @param data nodes of the data region, and data region id generated by config node | |
| */ | |
| common.TSStatus createDataRegion(TCreateDataRegionReq req) | |
| /** | |
| * Config node will invalidate Partition Info cache. | |
| * | |
| * @param bool:isStorageGroup, string:fullPath | |
| */ | |
| common.TSStatus invalidatePartitionCache(TInvalidateCacheReq req) | |
| /** | |
| * Config node will invalidate last cache. | |
| * | |
| * @param string:database(without root) | |
| */ | |
| common.TSStatus invalidateLastCache(string database) | |
| /** | |
| * Config node will invalidate Schema Info cache. | |
| * | |
| * @param bool:isStorageGroup, string:fullPath | |
| */ | |
| common.TSStatus invalidateSchemaCache(TInvalidateCacheReq req) | |
| /** | |
| * Config node will delete a data/schema region of a certain storageGroup. | |
| * | |
| * @param data nodes of the data region, and data region id generated by config node | |
| */ | |
| common.TSStatus deleteRegion(common.TConsensusGroupId consensusGroupId) | |
| /** | |
| * Change the leader of specified RegionGroup to another DataNode | |
| * | |
| * @param The specified RegionGroup and the new leader DataNode | |
| */ | |
| TRegionLeaderChangeResp changeRegionLeader(TRegionLeaderChangeReq req) | |
| /** | |
| * Create a new Region peer in the given DataNode for the specified RegionGroup | |
| * | |
| * @param TCreatePeerReq which contains RegionId and its colleagues' locations | |
| */ | |
| common.TSStatus createNewRegionPeer(TCreatePeerReq req) | |
| /** | |
| * Add a Region peer to the specified RegionGroup | |
| * | |
| * @param TMaintainPeerReq which contains RegionId and the DataNodeLocation that selected to perform the add peer process | |
| */ | |
| common.TSStatus addRegionPeer(TMaintainPeerReq req) | |
| /** | |
| * Remove a Region peer from the specified RegionGroup | |
| * | |
| * @param TMaintainPeerReq which contains RegionId and the DataNodeLocation that selected to perform the remove peer process | |
| */ | |
| common.TSStatus removeRegionPeer(TMaintainPeerReq req) | |
| /** | |
| * Delete a Region peer in the given ConsensusGroup and all of its data on the specified DataNode | |
| * | |
| * @param TMaintainPeerReq which contains RegionId and the DataNodeLocation where the specified Region peer located | |
| */ | |
| common.TSStatus deleteOldRegionPeer(TMaintainPeerReq req) | |
| /** | |
| * Reset a consensus group's peer list | |
| */ | |
| common.TSStatus resetPeerList(TResetPeerListReq req); | |
| /** | |
| * Get the result of a region maintainance task | |
| */ | |
| TRegionMigrateResult getRegionMaintainResult(i64 taskId) | |
| /** | |
| * Notify the DataNode of the beginning or ending the migration of the specified RegionGroup | |
| */ | |
| common.TSStatus notifyRegionMigration(TNotifyRegionMigrationReq req) | |
| /** | |
| * Config node will clean DataNode cache, the Data node will not accept read/write request when disabled | |
| * @param data node location | |
| */ | |
| common.TSStatus cleanDataNodeCache(TCleanDataNodeCacheReq req) | |
| /** | |
| * Config node will stop and clear the Data node. | |
| */ | |
| common.TSStatus stopAndClearDataNode() | |
| /** | |
| * ConfigNode will ask DataNode for heartbeat in every few seconds. | |
| * | |
| * @param ConfigNode will send the latest config_node_list and load balancing policies in TDataNodeHeartbeatReq | |
| **/ | |
| TDataNodeHeartbeatResp getDataNodeHeartBeat(TDataNodeHeartbeatReq req) | |
| /** | |
| * ConfigNode will ask DataNode to update region cache | |
| * | |
| * @param ConfigNode will send timestamp and new regionRouteMap in TRegionRouteReq | |
| **/ | |
| common.TSStatus updateRegionCache(TRegionRouteReq req) | |
| /** | |
| * Config node will create a function on a list of data nodes. | |
| * | |
| * @param function name, function class name, and executable uris | |
| **/ | |
| common.TSStatus createFunction(TCreateFunctionInstanceReq req) | |
| /** | |
| * Config node will drop a function on a list of data nodes. | |
| * | |
| * @param function name | |
| **/ | |
| common.TSStatus dropFunction(TDropFunctionInstanceReq req) | |
| /** | |
| * Config node will create a trigger instance on data node. | |
| * | |
| * @param TriggerInformation, jar file. | |
| **/ | |
| common.TSStatus createTriggerInstance(TCreateTriggerInstanceReq req) | |
| /** | |
| * Config node will active a trigger instance on data node. | |
| * | |
| * @param trigger name. | |
| **/ | |
| common.TSStatus activeTriggerInstance(TActiveTriggerInstanceReq req) | |
| /** | |
| * Config node will inactive a trigger instance on data node. | |
| * | |
| * @param trigger name. | |
| **/ | |
| common.TSStatus inactiveTriggerInstance(TInactiveTriggerInstanceReq req) | |
| /** | |
| * Config node will drop a trigger on all online config nodes and data nodes. | |
| * | |
| * @param trigger name, whether need to delete jar | |
| **/ | |
| common.TSStatus dropTriggerInstance(TDropTriggerInstanceReq req) | |
| /** | |
| * Config node will renew DataNodeLocation of a stateful trigger. | |
| * | |
| * @param trigger name, new DataNodeLocation | |
| **/ | |
| common.TSStatus updateTriggerLocation (TUpdateTriggerLocationReq req) | |
| /** | |
| * Fire a stateful trigger on current data node. | |
| * | |
| * @param trigger name, tablet and event | |
| **/ | |
| TFireTriggerResp fireTrigger(TFireTriggerReq req) | |
| /** | |
| * Config node will invalidate permission Info cache. | |
| * | |
| * @param string:username, list<string>:roleList | |
| */ | |
| common.TSStatus invalidatePermissionCache(TInvalidatePermissionCacheReq req) | |
| /** | |
| * Enable separation of admin powers in datanode | |
| **/ | |
| common.TSStatus enableSeparationOfAdminPower() | |
| /** | |
| * Config node will create a pipe plugin on a list of data nodes. | |
| * | |
| * @param function name, function class name, and executable uris | |
| **/ | |
| common.TSStatus createPipePlugin(TCreatePipePluginInstanceReq req) | |
| /** | |
| * Config node will drop a pipe plugin on a list of data nodes. | |
| * | |
| * @param function name | |
| **/ | |
| common.TSStatus dropPipePlugin(TDropPipePluginInstanceReq req) | |
| /** | |
| * Config node will get built-in services info from data nodes. | |
| **/ | |
| common.TExternalServiceListResp getBuiltInService() | |
| /* Maintenance Tools */ | |
| common.TSStatus merge() | |
| common.TSStatus flush(common.TFlushReq req) | |
| common.TSStatus settle(common.TSettleReq req) | |
| common.TSStatus startRepairData() | |
| common.TSStatus stopRepairData() | |
| common.TSStatus clearCache(set<i32> cacheClearOptions) | |
| common.TShowConfigurationResp showConfiguration() | |
| common.TShowAppliedConfigurationsResp showAppliedConfigurations() | |
| common.TSStatus setConfiguration(common.TSetConfigurationReq req) | |
| common.TSStatus loadConfiguration() | |
| common.TSStatus setSystemStatus(string status) | |
| common.TSStatus killQueryInstance(TKillQueryInstanceReq req) | |
| /** | |
| * Config node will Set the TTL for the database on a list of data nodes. | |
| */ | |
| common.TSStatus setTTL(common.TSetTTLReq req) | |
| /** | |
| * Update template cache when template info or template set info is updated | |
| */ | |
| common.TSStatus updateTemplate(TUpdateTemplateReq req) | |
| /** | |
| * Construct schema black list in target schemaRegion to block R/W on matched timeseries | |
| */ | |
| common.TSStatus constructSchemaBlackList(TConstructSchemaBlackListReq req) | |
| /** | |
| * Remove the schema black list to recover R/W on matched timeseries | |
| */ | |
| common.TSStatus rollbackSchemaBlackList(TRollbackSchemaBlackListReq req) | |
| /** | |
| * Config node will invalidate Schema Info cache, which matched by given pathPatternTree. | |
| * | |
| * @param binary: pathPatternTree | |
| */ | |
| common.TSStatus invalidateMatchedSchemaCache(TInvalidateMatchedSchemaCacheReq req) | |
| /** | |
| * Config node will fetch the schema info in black list. | |
| * | |
| * @param binary: pathPatternTree | |
| */ | |
| TFetchSchemaBlackListResp fetchSchemaBlackList(TFetchSchemaBlackListReq req) | |
| /** | |
| * Config node inform this dataNode to execute a distribution data deleion queryengine task | |
| */ | |
| common.TSStatus deleteDataForDeleteSchema(TDeleteDataForDeleteSchemaReq req) | |
| /** | |
| * Delete matched timeseries and remove according schema black list in target schemRegion | |
| */ | |
| common.TSStatus deleteTimeSeries(TDeleteTimeSeriesReq req) | |
| /** | |
| * Alter matched timeseries to specific encoding and compressor in target schemaRegions | |
| */ | |
| common.TSStatus alterEncodingCompressor(TAlterEncodingCompressorReq req) | |
| /** | |
| * Alter timeseries measurement | |
| **/ | |
| common.TSStatus alterTimeSeriesDataType(TAlterTimeSeriesReq req) | |
| /** | |
| * Construct schema black list in target schemaRegion to block R/W on matched timeseries represent by template | |
| */ | |
| common.TSStatus constructSchemaBlackListWithTemplate(TConstructSchemaBlackListWithTemplateReq req) | |
| /** | |
| * Remove the schema black list to recover R/W on matched timeseries represent by template | |
| */ | |
| common.TSStatus rollbackSchemaBlackListWithTemplate(TRollbackSchemaBlackListWithTemplateReq req) | |
| /** | |
| * Deactivate template on device matched by input path pattern | |
| * and remove according template schema black list in target schemRegion | |
| */ | |
| common.TSStatus deactivateTemplate(TDeactivateTemplateReq req) | |
| TCountPathsUsingTemplateResp countPathsUsingTemplate(TCountPathsUsingTemplateReq req) | |
| TCheckSchemaRegionUsingTemplateResp checkSchemaRegionUsingTemplate(TCheckSchemaRegionUsingTemplateReq req) | |
| TCheckTimeSeriesExistenceResp checkTimeSeriesExistence(TCheckTimeSeriesExistenceReq req) | |
| common.TSStatus constructViewSchemaBlackList(TConstructViewSchemaBlackListReq req) | |
| common.TSStatus rollbackViewSchemaBlackList(TRollbackViewSchemaBlackListReq req) | |
| common.TSStatus deleteViewSchema(TDeleteViewSchemaReq req) | |
| common.TSStatus alterView(TAlterViewReq req) | |
| /** | |
| * Send pipeMetas to DataNodes, for synchronization | |
| */ | |
| TPushPipeMetaResp pushPipeMeta(TPushPipeMetaReq req) | |
| /** | |
| * Send one pipeMeta to DataNodes, for create/start/stop/drop one pipe | |
| */ | |
| TPushPipeMetaResp pushSinglePipeMeta(TPushSinglePipeMetaReq req) | |
| /** | |
| * Send multiple pipeMetas to DataNodes, for create/drop subscriptions | |
| */ | |
| TPushPipeMetaResp pushMultiPipeMeta(TPushMultiPipeMetaReq req) | |
| /** | |
| * Send topicMetas to DataNodes, for synchronization | |
| */ | |
| TPushTopicMetaResp pushTopicMeta(TPushTopicMetaReq req) | |
| /** | |
| * Send one topic meta to DataNodes. | |
| */ | |
| TPushTopicMetaResp pushSingleTopicMeta(TPushSingleTopicMetaReq req) | |
| /** | |
| * Send multiple topic metas to DataNodes, for create/drop subscriptions | |
| */ | |
| TPushTopicMetaResp pushMultiTopicMeta(TPushMultiTopicMetaReq req) | |
| /** | |
| * Renew topic owner leases on DataNodes via the dedicated subscription owner heartbeat | |
| * (independent from the node heartbeat). Carries relative remaining durations. | |
| */ | |
| common.TSStatus pushTopicOwnerLease(TPushTopicOwnerLeaseReq req) | |
| /** | |
| * Send consumerGroupMetas to DataNodes, for synchronization | |
| */ | |
| TPushConsumerGroupMetaResp pushConsumerGroupMeta(TPushConsumerGroupMetaReq req) | |
| /** | |
| * Send one consumer group meta to DataNodes. | |
| */ | |
| TPushConsumerGroupMetaResp pushSingleConsumerGroupMeta(TPushSingleConsumerGroupMetaReq req) | |
| /** | |
| * Pull commit progress from DataNode for subscription consensus persistence | |
| */ | |
| TPullCommitProgressResp pullCommitProgress(TPullCommitProgressReq req) | |
| /** | |
| * Sync subscription committed progress from Leader to Follower (fire-and-forget) | |
| */ | |
| common.TSStatus syncSubscriptionProgress(TSyncSubscriptionProgressReq req) | |
| /** | |
| * Push subscription runtime state to DataNodes. | |
| */ | |
| common.TSStatus pushSubscriptionRuntime(TPushSubscriptionRuntimeReq req) | |
| /** | |
| * ConfigNode will ask DataNode for pipe meta in every few seconds | |
| **/ | |
| common.TPipeHeartbeatResp pipeHeartbeat(TPipeHeartbeatReq req) | |
| /** | |
| * Execute CQ on DataNode | |
| */ | |
| common.TSStatus executeCQ(TExecuteCQ req) | |
| /** | |
| * Set space quota | |
| **/ | |
| common.TSStatus setSpaceQuota(common.TSetSpaceQuotaReq req) | |
| /** | |
| * Set throttle quota | |
| **/ | |
| common.TSStatus setThrottleQuota(common.TSetThrottleQuotaReq req) | |
| /** | |
| * Fetch fragment instance statistics for EXPLAIN ANALYZE | |
| */ | |
| TFetchFragmentInstanceStatisticsResp fetchFragmentInstanceStatistics(TFetchFragmentInstanceStatisticsReq req) | |
| /** | |
| * Update Table Cache | |
| */ | |
| common.TSStatus updateTable(TUpdateTableReq req) | |
| /** | |
| * Delete data for drop table, this database is without "root" | |
| */ | |
| common.TSStatus invalidateTableCache(TInvalidateTableCacheReq req) | |
| /** | |
| * Delete data for drop table | |
| */ | |
| common.TSStatus deleteDataForDropTable(TDeleteDataOrDevicesForDropTableReq req) | |
| TGetDropTableModProgressResp getDropTableModProgress(TGetDropTableModProgressReq req) | |
| /** | |
| * Delete devices for drop table | |
| */ | |
| common.TSStatus deleteDevicesForDropTable(TDeleteDataOrDevicesForDropTableReq req) | |
| /** | |
| * Invalidate cache for drop column | |
| */ | |
| common.TSStatus invalidateColumnCache(TInvalidateColumnCacheReq req) | |
| /** | |
| * Delete column data for drop column | |
| */ | |
| common.TSStatus deleteColumnData(TDeleteColumnDataReq req) | |
| /** | |
| * Construct table device black list | |
| */ | |
| common.TSStatus constructTableDeviceBlackList(TTableDeviceDeletionWithPatternAndFilterReq req) | |
| /** | |
| * Rollback table device black list | |
| */ | |
| common.TSStatus rollbackTableDeviceBlackList(TTableDeviceDeletionWithPatternOrModReq req) | |
| /** | |
| * Delete data for table devices | |
| */ | |
| common.TSStatus invalidateMatchedTableDeviceCache(TTableDeviceInvalidateCacheReq req) | |
| /** | |
| * Delete data for table devices | |
| */ | |
| common.TSStatus deleteDataForTableDevice(TTableDeviceDeletionWithPatternOrModReq req) | |
| /** | |
| * Delete table devices in black list | |
| */ | |
| common.TSStatus deleteTableDeviceInBlackList(TTableDeviceDeletionWithPatternOrModReq req) | |
| /** | |
| * Get tree device view info for device view | |
| */ | |
| TDeviceViewResp detectTreeDeviceViewFieldType(TDeviceViewReq req) | |
| common.TTestConnectionResp submitTestConnectionTask(common.TNodeLocations nodeLocations) | |
| common.TTestConnectionResp submitInternalTestConnectionTask(common.TNodeLocations nodeLocations) | |
| /** Empty rpc, only for connection test */ | |
| common.TSStatus testConnectionEmptyRPC() | |
| /** | |
| * Push cluster topology to this DataNode. | |
| * Each DataNode receives only its own reachable set. | |
| */ | |
| common.TSStatus updateClusterTopology(1:TUpdateClusterTopologyReq req) | |
| /** to write audit log or other events as time series **/ | |
| common.TSStatus insertRecord(1:client.TSInsertRecordReq req); | |
| /** | |
| * Write an audit log entry to the DataNode's AuditEventLogger | |
| */ | |
| common.TSStatus writeAuditLog(TAuditLogReq req); | |
| /** | |
| * BEGIN: Data Partition Table Integrity Check | |
| **/ | |
| /** | |
| * Get earliest timeslot information from DataNode | |
| * Returns map of database name to earliest timeslot id | |
| */ | |
| TGetEarliestTimeslotsResp getEarliestTimeslots() | |
| /** | |
| * Request DataNode to generate DataPartitionTable by scanning tsfile resources | |
| */ | |
| TGenerateDataPartitionTableResp generateDataPartitionTable(TGenerateDataPartitionTableReq req) | |
| /** | |
| * Check the status of DataPartitionTable generation task | |
| */ | |
| TGenerateDataPartitionTableHeartbeatResp generateDataPartitionTableHeartbeat(TGenerateDataPartitionTableReq req) | |
| /** | |
| * Get the progress of DataPartitionTable generation task without consuming the generated table. | |
| */ | |
| TGetDataPartitionTableGeneratorProgressResp getDataPartitionTableGeneratorProgress() | |
| /** | |
| * END: Data Partition Table Integrity Check | |
| **/ | |
| } | |
| service MPPDataExchangeService { | |
| TGetDataBlockResponse getDataBlock(TGetDataBlockRequest req); | |
| void onAcknowledgeDataBlockEvent(TAcknowledgeDataBlockEvent e); | |
| void onCloseSinkChannelEvent(TCloseSinkChannelEvent e); | |
| void onNewDataBlockEvent(TNewDataBlockEvent e); | |
| void onEndOfDataBlockEvent(TEndOfDataBlockEvent e); | |
| TFetchDeviceEntrySegmentResp fetchDeviceEntrySegment(TFetchDeviceEntrySegmentReq req); | |
| common.TSStatus finishDeviceEntrySegment(1: string queryId, 2: string planNodeId); | |
| /** Empty rpc, only for connection test */ | |
| common.TSStatus testConnectionEmptyRPC() | |
| } |