Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Switch the default DataRegion consensus protocol to IoTConsensusV2 in batch mode for newly initialized deployments. Align the integration-test wrappers and the HighPerformanceMode and ScalableSingleNodeMode fixtures with that default.
For example, start a fresh deployment with the packaged configuration and run
SHOW VARIABLES. TheDataRegionConsensusProtocolClassrow previously showedorg.apache.iotdb.consensus.iot.IoTConsensusand now showsorg.apache.iotdb.consensus.iot.IoTConsensusV2. Existing deployments with an explicit protocol should continue using their configured value.Region migration after DELETE
In a 1C3D cluster with two DataRegion replicas, insert rows at timestamps 100, 200, and 300, flush, delete timestamps through 200, then move one replica to the third DataNode. Previously, the new peer received the TsFile and mods, but migration could keep three replicas while waiting for the progress index of a delete already reclaimed from the deletion log. The historical consensus Pipe now reports materialized DELETE progress in commit order after its historical transfer. The expected final state is two replicas, with timestamp 300 as the only visible row on the destination. Both tree and table integration tests cover this scenario in batch and stream.
Test fixtures and validation
Update the ConfigNode registration and Edge fixtures for the new default. Resolve the REST and Grafana HTTP endpoints through the test environment so the same tests can run with RemoteIT.
The targeted local experiment before rebasing passed the six migration cases, 43 related unit tests, and the REST and Grafana cases in Remote and Simple modes. On the rebased head, the repository's IT selection check covers all 848 candidate classes. This draft tracks full traditional-database IT validation in GitHub Actions. The fork validation run covers DailyIT, ManualIT, RemoteIT, opt-in benchmarks, and the Simple and table-cluster profiles with the resources used in the local comparisons.
GitHub Actions results on
fc2e2c35IoTDBPipeLifeCycleITLog and Hybrid methods saw 10/100 and 110/200 rows at the receiver. Isolated protocol comparisons reproduced both readings with IoTV2. Both IoTV1 controls passed. A later diagnostic run passed Hybrid once and still failed Log, with 50/100 rows in the second database.CI fixes on
2ff3701All seven previously failing jobs passed on this revision. Tree 1C1D passed on Ubuntu and all three Windows shards. The table Pipe lifecycle shard passed its Multi-Cluster rerun. Ubuntu and Windows DataNode unit jobs each reported 6168 tests, zero failures and errors, and 48 skipped. Tree 1C1D · Pipe shard · Unit-Test
The standard traditional-database IT workflows finished with 29/29 jobs passing, including all 17 Multi-Cluster jobs. Unit-Test finished with 4/4 jobs passing. Multi-Cluster
Key changed areas
DataRegion consensus defaults, historical consensus Pipe progress, and integration-test fixtures.