Skip to content

Commit d8c1383

Browse files
remove unnecessary updates which are deadlock prone
Signed-off-by: Pawel Leszczynski <leszczynski.pawel@gmail.com>
1 parent 1ce9aca commit d8c1383

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

33
## [Unreleased](https://github.com/MarquezProject/marquez/compare/0.36.0...HEAD)
4+
### Fixed
5+
* API: remove unnecessary DB updates [`#2531`](https://github.com/MarquezProject/marquez/pull/2531)[@pawel-big-lebowski]( https://github.com/pawel-big-lebowski)
6+
*Prevent updates that are not needed and are deadlock prone.*
47

58
## [0.36.0](https://github.com/MarquezProject/marquez/compare/0.35.0...0.36.0) - 2023-06-27
69
### Added

api/src/main/java/marquez/db/SourceDao.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public interface SourceDao {
5050
+ ") ON CONFLICT(name) DO UPDATE SET "
5151
+ "type = EXCLUDED.type, "
5252
+ "updated_at = EXCLUDED.updated_at, "
53-
+ "name = EXCLUDED.name, "
5453
+ "connection_url = EXCLUDED.connection_url "
5554
+ "RETURNING *")
5655
SourceRow upsert(UUID uuid, String type, Instant now, String name, String connectionUrl);
@@ -75,7 +74,6 @@ public interface SourceDao {
7574
+ ") ON CONFLICT(name) DO UPDATE SET "
7675
+ "type = EXCLUDED.type, "
7776
+ "updated_at = EXCLUDED.updated_at, "
78-
+ "name = EXCLUDED.name, "
7977
+ "connection_url = EXCLUDED.connection_url, "
8078
+ "description = EXCLUDED.description "
8179
+ "RETURNING *")

0 commit comments

Comments
 (0)