From 95eaa0eb239f76a20f508e81805e2af7bacd92c1 Mon Sep 17 00:00:00 2001 From: Aaditya Sondhi <20070511+aadityasondhi@users.noreply.github.com> Date: Wed, 19 Apr 2023 09:30:13 -0400 Subject: [PATCH] cli: unskip TestUnavailableZip Fixes: #53306 Release note: None --- pkg/cli/testdata/zip/unavailable | 156 +++++++++++++++++-------------- pkg/cli/zip_test.go | 22 +++-- 2 files changed, 101 insertions(+), 77 deletions(-) diff --git a/pkg/cli/testdata/zip/unavailable b/pkg/cli/testdata/zip/unavailable index 65de4298e0c7..7bdbc9d11ed6 100644 --- a/pkg/cli/testdata/zip/unavailable +++ b/pkg/cli/testdata/zip/unavailable @@ -1,204 +1,211 @@ zip ---- debug zip --concurrency=1 --cpu-profile-duration=0 /dev/null --timeout=.5s +[cluster] discovering tenants on cluster... done +[cluster] creating output file /dev/null... done [cluster] establishing RPC connection to ... -[cluster] retrieving the node status to get the SQL address... done [cluster] using SQL address: ... -[cluster] creating output file /dev/null... done [cluster] requesting data for debug/events... received response... -[cluster] requesting data for debug/events: last request failed: operation "[cluster] requesting data for debug/events" timed out after... +[cluster] requesting data for debug/events: last request failed: ... [cluster] requesting data for debug/events: creating error output: debug/events.json.err.txt... done [cluster] requesting data for debug/rangelog... received response... -[cluster] requesting data for debug/rangelog: last request failed: operation "[cluster] requesting data for debug/rangelog" timed out after... +[cluster] requesting data for debug/rangelog: last request failed: ... [cluster] requesting data for debug/rangelog: creating error output: debug/rangelog.json.err.txt... done -[cluster] requesting data for debug/settings... received response... -[cluster] requesting data for debug/settings: last request failed: operation "[cluster] requesting data for debug/settings" timed out after... -[cluster] requesting data for debug/settings: creating error output: debug/settings.json.err.txt... done [cluster] requesting data for debug/reports/problemranges... received response... converting to JSON... writing binary output: debug/reports/problemranges.json... done [cluster] retrieving SQL data for "".crdb_internal.create_function_statements... writing output: debug/crdb_internal.create_function_statements.txt... -[cluster] retrieving SQL data for "".crdb_internal.create_function_statements: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for "".crdb_internal.create_function_statements: last request failed: ... [cluster] retrieving SQL data for "".crdb_internal.create_function_statements: creating error output: debug/crdb_internal.create_function_statements.txt.err.txt... done [cluster] retrieving SQL data for "".crdb_internal.create_schema_statements... writing output: debug/crdb_internal.create_schema_statements.txt... -[cluster] retrieving SQL data for "".crdb_internal.create_schema_statements: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for "".crdb_internal.create_schema_statements: last request failed: ... [cluster] retrieving SQL data for "".crdb_internal.create_schema_statements: creating error output: debug/crdb_internal.create_schema_statements.txt.err.txt... done [cluster] retrieving SQL data for "".crdb_internal.create_statements... writing output: debug/crdb_internal.create_statements.txt... -[cluster] retrieving SQL data for "".crdb_internal.create_statements: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for "".crdb_internal.create_statements: last request failed: ... [cluster] retrieving SQL data for "".crdb_internal.create_statements: creating error output: debug/crdb_internal.create_statements.txt.err.txt... done [cluster] retrieving SQL data for "".crdb_internal.create_type_statements... writing output: debug/crdb_internal.create_type_statements.txt... -[cluster] retrieving SQL data for "".crdb_internal.create_type_statements: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for "".crdb_internal.create_type_statements: last request failed: ... [cluster] retrieving SQL data for "".crdb_internal.create_type_statements: creating error output: debug/crdb_internal.create_type_statements.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.cluster_contention_events... writing output: debug/crdb_internal.cluster_contention_events.txt... -[cluster] retrieving SQL data for crdb_internal.cluster_contention_events: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.cluster_contention_events: last request failed: ... [cluster] retrieving SQL data for crdb_internal.cluster_contention_events: creating error output: debug/crdb_internal.cluster_contention_events.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.cluster_database_privileges... writing output: debug/crdb_internal.cluster_database_privileges.txt... done [cluster] retrieving SQL data for crdb_internal.cluster_distsql_flows... writing output: debug/crdb_internal.cluster_distsql_flows.txt... -[cluster] retrieving SQL data for crdb_internal.cluster_distsql_flows: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.cluster_distsql_flows: last request failed: ... [cluster] retrieving SQL data for crdb_internal.cluster_distsql_flows: creating error output: debug/crdb_internal.cluster_distsql_flows.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.cluster_execution_insights... writing output: debug/crdb_internal.cluster_execution_insights.txt... -[cluster] retrieving SQL data for crdb_internal.cluster_execution_insights: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.cluster_execution_insights: last request failed: ... [cluster] retrieving SQL data for crdb_internal.cluster_execution_insights: creating error output: debug/crdb_internal.cluster_execution_insights.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.cluster_locks... writing output: debug/crdb_internal.cluster_locks.txt... -[cluster] retrieving SQL data for crdb_internal.cluster_locks: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.cluster_locks: last request failed: ... [cluster] retrieving SQL data for crdb_internal.cluster_locks: creating error output: debug/crdb_internal.cluster_locks.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.cluster_queries... writing output: debug/crdb_internal.cluster_queries.txt... -[cluster] retrieving SQL data for crdb_internal.cluster_queries: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.cluster_queries: last request failed: ... [cluster] retrieving SQL data for crdb_internal.cluster_queries: creating error output: debug/crdb_internal.cluster_queries.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.cluster_sessions... writing output: debug/crdb_internal.cluster_sessions.txt... -[cluster] retrieving SQL data for crdb_internal.cluster_sessions: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.cluster_sessions: last request failed: ... [cluster] retrieving SQL data for crdb_internal.cluster_sessions: creating error output: debug/crdb_internal.cluster_sessions.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.cluster_settings... writing output: debug/crdb_internal.cluster_settings.txt... done [cluster] retrieving SQL data for crdb_internal.cluster_transactions... writing output: debug/crdb_internal.cluster_transactions.txt... -[cluster] retrieving SQL data for crdb_internal.cluster_transactions: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.cluster_transactions: last request failed: ... [cluster] retrieving SQL data for crdb_internal.cluster_transactions: creating error output: debug/crdb_internal.cluster_transactions.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.cluster_txn_execution_insights... writing output: debug/crdb_internal.cluster_txn_execution_insights.txt... -[cluster] retrieving SQL data for crdb_internal.cluster_txn_execution_insights: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.cluster_txn_execution_insights: last request failed: ... [cluster] retrieving SQL data for crdb_internal.cluster_txn_execution_insights: creating error output: debug/crdb_internal.cluster_txn_execution_insights.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.default_privileges... writing output: debug/crdb_internal.default_privileges.txt... -[cluster] retrieving SQL data for crdb_internal.default_privileges: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.default_privileges: last request failed: ... [cluster] retrieving SQL data for crdb_internal.default_privileges: creating error output: debug/crdb_internal.default_privileges.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.index_usage_statistics... writing output: debug/crdb_internal.index_usage_statistics.txt... -[cluster] retrieving SQL data for crdb_internal.index_usage_statistics: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.index_usage_statistics: last request failed: ... [cluster] retrieving SQL data for crdb_internal.index_usage_statistics: creating error output: debug/crdb_internal.index_usage_statistics.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.invalid_objects... writing output: debug/crdb_internal.invalid_objects.txt... -[cluster] retrieving SQL data for crdb_internal.invalid_objects: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.invalid_objects: last request failed: ... [cluster] retrieving SQL data for crdb_internal.invalid_objects: creating error output: debug/crdb_internal.invalid_objects.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.jobs... writing output: debug/crdb_internal.jobs.txt... -[cluster] retrieving SQL data for crdb_internal.jobs: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.jobs: last request failed: ... [cluster] retrieving SQL data for crdb_internal.jobs: creating error output: debug/crdb_internal.jobs.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.kv_node_liveness... writing output: debug/crdb_internal.kv_node_liveness.txt... -[cluster] retrieving SQL data for crdb_internal.kv_node_liveness: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.kv_node_liveness: last request failed: ... [cluster] retrieving SQL data for crdb_internal.kv_node_liveness: creating error output: debug/crdb_internal.kv_node_liveness.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.kv_node_status... writing output: debug/crdb_internal.kv_node_status.txt... -[cluster] retrieving SQL data for crdb_internal.kv_node_status: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.kv_node_status: last request failed: ... [cluster] retrieving SQL data for crdb_internal.kv_node_status: creating error output: debug/crdb_internal.kv_node_status.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.kv_store_status... writing output: debug/crdb_internal.kv_store_status.txt... -[cluster] retrieving SQL data for crdb_internal.kv_store_status: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.kv_store_status: last request failed: ... [cluster] retrieving SQL data for crdb_internal.kv_store_status: creating error output: debug/crdb_internal.kv_store_status.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.partitions... writing output: debug/crdb_internal.partitions.txt... -[cluster] retrieving SQL data for crdb_internal.partitions: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.partitions: last request failed: ... [cluster] retrieving SQL data for crdb_internal.partitions: creating error output: debug/crdb_internal.partitions.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.regions... writing output: debug/crdb_internal.regions.txt... -[cluster] retrieving SQL data for crdb_internal.regions: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.regions: last request failed: ... [cluster] retrieving SQL data for crdb_internal.regions: creating error output: debug/crdb_internal.regions.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.schema_changes... writing output: debug/crdb_internal.schema_changes.txt... -[cluster] retrieving SQL data for crdb_internal.schema_changes: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.schema_changes: last request failed: ... [cluster] retrieving SQL data for crdb_internal.schema_changes: creating error output: debug/crdb_internal.schema_changes.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.super_regions... writing output: debug/crdb_internal.super_regions.txt... -[cluster] retrieving SQL data for crdb_internal.super_regions: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.super_regions: last request failed: ... [cluster] retrieving SQL data for crdb_internal.super_regions: creating error output: debug/crdb_internal.super_regions.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.system_jobs... writing output: debug/crdb_internal.system_jobs.txt... -[cluster] retrieving SQL data for crdb_internal.system_jobs: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.system_jobs: last request failed: ... [cluster] retrieving SQL data for crdb_internal.system_jobs: creating error output: debug/crdb_internal.system_jobs.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.table_indexes... writing output: debug/crdb_internal.table_indexes.txt... -[cluster] retrieving SQL data for crdb_internal.table_indexes: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.table_indexes: last request failed: ... [cluster] retrieving SQL data for crdb_internal.table_indexes: creating error output: debug/crdb_internal.table_indexes.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.transaction_contention_events... writing output: debug/crdb_internal.transaction_contention_events.txt... -[cluster] retrieving SQL data for crdb_internal.transaction_contention_events: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.transaction_contention_events: last request failed: ... [cluster] retrieving SQL data for crdb_internal.transaction_contention_events: creating error output: debug/crdb_internal.transaction_contention_events.txt.err.txt... done [cluster] retrieving SQL data for crdb_internal.zones... writing output: debug/crdb_internal.zones.txt... -[cluster] retrieving SQL data for crdb_internal.zones: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for crdb_internal.zones: last request failed: ... [cluster] retrieving SQL data for crdb_internal.zones: creating error output: debug/crdb_internal.zones.txt.err.txt... done [cluster] retrieving SQL data for system.database_role_settings... writing output: debug/system.database_role_settings.txt... -[cluster] retrieving SQL data for system.database_role_settings: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.database_role_settings: last request failed: ... [cluster] retrieving SQL data for system.database_role_settings: creating error output: debug/system.database_role_settings.txt.err.txt... done [cluster] retrieving SQL data for system.descriptor... writing output: debug/system.descriptor.txt... -[cluster] retrieving SQL data for system.descriptor: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.descriptor: last request failed: ... [cluster] retrieving SQL data for system.descriptor: creating error output: debug/system.descriptor.txt.err.txt... done [cluster] retrieving SQL data for system.eventlog... writing output: debug/system.eventlog.txt... -[cluster] retrieving SQL data for system.eventlog: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.eventlog: last request failed: ... [cluster] retrieving SQL data for system.eventlog: creating error output: debug/system.eventlog.txt.err.txt... done [cluster] retrieving SQL data for system.external_connections... writing output: debug/system.external_connections.txt... -[cluster] retrieving SQL data for system.external_connections: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.external_connections: last request failed: ... [cluster] retrieving SQL data for system.external_connections: creating error output: debug/system.external_connections.txt.err.txt... done +[cluster] retrieving SQL data for system.job_info... writing output: debug/system.job_info.txt... +[cluster] retrieving SQL data for system.job_info: last request failed: ... +[cluster] retrieving SQL data for system.job_info: creating error output: debug/system.job_info.txt.err.txt... done [cluster] retrieving SQL data for system.jobs... writing output: debug/system.jobs.txt... -[cluster] retrieving SQL data for system.jobs: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.jobs: last request failed: ... [cluster] retrieving SQL data for system.jobs: creating error output: debug/system.jobs.txt.err.txt... done [cluster] retrieving SQL data for system.lease... writing output: debug/system.lease.txt... -[cluster] retrieving SQL data for system.lease: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.lease: last request failed: ... [cluster] retrieving SQL data for system.lease: creating error output: debug/system.lease.txt.err.txt... done [cluster] retrieving SQL data for system.locations... writing output: debug/system.locations.txt... -[cluster] retrieving SQL data for system.locations: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.locations: last request failed: ... [cluster] retrieving SQL data for system.locations: creating error output: debug/system.locations.txt.err.txt... done [cluster] retrieving SQL data for system.migrations... writing output: debug/system.migrations.txt... -[cluster] retrieving SQL data for system.migrations: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.migrations: last request failed: ... [cluster] retrieving SQL data for system.migrations: creating error output: debug/system.migrations.txt.err.txt... done [cluster] retrieving SQL data for system.namespace... writing output: debug/system.namespace.txt... -[cluster] retrieving SQL data for system.namespace: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.namespace: last request failed: ... [cluster] retrieving SQL data for system.namespace: creating error output: debug/system.namespace.txt.err.txt... done [cluster] retrieving SQL data for system.privileges... writing output: debug/system.privileges.txt... -[cluster] retrieving SQL data for system.privileges: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.privileges: last request failed: ... [cluster] retrieving SQL data for system.privileges: creating error output: debug/system.privileges.txt.err.txt... done [cluster] retrieving SQL data for system.protected_ts_meta... writing output: debug/system.protected_ts_meta.txt... -[cluster] retrieving SQL data for system.protected_ts_meta: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.protected_ts_meta: last request failed: ... [cluster] retrieving SQL data for system.protected_ts_meta: creating error output: debug/system.protected_ts_meta.txt.err.txt... done [cluster] retrieving SQL data for system.protected_ts_records... writing output: debug/system.protected_ts_records.txt... -[cluster] retrieving SQL data for system.protected_ts_records: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.protected_ts_records: last request failed: ... [cluster] retrieving SQL data for system.protected_ts_records: creating error output: debug/system.protected_ts_records.txt.err.txt... done [cluster] retrieving SQL data for system.rangelog... writing output: debug/system.rangelog.txt... -[cluster] retrieving SQL data for system.rangelog: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.rangelog: last request failed: ... [cluster] retrieving SQL data for system.rangelog: creating error output: debug/system.rangelog.txt.err.txt... done [cluster] retrieving SQL data for system.replication_constraint_stats... writing output: debug/system.replication_constraint_stats.txt... -[cluster] retrieving SQL data for system.replication_constraint_stats: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.replication_constraint_stats: last request failed: ... [cluster] retrieving SQL data for system.replication_constraint_stats: creating error output: debug/system.replication_constraint_stats.txt.err.txt... done [cluster] retrieving SQL data for system.replication_critical_localities... writing output: debug/system.replication_critical_localities.txt... -[cluster] retrieving SQL data for system.replication_critical_localities: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.replication_critical_localities: last request failed: ... [cluster] retrieving SQL data for system.replication_critical_localities: creating error output: debug/system.replication_critical_localities.txt.err.txt... done [cluster] retrieving SQL data for system.replication_stats... writing output: debug/system.replication_stats.txt... -[cluster] retrieving SQL data for system.replication_stats: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.replication_stats: last request failed: ... [cluster] retrieving SQL data for system.replication_stats: creating error output: debug/system.replication_stats.txt.err.txt... done [cluster] retrieving SQL data for system.reports_meta... writing output: debug/system.reports_meta.txt... -[cluster] retrieving SQL data for system.reports_meta: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.reports_meta: last request failed: ... [cluster] retrieving SQL data for system.reports_meta: creating error output: debug/system.reports_meta.txt.err.txt... done [cluster] retrieving SQL data for system.role_id_seq... writing output: debug/system.role_id_seq.txt... -[cluster] retrieving SQL data for system.role_id_seq: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.role_id_seq: last request failed: ... [cluster] retrieving SQL data for system.role_id_seq: creating error output: debug/system.role_id_seq.txt.err.txt... done [cluster] retrieving SQL data for system.role_members... writing output: debug/system.role_members.txt... -[cluster] retrieving SQL data for system.role_members: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.role_members: last request failed: ... [cluster] retrieving SQL data for system.role_members: creating error output: debug/system.role_members.txt.err.txt... done [cluster] retrieving SQL data for system.role_options... writing output: debug/system.role_options.txt... -[cluster] retrieving SQL data for system.role_options: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.role_options: last request failed: ... [cluster] retrieving SQL data for system.role_options: creating error output: debug/system.role_options.txt.err.txt... done [cluster] retrieving SQL data for system.scheduled_jobs... writing output: debug/system.scheduled_jobs.txt... -[cluster] retrieving SQL data for system.scheduled_jobs: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.scheduled_jobs: last request failed: ... [cluster] retrieving SQL data for system.scheduled_jobs: creating error output: debug/system.scheduled_jobs.txt.err.txt... done [cluster] retrieving SQL data for system.settings... writing output: debug/system.settings.txt... -[cluster] retrieving SQL data for system.settings: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.settings: last request failed: ... [cluster] retrieving SQL data for system.settings: creating error output: debug/system.settings.txt.err.txt... done [cluster] retrieving SQL data for system.span_configurations... writing output: debug/system.span_configurations.txt... -[cluster] retrieving SQL data for system.span_configurations: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.span_configurations: last request failed: ... [cluster] retrieving SQL data for system.span_configurations: creating error output: debug/system.span_configurations.txt.err.txt... done [cluster] retrieving SQL data for system.sql_instances... writing output: debug/system.sql_instances.txt... -[cluster] retrieving SQL data for system.sql_instances: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.sql_instances: last request failed: ... [cluster] retrieving SQL data for system.sql_instances: creating error output: debug/system.sql_instances.txt.err.txt... done [cluster] retrieving SQL data for system.sqlliveness... writing output: debug/system.sqlliveness.txt... -[cluster] retrieving SQL data for system.sqlliveness: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.sqlliveness: last request failed: ... [cluster] retrieving SQL data for system.sqlliveness: creating error output: debug/system.sqlliveness.txt.err.txt... done [cluster] retrieving SQL data for system.statement_diagnostics... writing output: debug/system.statement_diagnostics.txt... -[cluster] retrieving SQL data for system.statement_diagnostics: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.statement_diagnostics: last request failed: ... [cluster] retrieving SQL data for system.statement_diagnostics: creating error output: debug/system.statement_diagnostics.txt.err.txt... done [cluster] retrieving SQL data for system.statement_diagnostics_requests... writing output: debug/system.statement_diagnostics_requests.txt... -[cluster] retrieving SQL data for system.statement_diagnostics_requests: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.statement_diagnostics_requests: last request failed: ... [cluster] retrieving SQL data for system.statement_diagnostics_requests: creating error output: debug/system.statement_diagnostics_requests.txt.err.txt... done [cluster] retrieving SQL data for system.table_statistics... writing output: debug/system.table_statistics.txt... -[cluster] retrieving SQL data for system.table_statistics: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.table_statistics: last request failed: ... [cluster] retrieving SQL data for system.table_statistics: creating error output: debug/system.table_statistics.txt.err.txt... done +[cluster] retrieving SQL data for system.task_payloads... writing output: debug/system.task_payloads.txt... +[cluster] retrieving SQL data for system.task_payloads: last request failed: ... +[cluster] retrieving SQL data for system.task_payloads: creating error output: debug/system.task_payloads.txt.err.txt... done [cluster] retrieving SQL data for system.tenant_settings... writing output: debug/system.tenant_settings.txt... -[cluster] retrieving SQL data for system.tenant_settings: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.tenant_settings: last request failed: ... [cluster] retrieving SQL data for system.tenant_settings: creating error output: debug/system.tenant_settings.txt.err.txt... done +[cluster] retrieving SQL data for system.tenant_tasks... writing output: debug/system.tenant_tasks.txt... +[cluster] retrieving SQL data for system.tenant_tasks: last request failed: ... +[cluster] retrieving SQL data for system.tenant_tasks: creating error output: debug/system.tenant_tasks.txt.err.txt... done [cluster] retrieving SQL data for system.tenant_usage... writing output: debug/system.tenant_usage.txt... -[cluster] retrieving SQL data for system.tenant_usage: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.tenant_usage: last request failed: ... [cluster] retrieving SQL data for system.tenant_usage: creating error output: debug/system.tenant_usage.txt.err.txt... done [cluster] retrieving SQL data for system.tenants... writing output: debug/system.tenants.txt... -[cluster] retrieving SQL data for system.tenants: last request failed: ERROR: query execution canceled due to statement timeout (SQLSTATE 57014) +[cluster] retrieving SQL data for system.tenants: last request failed: ... [cluster] retrieving SQL data for system.tenants: creating error output: debug/system.tenants.txt.err.txt... done [cluster] requesting nodes... received response... -[cluster] requesting nodes: last request failed: operation "[cluster] requesting nodes" timed out after... +[cluster] requesting nodes: last request failed: ... [cluster] requesting nodes: creating error output: debug/nodes.json.err.txt... done +[cluster] retrieving the node status... done [cluster] requesting liveness... received response... -[cluster] requesting liveness: last request failed: operation "[cluster] requesting liveness" timed out after... +[cluster] requesting liveness: last request failed: ... [cluster] requesting liveness: creating error output: debug/liveness.json.err.txt... done [cluster] requesting tenant ranges... received response... -[cluster] requesting tenant ranges: last request failed: rpc error: ... +[cluster] requesting tenant ranges: last request failed: ... [cluster] requesting tenant ranges: creating error output: debug/tenant_ranges.err.txt... done [node 1] node status... converting to JSON... writing binary output: debug/nodes/1/status.json... done [node 1] using SQL connection URL: postgresql://... @@ -213,11 +220,13 @@ debug zip --concurrency=1 --cpu-profile-duration=0 /dev/null --timeout=.5s [node 1] retrieving SQL data for crdb_internal.node_distsql_flows... writing output: debug/nodes/1/crdb_internal.node_distsql_flows.txt... done [node 1] retrieving SQL data for crdb_internal.node_execution_insights... writing output: debug/nodes/1/crdb_internal.node_execution_insights.txt... done [node 1] retrieving SQL data for crdb_internal.node_inflight_trace_spans... writing output: debug/nodes/1/crdb_internal.node_inflight_trace_spans.txt... done +[node 1] retrieving SQL data for crdb_internal.node_memory_monitors... writing output: debug/nodes/1/crdb_internal.node_memory_monitors.txt... done [node 1] retrieving SQL data for crdb_internal.node_metrics... writing output: debug/nodes/1/crdb_internal.node_metrics.txt... done [node 1] retrieving SQL data for crdb_internal.node_queries... writing output: debug/nodes/1/crdb_internal.node_queries.txt... done [node 1] retrieving SQL data for crdb_internal.node_runtime_info... writing output: debug/nodes/1/crdb_internal.node_runtime_info.txt... done [node 1] retrieving SQL data for crdb_internal.node_sessions... writing output: debug/nodes/1/crdb_internal.node_sessions.txt... done [node 1] retrieving SQL data for crdb_internal.node_statement_statistics... writing output: debug/nodes/1/crdb_internal.node_statement_statistics.txt... done +[node 1] retrieving SQL data for crdb_internal.node_tenant_capabilities_cache... writing output: debug/nodes/1/crdb_internal.node_tenant_capabilities_cache.txt... done [node 1] retrieving SQL data for crdb_internal.node_transaction_statistics... writing output: debug/nodes/1/crdb_internal.node_transaction_statistics.txt... done [node 1] retrieving SQL data for crdb_internal.node_transactions... writing output: debug/nodes/1/crdb_internal.node_transactions.txt... done [node 1] retrieving SQL data for crdb_internal.node_txn_execution_insights... writing output: debug/nodes/1/crdb_internal.node_txn_execution_insights.txt... done @@ -229,16 +238,16 @@ debug zip --concurrency=1 --cpu-profile-duration=0 /dev/null --timeout=.5s [node 1] requesting stacks with labels... received response... writing binary output: debug/nodes/1/stacks_with_labels.txt... done [node 1] requesting heap profile... received response... writing binary output: debug/nodes/1/heap.pprof... done [node 1] requesting heap file list... received response... -[node 1] requesting heap file list: last request failed: rpc error: ... +[node 1] requesting heap file list: last request failed: ... [node 1] requesting heap file list: creating error output: debug/nodes/1/heapprof.err.txt... done [node 1] requesting goroutine dump list... received response... -[node 1] requesting goroutine dump list: last request failed: rpc error: ... +[node 1] requesting goroutine dump list: last request failed: ... [node 1] requesting goroutine dump list: creating error output: debug/nodes/1/goroutines.err.txt... done [node 1] requesting log file ... [node 1] 1 log file ... [node 1] [log file ... [node 1] requesting ranges... received response... done -[node 1] 58 ranges found +[node 1] 63 ranges found [node 1] writing range 1... converting to JSON... writing binary output: debug/nodes/1/ranges/1.json... done [node 1] writing range 2... converting to JSON... writing binary output: debug/nodes/1/ranges/2.json... done [node 1] writing range 3... converting to JSON... writing binary output: debug/nodes/1/ranges/3.json... done @@ -297,6 +306,11 @@ debug zip --concurrency=1 --cpu-profile-duration=0 /dev/null --timeout=.5s [node 1] writing range 56... converting to JSON... writing binary output: debug/nodes/1/ranges/56.json... done [node 1] writing range 57... converting to JSON... writing binary output: debug/nodes/1/ranges/57.json... done [node 1] writing range 58... converting to JSON... writing binary output: debug/nodes/1/ranges/58.json... done +[node 1] writing range 59... converting to JSON... writing binary output: debug/nodes/1/ranges/59.json... done +[node 1] writing range 60... converting to JSON... writing binary output: debug/nodes/1/ranges/60.json... done +[node 1] writing range 61... converting to JSON... writing binary output: debug/nodes/1/ranges/61.json... done +[node 1] writing range 62... converting to JSON... writing binary output: debug/nodes/1/ranges/62.json... done +[node 1] writing range 63... converting to JSON... writing binary output: debug/nodes/1/ranges/63.json... done [cluster] pprof summary script... writing binary output: debug/pprof-summary.sh... done [cluster] hot range summary script... writing binary output: debug/hot-ranges.sh... done [cluster] tenant hot range summary script... writing binary output: debug/hot-ranges-tenant.sh... done diff --git a/pkg/cli/zip_test.go b/pkg/cli/zip_test.go index e3789105dd9d..2b3d19b6f875 100644 --- a/pkg/cli/zip_test.go +++ b/pkg/cli/zip_test.go @@ -258,7 +258,6 @@ create table defaultdb."../system"(x int); // need the SSL certs dir to run a CLI test securely. func TestUnavailableZip(t *testing.T) { defer leaktest.AfterTest(t)() - skip.WithIssue(t, 53306, "flaky test") skip.UnderShort(t) // Race builds make the servers so slow that they report spurious @@ -324,11 +323,7 @@ func TestUnavailableZip(t *testing.T) { // Strip any non-deterministic messages. out = eraseNonDeterministicZipOutput(out) - - // In order to avoid non-determinism here, we erase the output of - // the range retrieval. - re := regexp.MustCompile(`(?m)^(requesting ranges.*found|writing: debug/nodes/\d+/ranges).*\n`) - out = re.ReplaceAllString(out, ``) + out = eraseNonDeterministicErrors(out) datadriven.RunTest(t, datapathutils.TestDataPath(t, "zip", "unavailable"), func(t *testing.T, td *datadriven.TestData) string { @@ -371,6 +366,21 @@ func eraseNonDeterministicZipOutput(out string) string { return out } +func eraseNonDeterministicErrors(out string) string { + // In order to avoid non-determinism here, we erase the output of + // the range retrieval. + re := regexp.MustCompile(`(?m)^(requesting ranges.*found|writing: debug/nodes/\d+/ranges).*\n`) + out = re.ReplaceAllString(out, ``) + + re = regexp.MustCompile(`(?m)^\[cluster\] requesting data for debug\/settings.*\n`) + out = re.ReplaceAllString(out, ``) + + // In order to avoid non-determinism here, we truncate error messages. + re = regexp.MustCompile(`(?m)last request failed: .*$`) + out = re.ReplaceAllString(out, `last request failed: ...`) + return out +} + // This tests the operation of zip over partial clusters. // // We cannot combine this test with TestZip above because TestPartialZip