-
Notifications
You must be signed in to change notification settings - Fork 602
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
fix(telemetry): not send report if cluster is in test env #20180
Conversation
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.
You can consider marking the cluster with ReportBase_IsTest = true. The approach in this PR can work too.
You may choose whichever approach that requires least efforts.
Yes, it also make sense. I will check how I can broadcast the status from meta to other nodes. |
@@ -156,6 +156,10 @@ impl MetaTelemetryInfoFetcher { | |||
#[async_trait::async_trait] | |||
impl TelemetryInfoFetcher for MetaTelemetryInfoFetcher { | |||
async fn fetch_telemetry_info(&self) -> TelemetryResult<Option<String>> { | |||
// the err here means building cluster on test env, so we don't need to report telemetry |
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.
other nodes get TrackingID from this func, via meta rpc interface. If we do not offer a TrackingID here, the report on other nodes will be disabled.
This pull request has been modified. If you want me to regenerate unit test for any of the files related, please find the file in "Files Changed" tab and add a comment |
Co-authored-by: tabversion <[email protected]>
…20256) Signed-off-by: tabversion <[email protected]> Co-authored-by: Bohan Zhang <[email protected]> Co-authored-by: tabversion <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
per request from @neverchanje , suspect many UNSPECIFIED deployment type are leaked from test env.
Checklist
Documentation
Release note