Hi Devs,

I saw a few places where we've used -1 as the entity hash value during
locking, and there is one comment saying that "lock the dataset granule" in
FlushDatasetOperatorDescriptor [1]. However, after checking the source code
of ConcurrentLockManager, I didn't see any places that actually support
dataset granule locking. I also wrote a test case to perform a dataset S
lock and then ingest data, which fails because data ingestions can still go
through. I was wondering do we actually support dataset granule locking
right now?




[1]

https://github.com/apache/asterixdb/blob/5070d633eaee536c20706e59891a44a6257d8bd8/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/operators/std/FlushDatasetOperatorDescriptor.java#L82

Reply via email to