deniskuzZ commented on PR #5722: URL: https://github.com/apache/hive/pull/5722#issuecomment-2780823287
> [3567afc](https://github.com/apache/hive/pull/5722/commits/3567afc905a2f5f14ee47e651b99ded1b6a15ddc) > > The tests `TestTxnCommands#testParallelTruncateAnalyzeStats` and `TestTxnCommandsWithSplitUpdateAndVectorization#testParallelTruncateAnalyzeStats` were failing due to the default value change of `hive.txn.xlock.write` to `false`. > > When `hive.txn.xlock.write=false`, the `ANALYZE` query throws a `RuntimeException` if it attempts to acquire a `SHARED_READ` lock after the `TRUNCATE` query has already acquired `EXCL_WRITE` lock, contrary to the expected test results. > > This commit adjusts `hive.txn.xlock.write` to `true` in test to address this issue. `hive.txn.xlock.write` doesn't change the locking behavior used for `TRUNCATE` or `ANALYZE`. `TRUNCATE` takes an `EXCLUSIVE` lock and `ANALYZE` - `SHARED_READ` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org