Skip to content
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

TEST: Update glean expiration policies #827

Closed
wants to merge 1 commit into from

Conversation

BenWu
Copy link
Contributor

@BenWu BenWu commented Aug 21, 2024

Copy link
Contributor Author

@BenWu BenWu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went through the 102 tables to make sure the new values match what's in probe scraper and check if anything will be deleted with this change. Coincidentally, the firefox ios sync pings were created 400 days ago and the default expiration set for firefox ios is 400 days so these would start to get dropped starting tomorrow. We should probably increase the retention at least until the expiry alerts are ready.

All the other tables should be correct and nothing else will get immediately dropped with this change.

Query to get the first partition age of the 102 tables:

SELECT
  *,
  DATE_DIFF(run_date, first_partition_current, DAY) AS oldest_partition_age,
FROM
  `moz-fx-data-shared-prod.monitoring_derived.table_partition_expirations_v1`
WHERE
  run_date = "2024-08-20"
  AND CONCAT(dataset_id, ".", table_id) IN (
    "firefox_desktop_background_defaultagent_stable.baseline_v1",
    "firefox_desktop_background_defaultagent_stable.events_v1",
    "firefox_desktop_background_defaultagent_stable.metrics_v1",
    "firefox_desktop_background_update_stable.bounce_tracking_protection_v1",
    "firefox_desktop_background_update_stable.broken_site_report_v1",
    "firefox_desktop_background_update_stable.fog_validation_v1",
    "firefox_desktop_background_update_stable.use_counters_v1",
    "firefox_desktop_stable.bounce_tracking_protection_v1",
    "firefox_desktop_stable.broken_site_report_v1",
    "firefox_desktop_stable.use_counters_v1",
    "mlhackweek_search_stable.baseline_v1",
    "mlhackweek_search_stable.events_v1",
    "mlhackweek_search_stable.metrics_v1",
    "org_mozilla_fenix_nightly_stable.bounce_tracking_protection_v1",
    "org_mozilla_fenix_nightly_stable.broken_site_report_v1",
    "org_mozilla_fenix_nightly_stable.crash_v1",
    "org_mozilla_fenix_nightly_stable.fog_validation_v1",
    "org_mozilla_fenix_nightly_stable.use_counters_v1",
    "org_mozilla_fenix_stable.bounce_tracking_protection_v1",
    "org_mozilla_fenix_stable.broken_site_report_v1",
    "org_mozilla_fenix_stable.crash_v1",
    "org_mozilla_fenix_stable.fog_validation_v1",
    "org_mozilla_fenix_stable.use_counters_v1",
    "org_mozilla_fennec_aurora_stable.bounce_tracking_protection_v1",
    "org_mozilla_fennec_aurora_stable.broken_site_report_v1",
    "org_mozilla_fennec_aurora_stable.crash_v1",
    "org_mozilla_fennec_aurora_stable.fog_validation_v1",
    "org_mozilla_fennec_aurora_stable.use_counters_v1",
    "org_mozilla_firefox_beta_stable.bounce_tracking_protection_v1",
    "org_mozilla_firefox_beta_stable.broken_site_report_v1",
    "org_mozilla_firefox_beta_stable.crash_v1",
    "org_mozilla_firefox_beta_stable.fog_validation_v1",
    "org_mozilla_firefox_beta_stable.use_counters_v1",
    "org_mozilla_firefox_stable.bounce_tracking_protection_v1",
    "org_mozilla_firefox_stable.broken_site_report_v1",
    "org_mozilla_firefox_stable.crash_v1",
    "org_mozilla_firefox_stable.fog_validation_v1",
    "org_mozilla_firefox_stable.use_counters_v1",
    "org_mozilla_focus_beta_stable.baseline_v1",
    "org_mozilla_focus_beta_stable.bounce_tracking_protection_v1",
    "org_mozilla_focus_beta_stable.broken_site_report_v1",
    "org_mozilla_focus_beta_stable.crash_v1",
    "org_mozilla_focus_beta_stable.deletion_request_v1",
    "org_mozilla_focus_beta_stable.events_v1",
    "org_mozilla_focus_beta_stable.fog_validation_v1",
    "org_mozilla_focus_beta_stable.metrics_v1",
    "org_mozilla_focus_beta_stable.use_counters_v1",
    "org_mozilla_focus_nightly_stable.baseline_v1",
    "org_mozilla_focus_nightly_stable.bounce_tracking_protection_v1",
    "org_mozilla_focus_nightly_stable.broken_site_report_v1",
    "org_mozilla_focus_nightly_stable.crash_v1",
    "org_mozilla_focus_nightly_stable.deletion_request_v1",
    "org_mozilla_focus_nightly_stable.events_v1",
    "org_mozilla_focus_nightly_stable.fog_validation_v1",
    "org_mozilla_focus_nightly_stable.metrics_v1",
    "org_mozilla_focus_nightly_stable.use_counters_v1",
    "org_mozilla_focus_stable.baseline_v1",
    "org_mozilla_focus_stable.bounce_tracking_protection_v1",
    "org_mozilla_focus_stable.broken_site_report_v1",
    "org_mozilla_focus_stable.crash_v1",
    "org_mozilla_focus_stable.deletion_request_v1",
    "org_mozilla_focus_stable.events_v1",
    "org_mozilla_focus_stable.fog_validation_v1",
    "org_mozilla_focus_stable.metrics_v1",
    "org_mozilla_focus_stable.use_counters_v1",
    "org_mozilla_ios_fennec_stable.addresses_sync_v1",
    "org_mozilla_ios_fennec_stable.bookmarks_sync_v1",
    "org_mozilla_ios_fennec_stable.creditcards_sync_v1",
    "org_mozilla_ios_fennec_stable.history_sync_v1",
    "org_mozilla_ios_fennec_stable.logins_sync_v1",
    "org_mozilla_ios_fennec_stable.sync_v1",
    "org_mozilla_ios_fennec_stable.tabs_sync_v1",
    "org_mozilla_ios_firefox_stable.addresses_sync_v1",
    "org_mozilla_ios_firefox_stable.bookmarks_sync_v1",
    "org_mozilla_ios_firefox_stable.creditcards_sync_v1",
    "org_mozilla_ios_firefox_stable.history_sync_v1",
    "org_mozilla_ios_firefox_stable.logins_sync_v1",
    "org_mozilla_ios_firefox_stable.sync_v1",
    "org_mozilla_ios_firefox_stable.tabs_sync_v1",
    "org_mozilla_ios_firefoxbeta_stable.addresses_sync_v1",
    "org_mozilla_ios_firefoxbeta_stable.bookmarks_sync_v1",
    "org_mozilla_ios_firefoxbeta_stable.creditcards_sync_v1",
    "org_mozilla_ios_firefoxbeta_stable.history_sync_v1",
    "org_mozilla_ios_firefoxbeta_stable.logins_sync_v1",
    "org_mozilla_ios_firefoxbeta_stable.sync_v1",
    "org_mozilla_ios_firefoxbeta_stable.tabs_sync_v1",
    "org_mozilla_klar_stable.baseline_v1",
    "org_mozilla_klar_stable.bounce_tracking_protection_v1",
    "org_mozilla_klar_stable.broken_site_report_v1",
    "org_mozilla_klar_stable.crash_v1",
    "org_mozilla_klar_stable.deletion_request_v1",
    "org_mozilla_klar_stable.events_v1",
    "org_mozilla_klar_stable.fog_validation_v1",
    "org_mozilla_klar_stable.metrics_v1",
    "org_mozilla_klar_stable.use_counters_v1",
    "org_mozilla_reference_browser_stable.crash_v1",
    "pine_stable.bounce_tracking_protection_v1",
    "pine_stable.broken_site_report_v1",
    "pine_stable.deletion_request_v1",
    "pine_stable.pageload_v1",
    "pine_stable.use_counters_v1",
    "treeherder_stable.events_v1"
  )
ORDER BY
  dataset_id,
  table_id

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current oldest partition is 399 days so data will be dropped if this get updated. The tables was created on 2023-07-17 (400 days ago) so it's just a coincidence that today would be the first day it start dropping data.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oldest partition is 399 days

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oldest partition is 399 days

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oldest partition is 399 days

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oldest partition is 399 days

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oldest partition is 399 days

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oldest partition is 399 days

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oldest partition is 399 days

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oldest partition is 399 days

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oldest partition is 399 days

@BenWu BenWu closed this Aug 22, 2024
@BenWu BenWu deleted the benwu/test-expiration-policies branch August 22, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant