Open andreimatei opened 3 years ago
shouldn't we fix that damn service instead?
that is properly impossible - the crdb-v1 log format is ambiguous and cannot be parsed reliably an faithfully.
That being said I agree that the log retrieval API is still broken. For one, it still accumulates all the log entries in RAM server-side before returning them to the client. That's insane. I think the next step here is to simply remove that API altogether and replace it by a better one.
When looking at this issue together with #59558 which you filed earlier, I think the better thing we can do is to fix / extend the debug merge-log
tool to merge the entries properly.
that is properly impossible - the crdb-v1 log format is ambiguous and cannot be parsed reliably an faithfully.
Why is the "crdb-v1" format relevant, given that we've moved on? Also I never understood why that RPC service needs to parse anything at all.
When looking at this issue together with #59558 which you filed earlier, I think the better thing we can do is to fix / extend the debug merge-log tool to merge the entries properly.
I personally care about how log files look independently of debug merge-logs
. There's a lot of opening log files in your editor.
Why is the "crdb-v1" format relevant, given that we've moved on? Also I never understood why that RPC service needs to parse anything at all.
The RPC code only knows how to parse crdb-v1. It happens to work with crdb-v2 because crdb-v2 was designed to be compatible with crdb-v1 parsers.
Also I never understood why that RPC service needs to parse anything at all.
Because it returns structured protobuf entries, not the raw text of the log file. This is a misdesign from the start.
I personally care about how log files look independently of debug merge-logs. There's a lot of opening log files in your editor.
Hm that is also right. Let's discuss this soon.
Here are a few notes from our discussion today:
I've got a long log line, but not all that long - maybe a few KB. The logging infra seems to break it into multiple messages. This makes for a much worse experience when I need to read it, grep in it, etc. Was there a good reason why we did this - particularly with seemingly such a low char limit? I know we used to have problem #50166 with some crap RPC service truncating 64K lines. But a) the limit there was much larger and b) shouldn't we fix that damn service instead?
Jira issue: CRDB-2674
Epic CRDB-21266