Skip to content

Commit 05b8d4d

Browse files
cleanup
1 parent ab915ef commit 05b8d4d

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

test/ginkgo-e2e/utils/query_logs_api_utils.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,18 +151,7 @@ func CompareResourcesInLogsAndKubeAPI(K8sClient *kubernetes.Clientset, logsClien
151151
return CompareResourcesHelper(logsClient, resourceID, query, resources)
152152
}
153153

154-
// GetComputerFromContainerLog queries the Log Analytics workspace for
155-
// the number of ContainerLogV2 rows ingested per node (Computer) within the
156-
// given time window (e.g. "5m"). Returns a map keyed by lowercased Computer
157-
// name with the row count as value.
158-
//
159-
// ContainerLogV2 and ContainerLog are mutually exclusive — a cluster writes
160-
// to one or the other based on its schema configuration. This helper only
161-
// falls back to ContainerLog when the ContainerLogV2 query *errors* (e.g.
162-
// the V2 table does not exist in a V1-configured workspace). A successful V2
163-
// query that returns zero rows is treated as a real ingestion failure and
164-
// surfaced as an empty map; callers must NOT interpret that as a reason to
165-
// fall back, otherwise V2 ingestion failures would be silently masked.
154+
166155
func GetComputerFromContainerLog(logsClient *azquery.LogsClient, resourceID string, window string) (map[string]int64, error) {
167156
counts, v2Err := queryCountsByComputer(logsClient, resourceID, "ContainerLogV2", window)
168157
if v2Err == nil {

0 commit comments

Comments
 (0)