Skip to content
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

Compaction not working on Cockroach DB? #87

Open
afritzler opened this issue May 25, 2021 · 6 comments
Open

Compaction not working on Cockroach DB? #87

afritzler opened this issue May 25, 2021 · 6 comments

Comments

@afritzler
Copy link

I am running a kube-apiserver via kine on top of a CockroachDB. In the kine logs I see a lot of those errors:

time="2021-05-25T13:41:47Z" level=error msg="Compact failed: failed to compact to revision 82: pq: at or near \"where\": syntax error: unimplemented: this syntax"
time="2021-05-25T13:46:47Z" level=error msg="Compact failed: failed to compact to revision 290: pq: at or near \"where\": syntax error: unimplemented: this syntax"
time="2021-05-25T13:51:47Z" level=error msg="Compact failed: failed to compact to revision 498: pq: at or near \"where\": syntax error: unimplemented: this syntax"
time="2021-05-25T13:56:47Z" level=error msg="Compact failed: failed to compact to revision 705: pq: at or near \"where\": syntax error: unimplemented: this syntax"

I am running the latest master build of kine and CockroachDB version V21.1.1. sql.defaults.serial_normalization in my CockroachDB cluster is set to sql_sequence.

@brandond
Copy link
Contributor

Sounds like a new defect with cockroachdb?

@afritzler
Copy link
Author

afritzler commented May 26, 2021

Did somebody manage to run kine stable on cockroachDB? If so what version were you using?

@brandond
Copy link
Contributor

If you search for cockroachdb issues here and on the k3s repo, you should find a few discussions about it. We don't technically support it but a few folks have got it to work.

@afritzler
Copy link
Author

Ok it looks like this is the root cause of the compaction not working. cockroachdb/cockroach#40963

@afritzler
Copy link
Author

So for me using the compaction query from the sqlite driver did the trick: afritzler@f3130cc

@brandond
Copy link
Contributor

That's interesting, because on some releases of postgres the sqlite query won't execute at all...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants