-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Can't use debug merge-logs on logs from 20.2 unless explicitly provide flag #68278
Comments
Would it work if cluster was upgraded and log format changed? |
Making this work is going to require a very small code change. The decoder has the capability to auto detect the format per file. We're just not using that. |
I think decoder tries to match regexp to guess format, but it fails because there's nothing like that in the logs as far as i can see. |
These formats are so similar that it's hard to tell the difference. In the real world we should have the headers which should help us most of the time. Here's a WIP patch that does something but not enough: #68282 |
I'm probably not going to look at this any more. |
Log parsing seems to be a rats nest if we want to cover old logs reliable where we don't have format type specifier. I just created a PR to default it. Not sure if spending lots of time on it is justifiable. |
As an example, this is the beginning of log from cockroach-v20.1.17
if I run
I get
I tried that with all major versions and 21.1.? has
which would let it pass beyond panic. |
While defaulting to |
cc @cameronnunez when you get back we should take a look at this |
Yes, older logs do not have log format specification in the headers. This was introduced with #66096.
I think this makes sense as a short term solution if we need to look over old logs for users and upgrading is not desired. We will probably want to go back to failing after some time since having logs with format specification is desirable, and However, one thing to take note of is that older logs can be |
67936: backupccl: set a low GC TTL on the temporary system tables r=pbardea a=pbardea Cluster restore creates a temporary system table to hold system table data before transactionally writing it to the real system tables. This table is only persisted during the lifetime of the restore and is dropped at the end of the restore. It should be GC'd quickly since it's of no use after the restore finishes. Release note (bug fix): Ensure that auxilary tables used during cluster restore are GC'd quickly afterwards. 69018: log: replace a panic with an error in debug merge-logs r=ajwerner,knz,otan a=cameronnunez Related issue: [#68278](#68278) Release justification: bug fix Release note (bug fix): Users would receive a panic message when the log parser fails to extract log file formats. This has been replaced with a helpful error message. 69607: kvserver: Run one ScanInterleavedIntents per store concurrently r=dt a=itsbilal Currently, lock table migration related requests (Barrier, ScanInterleavedIntents, PushTxn, ResolveIntent), are only run with a concurrency of 4 regardless of the size of the cluster. This change increases that to 4 * numNodes, and adds a new mechanism to limit the ScanInterleavedIntents on the receiver side to 1 per store. This throttle is applied before latches are grabbed. Only ScanInterleavedIntents needs to be rate-limited as it's by far the heaviest component in the separated intents migrations. Release justification: Category 2, low-risk update to new functionality Release note: None. Co-authored-by: Paul Bardea <[email protected]> Co-authored-by: Cameron Nunez <[email protected]> Co-authored-by: Bilal Akhtar <[email protected]>
Fixes cockroachdb#68278. Log parsers require the flag --format when parsing older logs (because they do not contain format specification). With this patch, this is no longer a requirement as the log format is now inferred based on the structure of the log if no log format specification exists. Release justification: bug fix Release note (bug fix): The debug merge-logs command no longer returns an error when the log decoder attempts to parse older logs.
Fixes cockroachdb#68278. Log parsers require the flag --format when parsing older logs (because they do not contain format specification). With this patch, this is no longer a requirement as the log format is now inferred based on the structure of the log if no log format specification exists. Release justification: bug fix Release note (bug fix): The debug merge-logs command no longer returns an error when the log decoder attempts to parse older logs.
Fixes cockroachdb#68278. Log parsers require the flag --format when parsing older logs (because they do not contain format specification). With this patch, this is no longer a requirement as the log format is now inferred based on the structure of the log if no log format specification exists. Release justification: bug fix Release note (bug fix): The debug merge-logs command no longer returns an error when the log decoder attempts to parse older logs.
68282: cli,log: allow use of `debug merge-logs` on older logs r=knz a=ajwerner Fixes [#68278](#68278). Log parsers require the flag `--format` when parsing older logs (because they do not contain format specification). With this patch, this is no longer a requirement as the log format is now inferred based on the structure of the log if no log format specification exists. Release justification: bug fix Release note (bug fix): The debug merge-logs command no longer returns an error when the log decoder attempts to parse older logs. 69903: importccl: add support for IMPORT INTO RBR table r=arulajmani,ajstorm,dt a=adityamaru This change overrides the `default_to_database_primary_region` and `gateway_region` to always return the primary region of the database of the table being imported into. This allows for IMPORT INTO an RBR table. To ensure that the import is idempotent across resumptions, we cache the primary region of the database being imported into, during planning. This information is store in the job details and flow spec to be used when evaluating the relevant default expr/computed column. Since IMPORT is a job, it does not have an associated session data and so it cannot rely on the planners' implementation of the regional operator. This change also implements the relevant methods in the `importRegionOperator` to allow resolution of the primary region of the database being imported into. Fixes: #69616 Release note (sql change): IMPORT INTO regional by row tables is supported. Release justification: fixes for high-priority or high-severity bugs in existing functionality 70150: server: fix TestAdminAPIJobs failure r=knz a=adityamaru This change sorts the expected job IDs before ensuring that they are equal. Fixes: #69401 Release note: None 70226: changefeedccl: updated retryable error warning message r=wongio123 a=wongio123 Retryable error warning message contained the word "error" Confusing to users because warning message had the word "error" in it Prefaced warning message with "WARNING" Release note (enterprise change): updated retyable error warning message to begin with "WARNING" Closes #69677 70229: [CRDB-9016] ui: fix drag to zoom on custom charts r=Santamaura a=Santamaura This PR addresses the issue where a user creates a custom chart and selects an area to zoom into which leaves the grey highlight after the graph zooms in. This was due to the history prop not being passed into the linegraph component and caused an error to throw when updating the url params. This was resolved by passing in the history to propagate to the linegraph component. Release note (ui change): fix drag to zoom on custom charts https://user-images.githubusercontent.com/17861665/133342585-d7b37e9b-7eb8-4a48-b2c5-814fed62556a.mp4 70262: ui: add column selector to transation page r=maryliag a=maryliag Add column selector to Transaction Page Fixes #70148 <img width="414" alt="Screen Shot 2021-09-15 at 11 28 56 AM" src="https://user-images.githubusercontent.com/1017486/133463202-7ed7ac3a-9614-4101-ad76-8f431defe688.png"> Release justification: Category 4 Release note (ui change): Add column selector to transaction page 70268: clusterversion: remove Start21_1 (no longer applicable) r=irfansharif a=irfansharif Fixes #65200. The last remaining 21.1 version (V21_1) can be removed as part of #69828. Release note: None Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Aditya Maru <[email protected]> Co-authored-by: Alex Wong <[email protected]> Co-authored-by: Santamaura <[email protected]> Co-authored-by: Marylia Gutierrez <[email protected]> Co-authored-by: irfan sharif <[email protected]>
Fixes cockroachdb#68278. Log parsers require the flag --format when parsing older logs (because they do not contain format specification). With this patch, this is no longer a requirement as the log format is now inferred based on the structure of the log if no log format specification exists. Release justification: bug fix Release note (bug fix): The debug merge-logs command no longer returns an error when the log decoder attempts to parse older logs. Co-authored-by: Cameron Nunez <[email protected]>
Describe the problem
When parsing logs from 20.2 format detector will panic unhelpfully. It requires --format crdb-v1 to be passed to proceed which is unfriendly.
To Reproduce
Try
created by cockroach-20.2 and observe
Expected behavior
We should stick to v1 format if detector fails maybe or provide some helpful message at least?
This change was introduced in #65633
The text was updated successfully, but these errors were encountered: