k3s-io / kine

Run Kubernetes on MySQL, Postgres, sqlite, dqlite, not etcd.
Apache License 2.0
1.64k stars 238 forks source link

WIP: Fix prev_revision NULL #91

Closed brandond closed 3 years ago

brandond commented 3 years ago

Add some tests to client; fix issue preventing Delete from working - it is only implemented within a transaction.

End goal is to fix error seen occasionally in CI:

[[36mSERIAL-mysql[m] time="2021-06-25T19:57:18.673547050Z" level=info msg="Database tables and indexes are up to date"
[[36mSERIAL-mysql[m] time="2021-06-25T19:57:18.813165230Z" level=info msg="Kine listening on unix://kine.sock"
[[36mSERIAL-mysql[m] time="2021-06-25T19:57:18.816175405Z" level=error msg="error while range on /bootstrap /bootstrap: sql: Scan error on column index 0, name \"prev_revision\": converting NULL to int64 is unsupported"
[[36mSERIAL-mysql[m] {"level":"warn","ts":"2021-06-25T19:57:18.816Z","caller":"clientv3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"endpoint://client-165d6aa6-39a1-4403-a907-ed1b8e024777/kine.sock","attempt":0,"error":"rpc error: code = Unknown desc = sql: Scan error on column index 0, name \"prev_revision\": converting NULL to int64 is unsupported"}
[[36mSERIAL-mysql[m] time="2021-06-25T19:57:18.816382180Z" level=fatal msg="starting kubernetes: preparing server: rpc error: code = Unknown desc = sql: Scan error on column index 0, name \"prev_revision\": converting NULL to int64 is unsupported"