Commit 6d2fe30
committed
[yugabyte#26481] DocDB: Handle exclusive object lock(s) release for non schema changing DDL/DML(s)
Summary:
Commit yugabyte@47c5cf2 handled acquire/release for schema changing DDLs alone.
Problems:
1. In YB, we seem to have another category of DDLs which don't perform schema changes, but might take exclusive object locks. These aren't tracked by master's background DDL verification task.
2. pggate doesn't seem to tag statements like 'BACKFILL INDEX' as DDL, but they end up taking exclusive object locks.
When table locking feature is enabled, the release of exclusive locks taken by above type transactions wasn't handled in the above referenced commit. This diff addresses the issue by making `PgClientSession` responsible for triggering release of exclusive locks whenever necessary.
Note: Failure handling on the exclusive locks release path from the tserver side can go in a subsequent change. Tracked by yugabyte#26498
Jira: DB-15848
Test Plan:
Jenkins
./yb_build.sh --cxx-test='TEST_F(PgObjectLocksTest, BackfillIndexSanityTest) {'
./yb_build.sh --cxx-test='TEST_F(PgObjectLocksTest, ReleaseExpiredLocksInvalidatesCatalogCache) {'
Reviewers: rthallam, amitanand, zdrudi, myang, esheng
Reviewed By: amitanand, zdrudi
Subscribers: ybase, yql
Differential Revision: https://phorge.dev.yugabyte.com/D427061 parent a3354b0 commit 6d2fe30
File tree
6 files changed
+320
-136
lines changed- src/yb
- integration-tests
- master
- tserver
- yql
- pggate
- pgwrapper
6 files changed
+320
-136
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
| |||
1368 | 1367 | | |
1369 | 1368 | | |
1370 | 1369 | | |
1371 | | - | |
1372 | | - | |
1373 | | - | |
1374 | | - | |
1375 | | - | |
1376 | | - | |
1377 | | - | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
1395 | | - | |
1396 | | - | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
1425 | | - | |
1426 | 1370 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | | - | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
602 | 603 | | |
603 | 604 | | |
604 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
605 | 631 | | |
606 | | - | |
| 632 | + | |
607 | 633 | | |
| 634 | + | |
608 | 635 | | |
609 | 636 | | |
610 | 637 | | |
| |||
636 | 663 | | |
637 | 664 | | |
638 | 665 | | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
| 666 | + | |
659 | 667 | | |
660 | 668 | | |
661 | 669 | | |
| |||
683 | 691 | | |
684 | 692 | | |
685 | 693 | | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
686 | 699 | | |
687 | 700 | | |
688 | 701 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
631 | 635 | | |
632 | 636 | | |
633 | 637 | | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
639 | 646 | | |
640 | 647 | | |
641 | 648 | | |
| |||
791 | 798 | | |
792 | 799 | | |
793 | 800 | | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | 801 | | |
798 | 802 | | |
799 | 803 | | |
| |||
0 commit comments