No-op to invocation status table v1 when table is empty on boot
Completely disable codepaths using invocation status v1 in InvocationStatusTable when the key space of invocation status v1 is empty. We can do so because in the next release, no one will write to the invocation status v1 key space anymore, so if the table is empty will remain empty for the rest of the execution.
We can probably add a check for that when initializing the PartitionStore.
This is a followup of https://github.com/restatedev/restate/pull/2016
/take
@slinkydeveloper is this a release blocker for 1.2?
It's not a blocker, it was just a perf optimization. we can ignore.
@tillrohrmann i think we can close this, it's irrelevant at this point unless someone fixes it for 1.3 (which is due soon), as in 1.4 we remove this table once and for all.
Opened a similar one for idempotency table https://github.com/restatedev/restate/issues/2983
Done