-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[IOTDB-1310] Enable docker, docker-compose and testcontainer for End to end test #3024
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
Conversation
a71e8f6 to
7e8d2cf
Compare
7e8d2cf to
c02eb85
Compare
| try { | ||
| metaServer = new MetaClusterServer(); | ||
| // preStartCustomize(); | ||
| preStartCustomize(); |
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.
preStratCustomize is just for debug, should not used in deployment.
cluster/src/main/java/org/apache/iotdb/cluster/ClusterMain.java
Outdated
Show resolved
Hide resolved
cluster/src/main/java/org/apache/iotdb/cluster/ClusterMain.java
Outdated
Show resolved
Hide resolved
| # request, the number of nodes picked depends on the number of retries. | ||
| seed_nodes=127.0.0.1:9003,127.0.0.1:9005,127.0.0.1:9007 | ||
| #seed_nodes=127.0.0.1:9003,127.0.0.1:9005,127.0.0.1:9007 | ||
| seed_nodes=127.0.0.1:9003 |
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.
Is it unfriendly for users to configure only one IP in distributed mode?
Why change the default parameter?
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.
Actually THIS is "friendly".
What we want:
- let user download the zip (iotdb-cluster.zip)
- unzip the file
- call
start-node.sh - begin to have a try.
If we set 3 ips here, then the process is.... very very difficult for users:
- let user download the zip (iotdb-cluster.zip)
- unzip the file
- copy the file into 3 parts
- modiy
iotdb-cluster.propertiesone by one (very hard, as they have to read the file to know "ah, in the first file, I need modify the parameter as 9003, and modify the rpc port and internal_data port as .... In the second file, I need ...." - call
start-node.sh - begin to have a try.
It is a disaster for fresh man.
If you see other distributed systems, all their default setting is just one node.
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.
Sure, your consideration is reasonable.
|
SonarCloud Quality Gate failed. |
|
The code coverage is hard to be promoted anymore |
mychaow
left a comment
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
# This is the 1st commit message: Fix query one sensor in a vector from memtable (apache#3056) Fix query one sensor in a vector from memtable # This is the commit message apache#2: [IOTDB-1310] Enable docker, docker-compose and testcontainer for End to end test (apache#3024) * enable TestCongtainer for E2E test for (singleNode and cluster) * remove duplicated operations in integration-test phase * move spotless:apply to a profile `spotless`, which is enabled by default. Co-authored-by: xiangdong huang <[email protected]> # This is the commit message apache#3: add sink interface # This is the commit message apache#4: 3 new event sinks # This is the commit message apache#5: add ts sink # This is the commit message apache#6: add ts sink # This is the commit message apache#7: add mqtt sink # This is the commit message apache#8: refactor sink module # This is the commit message apache#9: init package sink.manager # This is the commit message apache#10: rename SinkException # This is the commit message apache#11: remove id in config # This is the commit message apache#12: fix doc # This is the commit message apache#13: add test framework # This is the commit message apache#14: add alertmanager sink & test & doc # This is the commit message apache#15: beautify the doc
This PR fixes:
in the cluster module, set the default number of nodes as 1, and the default replica number as 1.
users can skip to set the value of
internal_ip. Ifinternal_ipis commented, then the hostname of the server will be used rather than127.0.0.1to be used.add a new module
testcontainer. The module will be added if your PC/Mac has installed Docker.the
testcontainermodule will build two docker images:apache/iotdb:maven-developmentandapache/iotdb:cluster-maven-developmentwhen runningmvn pre-integration-testTwo E2E test (end with *IT.java) with TestContainer framework examples are provided, in
testcontainer/src/test/java/, while one is for single node and another is for the cluster with 3 nodes.remove duplicated
verifyphash inintegration-testphase.To disable the
testcontainermodule, use-P !testcontainerin yourmvncommand.In this PR,
spotless:checkis moved to a profile, which is enabled by default. To skip the step (for faster compiling, use-P !spotless).