-
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
No memory budget to create computed column #34901
Comments
Thanks for the report! We'll fix this right away - the issue is that the computed column backfiller doesn't have memory accounting plumbed through. |
Simple repro:
|
we found that any backfill work that requires a monitor is broken (eg DEFAULT). Suspecting that distsql planning ctx for background tasks is improperly initialized. |
@knz that's from 2.1.4, right? I was able to reproduce on 2.1.4 and 2.1.6, but not on master. |
It did reproduce in |
I think this now works probably due to removing the active mem account in #34935, I'll leave it to @jordanlewis to confirm |
OK but that being said, isn't it still a problem that the monitor root is not configured properly on distsql backfills? |
At a minimum we should add tests for the computed column and default value use cases in a PR so we don't have a regression. |
Add regression tests for a bug where backfilling a computed column or a column with a default value using a builtin function would cause a `memory budget exceeded` error (cockroachdb#34901). This was fixed by cockroachdb#34935. Release note: None
Add regression tests for a bug where backfilling a computed column or a column with a default value using a builtin function would cause a `memory budget exceeded` error (cockroachdb#34901). This was fixed by cockroachdb#34935. Release note: None
35565: sqlsmith: various improvements r=mjibson a=mjibson 35662: sql: add regression tests for memory accounting bug r=lucy-zhang a=lucy-zhang Add regression tests for a bug where backfilling a computed column or a column with a default value using a builtin function would cause a `memory budget exceeded` error (#34901). This was fixed by #34935. Release note: None Co-authored-by: Matt Jibson <[email protected]> Co-authored-by: Lucy Zhang <[email protected]>
Describe the problem
Can't create computed column - memory budget of 0 reported.
To Reproduce
Gives this error message (there are less than 20,000 rows in the table)
and this in the log file
Additional data / screenshots
This is running on a Kubernetes cluster (4 VMs - 30gb memory in total)
Using your standard secure 2.1.4 yaml file. The only change is the disk size and type (the DB is currently small)
I note that the standard exec command doesn't specify a -max-disk-temp-storage. I haven't tried changing the flags at this point as I assume the default would be used. I expect the problem is here somewhere but I don't know how I should change it, however I noticed this related issue #19689 which should give this error if it was related to that flag rather than one Im seeing.
Here's the exec command from the .yaml
Environment:
Additional context
Have had other weird errors when using concat in sql queries in the past few days - assume this is all related
The text was updated successfully, but these errors were encountered: