Created
March 19, 2024 09:58
-
-
Save kavirajk/5e30212985ed0db72d3897a3a2d18aa9 to your computer and use it in GitHub Desktop.
Additional log lines to show the bug in action.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(first-time) | |
Debug!! val {} => 598 @[1710835200000] err <nil> expr sum(count_over_time({job="varlogs"} != "cache17"[1h])) | |
Debug!! val {} => 598 @[1710835200000] err <nil> expr sum(downstream<sum(count_over_time({job="varlogs"} != "cache17"[1h])), shard=<nil>>) | |
Debug!! val {} => 1803 @[1710831600000] err <nil> expr sum(count_over_time({job="varlogs"} != "cache17"[1h])) | |
Debug!! val {} => 1803 @[1710831600000] err <nil> expr sum(downstream<sum(count_over_time({job="varlogs"} != "cache17"[1h])), shard=<nil>>) | |
Debug!! val {} => 18 @[1710835690422] err <nil> expr sum(count_over_time({job="varlogs"} != "cache17"[8m10s422ms])) | |
Debug!! val {} => 18 @[1710835690422] err <nil> expr sum(downstream<sum(count_over_time({job="varlogs"} != "cache17"[8m10s422ms])), shard=<nil>>) | |
Debug!! val {} => 659 @[1710828000000] err <nil> expr sum(count_over_time({job="varlogs"} != "cache17"[51m49s577ms])) | |
Debug!! val {} => 659 @[1710828000000] err <nil> expr sum(downstream<sum(count_over_time({job="varlogs"} != "cache17"[51m49s577ms])), shard=<nil>>) | |
Debug!! val {} => 0.285 @[1710835690422] err <nil> expr sum((sum without ()(downstream<sum(count_over_time({job="varlogs"} != "cache17"[51m49s577ms])), shard=<nil>> ++ downstream<sum(count_over_time({job="varlogs"} != "cache17"[1h])), shard=<nil>> ++ downstream<sum(count_over_time({job="varlogs"} != "cache17"[1h])), shard=<nil>> ++ downstream<sum(count_over_time({job="varlogs"} != "cache17"[8m10s422ms])), shard=<nil>>) / 10800)) | |
Debug!!! split_by_range result-value [{} => 0.285 @[1710835690.422]] | |
(second-time) <- Buggy!!!!! | |
Debug!! val {} => 598 @[1710835200000] err <nil> expr sum(count_over_time({job="varlogs"} != "cache17"[1h])) | |
Debug!! val {} => 598 @[1710835200000] err <nil> expr sum(downstream<sum(count_over_time({job="varlogs"} != "cache17"[1h])), shard=<nil>>) | |
Debug!! val {} => 55 @[1710835764723] err <nil> expr sum(count_over_time({job="varlogs"} != "cache17"[9m24s723ms])) | |
Debug!! val {} => 55 @[1710835764723] err <nil> expr sum(downstream<sum(count_over_time({job="varlogs"} != "cache17"[9m24s723ms])), shard=<nil>>) | |
Debug!! val {} => 659 @[1710828000000] err <nil> expr sum(count_over_time({job="varlogs"} != "cache17"[50m35s276ms])) | |
Debug!! val {} => 659 @[1710828000000] err <nil> expr sum(downstream<sum(count_over_time({job="varlogs"} != "cache17"[50m35s276ms])), shard=<nil>>) | |
Debug!! val {} => 0.12148148148148148 @[1710835764723] err <nil> expr sum((sum without ()(downstream<sum(count_over_time({job="varlogs"} != "cache17"[50m35s276ms])), shard=<nil>> ++ downstream<sum(count_over_time({job="varlogs"} != "cache17"[1h])), shard=<nil>> ++ downstream<sum(count_over_time({job="varlogs"} != "cache17"[1h])), shard=<nil>> ++ downstream<sum(count_over_time({job="varlogs"} != "cache17"[9m24s723ms])), shard=<nil>>) / 10800)) | |
Debug!!! split_by_range result-value [{} => 0.12148148148148148 @[1710835764.723]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
explanation:
1083
for one specific subquery was never used in calculating final result