-
Notifications
You must be signed in to change notification settings - Fork 2
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
refactor: modify the rpc addr startup args of all components #241
refactor: modify the rpc addr startup args of all components #241
Conversation
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the WalkthroughThe pull request updates various parts of the codebase by renaming RPC-related fields, variables, and command-line arguments across configuration generation, test files, deployment argument parsing, and database configuration structures. No underlying logic or control flow was modified; the changes solely reflect a standardization of naming conventions for clarity in specifying binding and server addresses. Changes
Possibly related PRs
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
pkg/dbconfig/datanode_config.go (1)
27-29
: Consider standardizing TOML mapping format.While the field names are consistent with FlownodeConfig, the TOML mapping format differs:
- FlownodeConfig uses:
grpc.bind_addr
- DatanodeConfig uses:
rpc_bind_addr
This inconsistency might cause confusion.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (9)
cmd/initializer/internal/config_generator.go
(2 hunks)cmd/initializer/internal/config_generator_test.go
(2 hunks)cmd/initializer/internal/testdata/datanode-config.toml
(1 hunks)cmd/initializer/internal/testdata/flownode-config.toml
(1 hunks)controllers/greptimedbcluster/deployers/frontend.go
(1 hunks)controllers/greptimedbcluster/deployers/meta.go
(1 hunks)controllers/greptimedbstandalone/deployer.go
(1 hunks)pkg/dbconfig/datanode_config.go
(1 hunks)pkg/dbconfig/flownode_config.go
(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- cmd/initializer/internal/config_generator.go
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Build the project
- GitHub Check: Run e2e
🔇 Additional comments (7)
pkg/dbconfig/flownode_config.go (1)
25-27
: LGTM! Clear and consistent field naming.The new field names
RPCBindAddr
andRPCServerAddr
better represent their purposes and align with standard networking terminology.cmd/initializer/internal/config_generator_test.go (1)
83-90
: LGTM! Tests properly updated.Test cases have been correctly updated to reflect the new field names while maintaining the same test coverage and validation logic.
Also applies to: 92-99, 144-151, 153-160
controllers/greptimedbcluster/deployers/meta.go (1)
357-359
: LGTM! Command-line arguments updated consistently.The command-line argument names have been updated to match the new configuration field names, maintaining consistency across the codebase.
controllers/greptimedbcluster/deployers/frontend.go (1)
250-250
: LGTM! RPC address argument updated.The change from
--rpc-addr
to--rpc-bind-addr
aligns with the standardization of RPC address arguments across components.controllers/greptimedbstandalone/deployer.go (1)
400-400
: LGTM! RPC address argument updated.The change from
--rpc-addr
to--rpc-bind-addr
maintains consistency with the frontend component and aligns with the standardization effort.cmd/initializer/internal/testdata/flownode-config.toml (1)
5-6
: LGTM! RPC configuration parameters updated.The GRPC configuration parameters have been updated to use the new standardized naming:
addr
→bind_addr
hostname
→server_addr
The values remain unchanged, ensuring backward compatibility.
cmd/initializer/internal/testdata/datanode-config.toml (1)
4-5
: LGTM! RPC configuration parameters updated.The RPC configuration parameters have been updated to use the new standardized naming:
rpc_addr
→rpc_bind_addr
rpc_hostname
→rpc_server_addr
The values remain unchanged, ensuring backward compatibility.
enable-flow e2e test failed:
issues: GreptimeTeam/greptimedb#5563 |
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
related issue: #240
wait for greptimedb release new version.
Summary by CodeRabbit