Commit 0987f6a
Subscription: implement IoTConsensus-based subscription (#17238)
* Subscription: implement IoTConsensus-based subscription
* fix some issues
* support seek and WAL retention
* refactor
* refactor
* fix
* fix
* fix part1
* fix part2
* fix part3.1
* fix part3.2
* fix part4.1
* fix seek
* fix test
* refactor thread model
* add time based retention and column pattern
* clean old epoch
* add config for consensus subscription
* fix comments
* remove some tests
* add check for non-IoTConsensus
* refactor IT
* fix review
* fix UT & IT
* fix comments
* fix comments
* remove writerEpoch field & unify the order of fields
* fix test
* spotless
* fix IT
* remove special logic of CONTINUOUS_SAME_SEARCH_INDEX_SEPARATOR_NODE
* make partial commit responses explicit
* keep processor-buffered messages pinned until release
* make manual close safe with processor buffers
* tolerate non-owning providers during consensus seek
* fix UT
* fix IT
* refactor progress persist
* spotless
* fix some issues
* fix some issues
* extract some logic into broker interface
* fix ColumnAlignProcessor
* simplify some concepts
* fix some naming and comments
* fix some issues
* fix some issues
* rename
* Avoided persisting writer.meta on every successful write & Grouped adjacent tree-model rows with the same emitted device/schema into one Tablet
* rename
* fix
* fix
* Refine subscription broker routing
* Fix consensus subscription replay dedup
---------
Co-authored-by: VGalaxies <vgalaxies@apache.org>1 parent faba002 commit 0987f6a
192 files changed
Lines changed: 24588 additions & 412 deletions
File tree
- example
- session/src/main/java/org/apache/iotdb
- subscription/src/main/java/org/apache/iotdb
- integration-test/src/test/java/org/apache/iotdb/subscription/it
- consensus/local
- tablemodel
- triple/treemodel/regression/param
- iotdb-client
- service-rpc/src/main/java/org/apache/iotdb/rpc
- session/src/main/java/org/apache/iotdb/session
- subscription
- src
- main/java/org/apache/iotdb
- rpc/subscription
- config
- payload
- poll
- request
- response
- session/subscription
- consumer
- base
- table
- tree
- payload
- test/java/org/apache/iotdb
- rpc/subscription/payload
- poll
- request
- session/subscription/consumer/base
- iotdb-core
- confignode/src
- main/java/org/apache/iotdb/confignode
- client/async
- handlers/rpc
- subscription
- consensus/request
- write/subscription/consumer/runtime
- manager
- load
- subscription
- runtime
- persistence
- executor
- subscription
- procedure
- env
- impl/subscription
- consumer/runtime
- runtime
- subscription
- store
- service/thrift
- test/java/org/apache/iotdb/confignode
- persistence/subscription
- procedure/impl/subscription/subscription
- consensus/src
- main/java/org/apache/iotdb/consensus
- common/request
- config
- iot
- client
- logdispatcher
- log
- service
- subscription
- test/java/org/apache/iotdb/consensus/iot
- util
- datanode/src
- main
- i18n
- en/org/apache/iotdb/db/i18n
- zh/org/apache/iotdb/db/i18n
- java/org/apache/iotdb/db
- conf
- consensus
- statemachine/dataregion
- pipe/agent/task/execution
- protocol
- client
- thrift/impl
- queryengine/plan
- execution/config/executor
- planner/plan/node
- pipe
- write
- storageengine/dataregion
- wal
- buffer
- io
- node
- utils
- subscription
- agent
- broker
- consensus
- event
- metric
- receiver
- task
- execution
- subtask
- test/java/org/apache/iotdb/db
- storageengine/dataregion/wal
- compression
- io
- node
- utils
- subscription/broker/consensus
- node-commons/src
- assembly/resources/conf
- main/java/org/apache/iotdb/commons
- concurrent
- conf
- service/metric/enums
- subscription
- config
- meta/consumer
- test/java/org/apache/iotdb/commons/subscription/meta/consumer
- iotdb-protocol
- thrift-confignode/src/main/thrift
- thrift-consensus/src/main/thrift
- thrift-datanode/src/main/thrift
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 528 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 198 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
0 commit comments