The readable view needs a unique context to allow correct lockfile cleanup.
@@ -4381,7 +4381,7 @@ cdef class DenseArray(Array):
values.append(val)
else:
dtype = self.schema.attr(self.view_attr).dtype
- readable = DenseArray(self.uri, 'r')
+ with DenseArray(self.uri, 'r', ctx=Ctx(self.ctx.config())) as readable:
current = readable[selection]
current[self.view_attr] = \
np.ascontiguousarray(val, dtype=dtype)
