Bugfix: self-sharding by key when primaryOnly is false
Testing for 6cdb8cdd revealed that self-sharding by key (using the shard:key
field, implemented in VCL with by=KEY
for the shard director) is buggy. This appears to be because in generated VCL, the invocation of vk8s_cluster.backend()
at the beginning of vk8s_cluster_fetch
is evaluated without the key. If that is correct, then a fix will require fixes in the VCL template.
We've emphasized primaryOnly because of its use in project work, but of course self-sharding by key should correctly without it.