Skip to content

Commit 9b35487

Browse files
Squashed commit of the following:
commit 773cffe174402a1888bac6ff8ea7d63e085eb4cb Author: flypiggy <[email protected]> Date: Tue Sep 30 01:02:46 2025 +0800 test-email commit e7d28272c92f424b4f28aa64fdca4259e9dbf26f Author: flypiggy <[email protected]> Date: Mon Sep 29 18:33:39 2025 +0800 opt commit 518c00fcd86ac96a27d5f11566f179139625854e Merge: d5bb3016 47501c1d Author: flypiggy <[email protected]> Date: Mon Sep 29 17:42:03 2025 +0800 Merge master into feature/support-postgresql-in-xa-mode Resolved conflicts by: - Combining feature's PostgreSQL support with master's test improvements - Using testdata.MockWantTypesMeta from master while keeping PostgreSQL config support - Maintaining both MySQL and PostgreSQL test cases from feature branch - Preserving gomonkey mocking approach from master branch commit d5bb301642f0d7eca8db24bfc0aaeac648968d2c Author: flypiggy <[email protected]> Date: Sun Sep 28 22:16:55 2025 +0800 upd commit d7027e390f1eb9903bdc4ea3457d292f74992d8d Author: flypiggy <[email protected]> Date: Sun Sep 28 21:44:24 2025 +0800 opt commit 47501c1d51f16d54b11304aadc8dff2f683e5aa3 Author: ian <[email protected]> Date: Sun Sep 28 15:09:58 2025 +0800 refactor(gin): improve log message (#901) * refactor(gin): simplify xid check and improve error message * imporve log * adjust the code * update commit df82c31f16d5aa9162140e3aa6ceb26186b96362 Author: jimin <[email protected]> Date: Sun Sep 28 09:46:22 2025 +0800 optimize: fix go vet issue (#892) fix go vet Co-authored-by: FengZhang <[email protected]> commit 5d14d0abfd1e7f57ceeacafb374d5adc1841f82f Author: jimin <[email protected]> Date: Wed Sep 24 14:31:58 2025 +0800 optimize: fix license header format (#893) fix license header format commit 2e5a6ab3223e99b0979a579337fba79cb3cc7462 Author: flypiggy <[email protected]> Date: Wed Sep 24 14:01:12 2025 +0800 upd commit 38de4e1b0224cac0177d97740973006d96159995 Author: flypiggy <[email protected]> Date: Wed Sep 24 13:15:55 2025 +0800 opt-postgres-in-at commit e678270d9f6ec0ba9d75a0196ddd4990b5a4727e Author: flypiggy <[email protected]> Date: Wed Sep 24 02:11:50 2025 +0800 upd commit f9ce25634f21ddbb9a9a2f5460de8a005bfee1e0 Author: flypiggy <[email protected]> Date: Wed Sep 24 01:44:20 2025 +0800 upd commit 4e9c1a24ac3070eb111fdb256777780049015c61 Author: flypiggy <[email protected]> Date: Wed Sep 24 01:44:04 2025 +0800 fix_conflict_from_merge_master commit 717eea63e1fbb4b5244a83bca1e42e05522739a0 Merge: dbfa4522 1625e0a4 Author: flypiggy <[email protected]> Date: Tue Sep 23 23:39:57 2025 +0800 Merge branch 'master' into feature/support-postgresql-in-at-mode commit dbfa4522e20dcf2e74949da5e716e2d5c2f4bef5 Author: flypiggy <[email protected]> Date: Sat Sep 20 01:13:41 2025 +0800 upd commit f4cff88d7b931aefb3999f894b1d3e6f8f645c96 Author: flypiggy <[email protected]> Date: Sat Sep 20 00:54:23 2025 +0800 finish commit ac6324ed79c63666ef33a3c93d638ca177706211 Author: flypiggy <[email protected]> Date: Fri Sep 19 23:41:40 2025 +0800 Update mock_rows.go commit 8ff8a96d012ae48ad7e1a5ba7a4c009e2548f682 Author: flypiggy <[email protected]> Date: Fri Sep 19 23:31:55 2025 +0800 add-init_undolog commit d72f847a2753a08a7c960c85d1f82eb7eeb9db16 Author: flypiggy <[email protected]> Date: Fri Sep 19 23:09:02 2025 +0800 add-postgres-multi_undolog_builder commit ad340b13ea60d0f3b9b6cb870076ba8ca7a5681a Author: flypiggy <[email protected]> Date: Fri Sep 19 22:19:31 2025 +0800 add-postgres_multi_update_undolog_builder commit e4c6afec38a70ef05b7961e0ea2cc0d6577b26f4 Author: flypiggy <[email protected]> Date: Fri Sep 19 21:18:54 2025 +0800 add-postgres_multi_delete_undolog_builder commit 0b8310c328821e689b05bd18143a2d7ec807d9ed Author: flypiggy <[email protected]> Date: Fri Sep 19 18:53:09 2025 +0800 add-postgres_insertonduplicate_upd_undolog_builder commit d28916abf7eb42da4d1b3420fe87a82257507b15 Author: flypiggy <[email protected]> Date: Fri Sep 19 18:03:03 2025 +0800 add-postgres_delete_undolog_builder commit 43416a9b9a57d2b991da7c87550e2d343778d1bd Author: flypiggy <[email protected]> Date: Fri Sep 19 17:33:45 2025 +0800 add-postgres_upd_undolog_builder commit f9d806350cf00cf5033a26687d9103b234bbf8ae Author: flypiggy <[email protected]> Date: Fri Sep 19 17:21:24 2025 +0800 add-postgres_insert_undolog_builder commit 38ecaa626d9180eba3ec4f30a2f7dd01d589c2e0 Author: flypiggy <[email protected]> Date: Fri Sep 19 17:19:07 2025 +0800 adapt to new DoParser commit 245f02109669dafc5d94985a64b7ecdb2bd4ce26 Author: flypiggy <[email protected]> Date: Fri Sep 19 15:03:29 2025 +0800 upd-undolog_executor commit 6e41e4ed214e4b4d1cbc0601bac74df5b4cc6c0b Author: flypiggy <[email protected]> Date: Fri Sep 19 14:54:03 2025 +0800 Update undo_executor_holder_factor.go commit f0a02fdf38c60f35cea9fe335fbf327e77a8103f Author: flypiggy <[email protected]> Date: Fri Sep 19 14:53:23 2025 +0800 undo-init commit 7500068a9b10601e8dd8768547b8156fb54784d3 Author: flypiggy <[email protected]> Date: Fri Sep 19 02:03:13 2025 +0800 upd-normal commit 0151ea96de4db446cc3248017c7a4c9875fb3bb4 Author: flypiggy <[email protected]> Date: Fri Sep 19 02:02:02 2025 +0800 upd-select_for_update commit 561b77f549a42620bd2c59fa3957ea702e8ae748 Author: flypiggy <[email protected]> Date: Thu Sep 18 22:30:00 2025 +0800 upd-update_join_executor commit 60302e0a970fd38706337f5ad69ba53c2168131d Author: flypiggy <[email protected]> Date: Thu Sep 18 21:03:35 2025 +0800 upd-update_executor commit 3d65017b03c511f44ce91ad311685fb8defb4271 Author: flypiggy <[email protected]> Date: Thu Sep 18 15:36:23 2025 +0800 upd-select_for_update & plain commit fa42ba08772ff8e2b9c3c299a3661c5a99ca7d0e Author: flypiggy <[email protected]> Date: Thu Sep 18 13:52:04 2025 +0800 upd-multi_update commit 38fcf61861b19cb04bdd2e2f89811fbf4f2c0b58 Author: flypiggy <[email protected]> Date: Wed Sep 17 23:49:59 2025 +0800 upd-multi_delete_executor commit 9a2088890ded1400a4b1b2d9a4d681f851dde788 Author: flypiggy <[email protected]> Date: Wed Sep 17 20:08:47 2025 +0800 Update meta_cache.go commit bdb66707f64d78557c53f62dd39ffe2a37a6a3d7 Author: flypiggy <[email protected]> Date: Wed Sep 17 20:07:37 2025 +0800 Delete mock_rows.go commit cce93a148ccd09c307698e3a4fbadc6bc20fe5e0 Author: flypiggy <[email protected]> Date: Wed Sep 17 20:07:19 2025 +0800 upd-mock package Redundancy, later adjustment commit 969e1c87629872dbdd4794d41f6a02334ff7318e Author: flypiggy <[email protected]> Date: Wed Sep 17 18:44:44 2025 +0800 upd-insert_on_update_executor commit c4c315d95b3fe6ca6be95d39a9de0f2457e5e888 Author: flypiggy <[email protected]> Date: Wed Sep 17 16:32:31 2025 +0800 Update executor.go commit 198bf0eaa8baab6e263e62834cc405789a827949 Author: flypiggy <[email protected]> Date: Wed Sep 17 15:06:22 2025 +0800 upd-insert_executor commit eab5d4c9fa9aeaeafab8df9c2a8efb8273d72fad Author: flypiggy <[email protected]> Date: Wed Sep 17 12:53:30 2025 +0800 Update at_executor.go commit a9261f51ea8bfb5f039a6645369c83d96f9dc622 Author: flypiggy <[email protected]> Date: Wed Sep 17 12:53:15 2025 +0800 upd-delete_executor commit a40ad0fb0a51733cbe01bdfc610dc236847e6e48 Author: flypiggy <[email protected]> Date: Wed Sep 17 12:51:58 2025 +0800 upd commit ce6914cdb1569ffcc3d760e53b315642d5b8c5db Author: flypiggy <[email protected]> Date: Wed Sep 17 12:47:39 2025 +0800 upd-sql_parser include postgresql parser commit 712573b406b8afa31e58fac295b815c802019eb1 Author: flypiggy <[email protected]> Date: Mon Sep 15 11:53:35 2025 +0800 insert_executor commit 1625e0a4401c2f0056377e766bee7498b7321cc5 Author: heliang <[email protected]> Date: Sun Sep 14 11:50:59 2025 +0800 fix:fix bugs detected by doubao (#883) * fix:fix bugs detected by doubao * fix: Fix CI lint errors and test interface issues commit d23223366bd6c3ef6fe90bea7e0e40efc3229003 Author: FinnTew <[email protected]> Date: Sun Sep 14 09:20:05 2025 +0800 fix: undefined changes node in license checker (#882) * fix: undefined changes node in license checker * fix: add logical judgment license checker * fix: update changes impl in license checker * fix commit fdc81db28a4caf5434188fda07c49c98fdb71481 Author: flypiggy <[email protected]> Date: Thu Sep 11 23:01:23 2025 +0800 Ancillary change commit 9b3a08873cc3ea18bea6f1cbebcfe7093c810b49 Author: flypiggy <[email protected]> Date: Thu Sep 11 22:57:12 2025 +0800 base & delete & escape commit 9a36c07ca3335bb6149fe00ef40b2cec97d0d6c7 Author: flypiggy <[email protected]> Date: Wed Sep 10 12:09:44 2025 +0800 at init - connector - driver commit 20c7531373ede8478bae0d3818d3921fc238ef80 Author: Wiggins <[email protected]> Date: Tue Sep 9 10:08:46 2025 +0800 Fix active xa rollback failure and added error message judgment (#875) * Add exception judgment #708 * Add exception judgment #708 * update const * update test * Update pkg/datasource/sql/conn_xa.go Co-authored-by: Copilot <[email protected]> * Update pkg/datasource/sql/conn_xa.go Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: FengZhang <[email protected]> Co-authored-by: 吴孝宇 <[email protected]> Co-authored-by: Copilot <[email protected]> commit 94a262938130ec30acff3ca735a2f0f49c11bc00 Author: flypiggy <[email protected]> Date: Sun Sep 7 23:01:58 2025 +0800 Delete check_cmt.py commit 142b18ddb802344dc261027d54bd2d47b6fc7811 Author: flypiggy <[email protected]> Date: Sun Sep 7 22:57:16 2025 +0800 finish xa-mode adapt postgresql commit d329aa757eb5f86ffbf920ad1009b21bfc508da3 Author: flypiggy <[email protected]> Date: Sat Sep 6 22:06:45 2025 +0800 Update the xid format adapted to postgresql commit 7d69500016f29eed829732a8b53f12d7d3e7bc6d Author: flypiggy <[email protected]> Date: Sat Sep 6 12:58:37 2025 +0800 upd postgresql xa resource commit d9a9529087705d2a7dc8803a6a2f1d0cf3013918 Author: flypiggy <[email protected]> Date: Sat Sep 6 12:27:07 2025 +0800 XA transaction ID pair adapts to PostgreSQL commit b68289d83ee2c60865215830dbe12fafdbb74be5 Author: flypiggy <[email protected]> Date: Mon Aug 25 13:52:12 2025 +0800 Update test after drive replacement commit b5c2ee99f45f64faba983cccb4b7add4a2fe6059 Author: FengZhang <[email protected]> Date: Sat Aug 30 15:43:33 2025 +0800 Update release notes (#870) update changelog commit 7fd29e81c9ff2ada3b37e84a4e451c5fc2eee5a3 Author: ShenzhenGopher <[email protected]> Date: Sat Aug 30 15:28:39 2025 +0800 fix: Fix GetScanSlice not handling all column types in AT mode (#874) * bugfix: Fix GetScanSlice not handling all column types in AT mode * bugfix: Fix GetScanSlice not handling all column types in AT mode commit 6aa34c6b048e55dbc4fc2f763a0696f7709aa026 Author: tanzegen <[email protected]> Date: Sat Aug 30 15:20:42 2025 +0800 fix:The WithGlobalTx method returns the exception caught by recover (#849) * fix:The WithGlobalTx method returns the exception caught by recover * fix:add case of panic non-error type;WithGlobalTx return a specific exception * fix:Combine error judgments into a single conditional statement to make the code more readable. --------- Co-authored-by: FengZhang <[email protected]> commit e677191a52b3e4208ccb38673866b595beefd70f Author: tanzegen <[email protected]> Date: Sat Aug 30 15:10:01 2025 +0800 fix: The context issue of nested transactions (#848) fix:In a nested transaction, context of external transaction will be overwritten by internal transaction Co-authored-by: FengZhang <[email protected]> commit d2c296d93f4d49a2f16989486294f24ee0303dd5 Author: 1kasa <[email protected]> Date: Sat Aug 16 20:12:04 2025 +0800 handle Unexpected transaction rollback (#828) * handle Unexpected transaction rollback * fix ci Errpr * Fix wrong location * Fix sort import * Fix error * Fix comment * Fix comment * add Unit Testing * WIP: prepare for rebase * wrong commit * wrong commit * Remove incorrect go mods * sort import --------- Co-authored-by: FengZhang <[email protected]> commit 65fbcac741a7bde369f4c33930e6b5b9ee2be712 Author: Zonglei Dong <[email protected]> Date: Sat Aug 16 19:55:27 2025 +0800 fix: re-enabled integration test action (#835) * fix: re-enabled integration test action * fix: install docker composer * fix: upgrade go version * fix: upgrade go version * fix: upgrade go version * fix: upgrade go version * fix: upgrade go version * Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: FengZhang <[email protected]> Co-authored-by: Xin.Zh <[email protected]> Co-authored-by: Copilot <[email protected]> commit f2db94dcdd6b9ed68eca67eb89ad8559f2479c3a Author: KamTo Hung <[email protected]> Date: Thu Aug 14 09:50:14 2025 +0800 optimize issue template (#872) feat: add issue templates for bug reports, feature requests, questions, proposals, and discussions commit 7a87c9c8898eb2fe5b011526c0fbb9aa5ad77258 Author: Wiggins <[email protected]> Date: Wed Aug 6 23:23:04 2025 +0800 Fix : del metadatacache uppertablenamekey and increase tablemeta field uppertablename (#857) * fix: uppertable metacache todo:Fix lockkey case difference #846 * increase uppertablename and Fix lockkey case difference #846 * Fix test case difference #846 * Fix test case difference #846 * reduce uppertablename col #846 * reduce uppertablename #846 * fix test #846 --------- Co-authored-by: FengZhang <[email protected]> commit 531d0adbf62896e016a6d11afdb2ed5831ce795c Author: flypiggy <[email protected]> Date: Thu Jul 24 21:09:27 2025 +0800 finish XA resource commit 78df3dcd890cd3f50a6c31268449126bd5f664a8 Author: flypiggy <[email protected]> Date: Thu Jul 24 01:01:57 2025 +0800 Implement the driver layer commit 1b4df027849b5f8b6bde4510cfb0feb9d602e85f Author: Xin.Zh <[email protected]> Date: Fri Jul 18 23:15:49 2025 +0800 fix issue 859: update project icon in readme (#861) * update project icon in readme * update readme commit 5acbd2d1b792b98ac48b801b12cc7f0fcaa9db96 Author: Wiggins <[email protected]> Date: Wed Jul 16 23:34:23 2025 +0800 Fix multi knadh (#834) * fix: Solve the conflict problem of introducing multiple versions of knadh * fix: fix ci fail * fix: update #825 --------- Co-authored-by: panlei-coder <[email protected]> Co-authored-by: JayLiu <[email protected]> Co-authored-by: FengZhang <[email protected]> commit e175b5cbfc8e1554b925aede3c6da2ac9094a73d Author: 深几许 <[email protected]> Date: Mon Jul 7 19:54:23 2025 +0800 docs: eEnrich the project ReadMe (#844) * docs: eEnrich the project ReadMe * docs: eEnrich the project ReadMe * docs: eEnrich the project ReadMe * docs: Increase the version number so that users can find the latest version. * Update README_ZH.md --------- Co-authored-by: FengZhang <[email protected]> Co-authored-by: FinnTew <[email protected]> commit 9906649e3156b32f50bbe8c2345d2372dfc1e5ce Author: FengZhang <[email protected]> Date: Sat Jun 28 21:20:43 2025 +0800 fix action errors (#839) * fix mysql action * update golang version and fix codecov * fix golang version * fix test error * fix code lint commit 60de8e2817465171dd24ab5bac536042b9b27d84 Author: lxfeng1997 <[email protected]> Date: Fri Jun 27 22:02:51 2025 +0800 bugfix failed parsing table of delete sql (#850) bugfix delete sql of failed parsing table commit ff911260743227f0ff51736badf674f59fb301fb Author: lxfeng1997 <[email protected]> Date: Sat Jun 21 18:42:10 2025 +0800 Support Update join (#761) * duplicate image row for update join * update join condition placeholder param error * update join bugfix * Open test annotations * recover update executor * recover update test * recover update test * modified version param --------- Co-authored-by: JayLiu <[email protected]> Co-authored-by: FengZhang <[email protected]> commit a715b96a95e043e4513f88fa75ea7bd56f9a53cb Author: Wiggins <[email protected]> Date: Thu Jun 19 10:04:11 2025 +0800 Optimize/at build lock key performance (#837) * Refer to buildlockkey2 optimization #829 * Time complexity O(NM)-> O(NK) about buildlockkey and buildlockkey2 Increased readability #829 * update import sort #829 * update Encapsulation into util packages #829 commit 9a82f9e252ad74e7acba444e9909f75a9d93d5c3 Author: lixingjia <[email protected]> Date: Mon Jun 2 21:11:14 2025 +0800 refactor: update SHA256 checksum command in makefile for cross-platfo… (#824) refactor: update SHA256 checksum command in makefile for cross-platform compatibility commit 994a134b94f88efc6c48e74639546a47a07564b9 Author: 深几许 <[email protected]> Date: Wed May 28 10:50:37 2025 +0800 bugfix: Remove issue translation workflow as usthe/issues-translate-a… (#823) bugfix: Remove issue translation workflow as usthe/[email protected] does not allow issues in apache/incubator-seata-go Co-authored-by: FengZhang <[email protected]> commit 985820e9e0a91b6c5b8eb6abe4b86f675e48efc6 Author: Wiggins <[email protected]> Date: Wed May 28 10:24:35 2025 +0800 Fix: HTTP/2 CONTINUATION flood vulnerability (GO-2024-2687) (#820) fix: Fix possible vulnerabilities caused by common libraries #817 Co-authored-by: FengZhang <[email protected]> commit ee402d54399b67368aa9237df58c3931a1874f90 Author: FengZhang <[email protected]> Date: Sat May 24 20:06:34 2025 +0800 fix: when using queryContext, it will cause the transaction to fail (#810) remmove queryContxt commit 6f42e115d175f2ae2795fbfd727c064a97f9d753 Author: jimin <[email protected]> Date: Sun May 18 12:12:34 2025 +0800 optimize: add some licenser header (#813) * optimize: add some licenser header * revert some lines * add ignore --------- Co-authored-by: FengZhang <[email protected]> commit ba19a7b1a0cba2abd14c2537ddd9e26b8692ebba Author: Road2Melon <[email protected]> Date: Sat May 10 19:46:46 2025 +0800 optimize: optimize transaction timeout judgment (#777) * optimize: optimize transaction timeout judgment (#777) * optimize: timeout func --------- Co-authored-by: FengZhang <[email protected]> Co-authored-by: JayLiu <[email protected]> commit bb552bdc8788ec79a39421c9b1232c5646d1c4fc Author: lxfeng1997 <[email protected]> Date: Sat May 10 19:03:04 2025 +0800 support ipv6 (#786) * support ipv6 * add license * support ipv6 * support ipv6 --------- Co-authored-by: JayLiu <[email protected]> Co-authored-by: FengZhang <[email protected]> commit 6aefcfa6b0461dc10cc4770feacfaa16a8f65551 Author: lxfeng1997 <[email protected]> Date: Thu May 1 08:09:14 2025 +0800 feat: support get db version in conn (#802) commit 195840124feb979678393f7c7d4bdb5ee78f81c2 Author: LeeHao <[email protected]> Date: Sun Apr 27 14:22:35 2025 +0800 feat:add label for pull request automatically (ci/cd) (#806) feat: Add Release Drafter configuration files Add the Release Drafter configuration files to the repository. This includes the `.github/release-drafter.yml` and `.github/workflows/release-drafter.yml` files. These files define the templates, categories, and labels used for generating release notes and changelogs. The configuration also includes autolabeling rules based on the title and file patterns. Co-authored-by: FengZhang <[email protected]> commit 95ddab06005cebb763e5fe31a5b344ea65226b96 Author: ZeruiYang <[email protected]> Date: Sat Apr 26 06:48:44 2025 -0700 optimize : tccfence log table deleted should be optimized (#745) * feat: optimized the daily deletion of fence logs * feat: optimized the daily deletion of fence logs * feat: configure the fence through the configuration file * fix: fixed some issues with sql statements --------- Co-authored-by: JayLiu <[email protected]> Co-authored-by: FengZhang <[email protected]> commit a50fa4210cf892f4b64458ca78ee87c52f608757 Author: LeeHao <[email protected]> Date: Sat Apr 26 21:39:34 2025 +0800 fix: mysql insert on update duplicate sensitive case not matched (#700) (#771) Signed-off-by: LeeHao <[email protected]> Co-authored-by: FengZhang <[email protected]> Co-authored-by: JayLiu <[email protected]> commit fd239dad4bbbd4b6db619bd7ba72f21dee2845a9 Author: YvCeung <[email protected]> Date: Fri Apr 25 23:10:31 2025 +0800 optimize: add ASF header to some files (#797) commit 6fa676e9b578badf079a9bdf985f7494bc591ddb Author: xinfan.wu <[email protected]> Date: Sat Mar 15 19:22:39 2025 +0800 fix:convert table names to uppercase in cache (#781) fix:Convert table names to uppercase in cache, preventing different tables from being found commit e0c677872285a5268665a711e3c2d2eab3e50062 Author: LeeHao <[email protected]> Date: Sat Mar 15 19:18:14 2025 +0800 fix: failed to decode ColumnImage mysql:text type by json (#780) Signed-off-by: LeeHao <[email protected]> commit 4449fab3a80d4a66bbfdf8f108018c420167b6fd Author: LeeHao <[email protected]> Date: Sat Mar 15 19:17:33 2025 +0800 chore: remove the Chinese annotations (#782) Signed-off-by: LeeHao <[email protected]> commit 46edf345924ea62ad5ef33539461ebbddb3c571d Author: PJ Fanning <[email protected]> Date: Sat Mar 15 11:51:42 2025 +0100 doc: add 2025 to NOTICE (#789) commit 2b7be58042fc8e7b0356e21f319551029f93ce1f Author: hokkine <[email protected]> Date: Tue Feb 25 21:43:46 2025 +0800 fix: fix ci-lint typecheck error (#776) commit 5a3a633681e09df3126a6b759e73edfea4470c24 Author: xinfan.wu <[email protected]> Date: Thu Feb 6 10:08:05 2025 +0800 chore: upgrade some dependent packages to eliminate dependencies on some archived repositories (#767) commit 41ed8cd048379218547a285da6f1f526d94d7b6f Author: zhangym <[email protected]> Date: Fri Jan 24 11:23:02 2025 +0800 optimize: update parser to v0.2.17 (#768) commit e697028b841a035939d14d53588dc3791c7fa5f6 Author: JayLiu <[email protected]> Date: Sun Jan 12 16:05:29 2025 +0800 doc: V2.0.2 release updater (#760) update 2.0.0 change log commit b431fb56f23514b02427517a01d1883425d9403c Author: JayLiu <[email protected]> Date: Mon Jan 6 23:29:39 2025 +0800 optimize: remove unsed files (#758) remove unsed files commit bb8e34206fc748041cb998a3aaa943ba26d23272 Author: jimin <[email protected]> Date: Mon Jan 6 23:23:20 2025 +0800 optimize: update license checker (#756) * optimize: update license checker commit 4324f33c1ff182aaf43d27d0679f11705bb98040 Author: JayLiu <[email protected]> Date: Sat Jan 4 14:21:48 2025 +0800 doc: add release 2.0.0 note (#752) * add release 2.0.0 note commit 74cf2fd7ae8f711ead793f96a395428626974a08 Author: FengZhang <[email protected]> Date: Fri Dec 27 23:47:37 2024 +0800 【WIP】fix: xa report state to TC (#717) fix xa report state to tc Co-authored-by: JayLiu <[email protected]> commit 396a7b83b9ed04474f1fd625e19c7d8a105a84b8 Author: FinnTew <[email protected]> Date: Fri Dec 27 23:46:57 2024 +0800 optimize: optimize the speed of buildLockKey (#714) * optimize: optimize the speed of buildLockKey * improve unit testing of buildLockKey * fix the situation where primaryKeyValues contains nil value * update the unit test of buildLockKey --------- Co-authored-by: JayLiu <[email protected]> commit ca0bc27722efd0f71ad060e0c783d4d3c4d1fea0 Author: FengZhang <[email protected]> Date: Sat Dec 21 20:01:03 2024 +0800 feat: Implement automatic refresh functionality for TableMetaCache (#739) * support auto refresh table mate cache * fix test * Refactor the code to address the issue of duplicate definitions * Refactor the code to address the issue of duplicate definitions * Refactor the code to address the issue of duplicate definitions * Refactor the code to address the issue of duplicate definitions --------- Co-authored-by: root <[email protected]> Co-authored-by: JayLiu <[email protected]> commit 9bbaa419eaacb4db18d5c4a24e4341954e872d63 Author: JayLiu <[email protected]> Date: Sat Dec 21 19:49:44 2024 +0800 fix: fix gomonkey bug (#743) fix gomonkey bug Co-authored-by: funkye <[email protected]> commit 36ff64669ed90312387d66aa4f176c549a4d9207 Author: JayLiu <[email protected]> Date: Sat Dec 21 19:40:52 2024 +0800 fix: fix heart beat bug (#749) commit a8f73b32c952a1db56324d31d7a55a80249aad7b Author: JayLiu <[email protected]> Date: Sat Dec 21 17:28:02 2024 +0800 fix:Reclaim the heartbeat response message to avoid memory leakage of GettyRemoting.futures (#665) * fix:回收心跳response消息,以避免GettyRemoting.futures内存泄露 * remove chinese comment --------- Co-authored-by: tanzegen <[email protected]> Co-authored-by: Xin Wang <[email protected]> commit f786cb9719fa7b516d2e91157ff01e0dbb27e241 Author: xinfan.wu <[email protected]> Date: Sat Dec 21 15:32:32 2024 +0800 refactor: refact getty module (#746) * feat:add more linter * feat:change golangclilint version to 1.57.x to support more linter * feat:adjust lint conf and adjust the code to pass the check * style: format some code; fix: some sql statement or rows was not been closed * feat:close session when send heart beat message failed * refactor: change GettyRemoting from singleton to GettyRemotingClient member * remove rpc client * refactor: complete GettyRemoting refactoring * refactor: change getter name, improve variable naming and remove unused fields * update something * feat:add heart-beat failed retry times * Refactor getty. > > Co-authored-by: marsevilspirit <[email protected]> Co-authored-by: solisamicus <[email protected]> Co-authored-by: No-SilverBullet <[email protected]> * Refactor getty. Co-authored-by: marsevilspirit <[email protected]> Co-authored-by: solisamicus <[email protected]> Co-authored-by: No-SilverBullet <[email protected]> --------- Co-authored-by: JayLiu <[email protected]> Co-authored-by: SolisAmicus <[email protected]> Co-authored-by: marsevilspirit <[email protected]> commit 5b120d0f7ca36789cfa0a656c29800b33521120d Author: lxfeng1997 <[email protected]> Date: Sun Dec 15 21:03:47 2024 +0800 optimize: only inserted fields (#719) * only inserted fields * It is suspected that it is not used, so restore the previous code --------- Co-authored-by: JayLiu <[email protected]> commit 2ba74eaa0d4d982f8e4dcd695b09f685f9515c68 Author: FinnTew <[email protected]> Date: Sat Dec 14 16:51:50 2024 +0800 fix: bypassing modifying the primary key (#727) * adjust unit tests to verify the issue of "bypassing modifying the primary key" * fix: bypass modify the primary key commit 5e79dd70678fe7224d6d7df1077d3ab4067addfa Author: FinnTew <[email protected]> Date: Sat Dec 14 16:31:51 2024 +0800 doc: update readme (#737) * update README.md and README_ZH.md * update readme --------- Co-authored-by: JayLiu <[email protected]> commit 98bcfed3f3309f410af5438fe20353fd7046cc61 Author: xinfan.wu <[email protected]> Date: Sat Dec 14 16:27:03 2024 +0800 feat: remove session when send heart beat message failed (#738) * feat:add more linter * feat:change golangclilint version to 1.57.x to support more linter * feat:adjust lint conf and adjust the code to pass the check * feat:close session when send heart beat message failed --------- Co-authored-by: JayLiu <[email protected]> commit d47f691e0587468cf7ea086167299c4c24c61c20 Author: xinfan.wu <[email protected]> Date: Sat Dec 14 16:24:29 2024 +0800 fix:sql statement was not closed (#736) * feat:add more linter * feat:change golangclilint version to 1.57.x to support more linter * feat:adjust lint conf and adjust the code to pass the check * style: format some code; fix: some sql statement or rows was not been closed --------- Co-authored-by: JayLiu <[email protected]> commit 8e89eb35a9f83098aadd5628967f3d80d8255071 Author: xinfan.wu <[email protected]> Date: Thu Dec 12 23:59:46 2024 +0800 feat:add more linter in configuration file (#686) * feat:add more linter * feat:change golangclilint version to 1.57.x to support more linter * feat:adjust lint conf and adjust the code to pass the check --------- Co-authored-by: JayLiu <[email protected]> commit aa91d885bbb83075a22e50454d073194d4f2a142 Author: FinnTew <[email protected]> Date: Sat Dec 7 20:06:45 2024 +0800 fix: undo log sql (#724) * fix the problem of mock replacing mysql.GetTableMeta in TestBuildSelectSQLByUpdate * fix the problem of MySQLUpdateUndoLogBuilder failing to generate undo log sql --------- Co-authored-by: JayLiu <[email protected]> commit 39b5d6d424788619932181241884ade81d46e041 Author: marsevilspirit <[email protected]> Date: Sat Dec 7 19:56:11 2024 +0800 feature:add undo protobuf parser (#691) * feature:add undo protobuf parser * fix apache header commit 81eb381d335a7200b15ea21c30311cd56ab1d386 Author: marsevilspirit <[email protected]> Date: Sat Dec 7 19:43:30 2024 +0800 fix: fix undo log parser type jackson not found (#690) * fix undo log parser type jackson not found * update config_test.go commit 12139c964ca317f46b728f670f9dd594cf125745 Author: xinfan.wu <[email protected]> Date: Sat Dec 7 19:06:09 2024 +0800 optimize: upgrade getty version (#716) commit ac8b883f2783fa4b2b2828790ab7283b4161e11b Author: FengZhang <[email protected]> Date: Sat Nov 30 07:25:52 2024 +0800 fix: the issue where the translation bot is not working. (#721) fix action error of the issule translator commit 1cf9f4b7c6f9f36b1bab6d87061181d07a51ccdf Author: JayLiu <[email protected]> Date: Tue Jun 4 21:36:52 2024 +0800 optimize: rename module name to seata.apache.org/seata-go (#678) commit a250ebf648cb8c09bfd45f1e76c8e09dbe43fecf Author: Xin.Zh <[email protected]> Date: Wed Mar 27 16:25:40 2024 +0800 upgrade getty from 1.4.9 to 1.4.10 (#679) commit 3c63611038e16c51e3115bc974710ce1f1113779 Author: smiletrl <[email protected]> Date: Sat Mar 16 18:33:48 2024 +0800 handle error for xa exec context (#674) commit e8f245562179b9a3072dd67500ddbfcef146619d Author: smiletrl <[email protected]> Date: Sat Mar 16 18:33:21 2024 +0800 active xa connection rollback fix (#672) commit ea5f1353ab57906b5d54a3ca9a58ec9d30986b38 Author: Xiangkun Yin <[email protected]> Date: Thu Feb 22 21:21:58 2024 +0800 chore: change mailbox of issues and pull requests from dev to notifications (#667) commit 74510e730158c0a35f102dbc057de3bb4528b0e5 Author: yizhibian <[email protected]> Date: Sat Feb 17 18:48:36 2024 +0800 feat: Implement the discovery service by Etcd (#605) Implement the discovery service by Etcd commit a7c87388fdae36aca1857ba51cf586370f50a40a Author: wang1309 <[email protected]> Date: Sat Feb 17 18:47:43 2024 +0800 feat: add consist load balance (#600) add consist load balance commit cc726180ec2e078f8de8429c08ecd1c650232aac Author: R.oldmee <[email protected]> Date: Sat Feb 3 19:47:50 2024 +0800 implement least active load balance (#602) feat: add least active load balance commit d255216975a9fb00e4a4d6d5f8a2d00720a1a3d8 Author: 576470954 <[email protected]> Date: Sat Feb 3 17:52:45 2024 +0800 fix: AT mode queryContext error commit c52a4b64007ed61e6626020d34359fad26bb9063 Author: LuWeiQianYi <[email protected]> Date: Sat Feb 3 17:46:09 2024 +0800 bugfix: fix return of Commit and Rollback (#595) bugfix: commit or rollback success,but ctx error happens commit 2a91c0e93367a2dffa5dbe893532618ecfee57b0 Author: wt_better <[email protected]> Date: Thu Feb 1 18:30:51 2024 +0800 Security/depend version upgrade (#652) commit 3b429d0afb8633d38af2c140ead251f6085b3318 Author: smiletrl <[email protected]> Date: Thu Feb 1 17:31:31 2024 +0800 add undo compressor log support (#659) commit 92c7059ac7c7175c8aaf1a1169e0565bbf1b5e8c Author: jimin <[email protected]> Date: Wed Jan 24 14:30:31 2024 +0800 optimize: update some files (#644) commit f6ef616ba924e06da089e55c956bbaebd52e9372 Author: Jingliu Xiong <[email protected]> Date: Thu Dec 28 15:38:26 2023 +0800 feat: add round robin in remote module (#622) commit 83982707c597a1efedc12ae24f74ae6543f27934 Author: funkye <[email protected]> Date: Sat Dec 23 16:11:03 2023 +0800 optimize: removing the context check (#633) Update .asf.yaml commit 257879e7a536fd14c0e63ce193be1fba8ef36326 Author: jimin <[email protected]> Date: Fri Dec 22 17:31:46 2023 +0800 optimize: add ASF basic config (#632) commit e073e3fa82782b4a70e145a4e0a38cb6666ba116 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 19 14:23:46 2023 +0800 chore(deps): bump golang.org/x/crypto from 0.9.0 to 0.17.0 (#631) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.9.0 to 0.17.0. - [Commits](https://github.com/golang/crypto/compare/v0.9.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 354c9d395cd417a22c017e2e94524e38f0ea4036 Author: baerwang <[email protected]> Date: Sat Dec 9 20:02:40 2023 +0800 ci: add codeql (#621) commit 979b76b5509d533f14c7857648ca4cf308708333 Author: 576470954 <[email protected]> Date: Sat Oct 14 20:33:11 2023 +0800 bugfix: cant serialize by jackson (#607) commit 5e126cbe68021dec865a849558bb309b271d4a43 Author: wt_better <[email protected]> Date: Sat Oct 7 14:02:55 2023 +0800 upgrade the unknown license dependency (#614) commit 944218ca72bce9920e7da1f9812f5e9f14318d4b Author: yombo <[email protected]> Date: Tue Aug 8 15:16:37 2023 +0800 feat(remoting): random load balance for getty sessions #598 commit bd3f08cad72177876a5566623f92adaa72f718da Author: air-3 <[email protected]> Date: Thu Aug 3 18:13:01 2023 +0800 test(XidLoadBalance): unit test and fix bug (#599) 1. unit test for XidLoadBalance 2. XidLoadBalance bug fix commit c894ff769cd32a948f20afdf2a913c5e32e7be9b Author: yombo <[email protected]> Date: Tue Aug 1 13:31:16 2023 +0800 test: unit test for randomloadbalance test: unit test for randomloadbalance commit ccd9d12ff81cab529475f03664c1a72970c755ba Author: LuWeiQianYi <[email protected]> Date: Sat Jul 22 11:50:13 2023 +0800 refactor: optimize info log format for rm_branch_commit_processor.go (#594) optimize info log format for rm_branch_commit_processor.go commit 04993ffa5cd1b0fa2a9431cb156c1ac6244ff0c4 Author: guangwu <[email protected]> Date: Sat Jul 22 11:21:20 2023 +0800 chore: unnecessary use of fmt.Sprintf (#592) commit 400bf8a7021fd3284be55355a0640acf9baa6c87 Author: Jason Deng <[email protected]> Date: Tue Jul 18 23:42:54 2023 +0800 add reflectx ut (#572) commit eec831bbbe8e8a55bb758bfaa1bdcefe36eeac2c Author: jsbxyyx <[email protected]> Date: Tue Jul 18 23:41:44 2023 +0800 fix typo (#590) commit 1a9aea6a47ba5f439a6e54e4539439b7fdf2a789 Author: liushao <[email protected]> Date: Tue Jul 11 22:14:04 2023 +0800 feat: new feature for service discovery (#574) * feat: new feature for service discovery 1.Completed the code for organizing the workflow. 2.Implemented FileRegistryService based on local configuration files. * style: go imports * refactor: avoid the uncertainty of SQL field order in unit test. refactor select_for_update_executor_test.go to avoid the uncertainty of SQL field order causing test code to pass and fail sometimes. commit 0963bc5809857ffe42080f1f4630810e155e6e7a Author: liushao <[email protected]> Date: Sun Jul 9 17:10:10 2023 +0800 fix: use mirromutth/mysql-action instead of icomponent/mysql-action (#576) Error: Unable to resolve action icomponent/mysql-action, repository not found commit 3bcde19084788ce5fe6ed2e6e1c3f0dd384d1375 Author: Jason Deng <[email protected]> Date: Tue Jun 6 10:30:48 2023 +0800 add convert ut (#571) add collection ut (#570) commit f0820fe6c765431bdeb3d0560e459d2829c22f92 Author: Jason Deng <[email protected]> Date: Mon Jun 5 10:18:02 2023 +0800 add collection ut (#570) add 1.2.0 change log (#567) * add 1.2.0 change log Co-authored-by: Yuecai Liu <[email protected]> commit 236077383d3be5d1b705248d2c1c43b9c77ec4c8 Author: Yuecai Liu <[email protected]> Date: Mon May 29 20:18:56 2023 +0800 add 1.2.0 change log (#567) * add 1.2.0 change log commit 102bbbbe3866839ad6714f2dfb8ff7427f2b3603 Author: georgehao <[email protected]> Date: Sun May 28 16:30:00 2023 +0800 feat: fix xa local bug (#566) * feat: fix xa local bug commit d005fdf75d110a862f5b11f75f07da0ab9d93295 Author: Jason Deng <[email protected]> Date: Sun May 28 16:26:59 2023 +0800 add change-log of version 1.1.1 (#550) Merge branch 'seata:master' into master commit 22f9747380eff0af020fef756d67699da8bb863c Author: Yuecai Liu <[email protected]> Date: Sun May 28 15:43:48 2023 +0800 fix xa branch commit bug (#564) * fix xa branch commit bug commit af5876872afd7eabf33abc0bf41b39cba3eec325 Author: georgehao <[email protected]> Date: Sat May 20 18:16:13 2023 +0800 Fix/fix xa bug2 (#563) fix xa begin bug commit caa45a692479ffd7783c9f75ed9166b19d436cde Author: georgehao <[email protected]> Date: Sat May 20 17:35:51 2023 +0800 feat: fix bug (#562) commit ce48489e0ea6af342deed1989020647bed4962c7 Author: Yuecai Liu <[email protected]> Date: Sat May 20 17:33:05 2023 +0800 Fix xa bug12 (#561) * fix log Co-authored-by: liuyuecai <[email protected]> commit 8d86a00f4519886112140e2a0ed54c498a80f048 Author: georgehao <[email protected]> Date: Sat May 20 15:49:45 2023 +0800 fix: fix xa bug (#557) commit 0ed6990ec90a7c3262a64d4613c003a46e60b901 Author: liushao <[email protected]> Date: Sun May 14 10:34:14 2023 +0800 optimize: select db version once in one connection (#554) * perf: optimize the performance of XA transactions commit ac8f3c21d6a1c5d7f40360e4388ee454718ee418 Author: georgehao <[email protected]> Date: Sun May 14 09:13:43 2023 +0800 * feat: fix xa driver failure (#556) * feat: fix xa driver failure --------- Co-authored-by: liuyuecai <[email protected]> commit 63cf1f084622f60ffc827316d8dfb91a73860939 Author: georgehao <[email protected]> Date: Sun May 7 18:39:23 2023 +0800 feat: :sparkles: fix (#548) commit 01c2f5325ea359005c885fd343e3082c58e2ec01 Author: georgehao <[email protected]> Date: Sun May 7 18:26:42 2023 +0800 fix xa start bug (#547) commit b503234145ce94eaead284d4271dd6081bb791e1 Author: Yuecai Liu <[email protected]> Date: Sun May 7 18:19:27 2023 +0800 fix get db version bug (#545) * fix get db version bug * fix get db version bug commit 5ca2582aa97d661b40fbc6778a0c92eb45b7f5dc Author: FengZhang <[email protected]> Date: Fri May 5 00:28:12 2023 +0800 feat: integrate test (#535) feat add integrate_test commit 597b280711cafceca653d2a2e81b660eabb50fe1 Author: georgehao <[email protected]> Date: Sat Apr 8 19:35:11 2023 +0800 feat: fix init panic (#540) commit 48ade0c9c85b49e7c6e3006ab7e37bca0a6e636e Author: georgehao <[email protected]> Date: Sat Apr 8 19:08:22 2023 +0800 feat: add xid loadbalance (#534) commit 15a472602aba32f491a096feebd65affd8927e5e Author: wang1309 <[email protected]> Date: Sat Apr 8 14:07:53 2023 +0800 Feat fix go import (#536) optimize go imports style commit 49f212693f8d226655c815d0efc53672d8bd9a91 Author: liushao <[email protected]> Date: Wed Mar 29 11:55:28 2023 +0800 fix: remove duplicate code (#532) commit 51380b2c7e159717ad8bbae3af344b47b142a652 Author: juzimao <[email protected]> Date: Sun Mar 26 18:54:36 2023 +0800 feat(fence): implement fence use datasource proxy (#420) commit 532660f45753b59e9a0e7cef3ce0205c0a90c2eb Author: juzimao <[email protected]> Date: Wed Mar 22 22:58:41 2023 +0800 optimize(undo): change default parser name to json from jackson (#525) commit a529fd24878069084100e7ecb18ae58c1e478d1b Author: georgehao <[email protected]> Date: Fri Mar 17 14:17:59 2023 +0800 feat: add xa (#467) * feat: add xa commit 37c5a51297222739d64329a8c0fa5ef187a3782a Author: wang1309 <[email protected]> Date: Tue Mar 14 22:50:58 2023 +0800 feat: undolog add decompressor func (#457) commit 793d13469d9b225b82ab3ce55450385b1e58f47f Author: Qianglin Li <[email protected]> Date: Mon Mar 13 23:18:13 2023 +0800 sort before get column name (#497) sort before get column name commit 537cb3b366515aeceb338dae3d26afd419f8bb6a Author: Yuecai Liu <[email protected]> Date: Tue Mar 7 21:32:10 2023 +0800 doc: update change log of v1.1.0 (#512) commit 857a5b07b579fb899e5cc15f36894f2a729cb200 Author: Yuecai Liu <[email protected]> Date: Mon Mar 6 18:56:00 2023 +0800 optimize: insert on update executor (#509) optimize insert on update executor (#509) commit 6deacf7f210fdd2e6e4791bdcb01bb0f5a2afdb4 Author: Yuecai Liu <[email protected]> Date: Mon Mar 6 18:55:10 2023 +0800 docupdate 1.1.0 change log (#510) commit 2f9de36beca727debd5299e94134ca5645a1658c Author: Finkyky <[email protected]> Date: Sun Mar 5 23:49:57 2023 +0800 doc: add v1.1.0 change log (#489) * doc: add v1.1.0 change log commit 8c8a13ff0e8dcfeb94346e30649ee8f33fba3855 Author: Yuecai Liu <[email protected]> Date: Sun Mar 5 18:19:31 2023 +0800 optimize multi update executor (#507) commit f5775f969d444d2a54ee47d4dacc08ce210c9f80 Author: Yuecai Liu <[email protected]> Date: Sun Mar 5 18:19:16 2023 +0800 Optimize multi delete of multi executor (#505) optimize multi delete executor commit ef1d9593d3c0659c7b15db1efd6733a15d3f4829 Author: Yuecai Liu <[email protected]> Date: Sat Mar 4 18:27:11 2023 +0800 fix undo log sql type bug (#495) commit 9c13f2003cd8d92ec750337453748e44eb227280 Author: liiibpm <[email protected]> Date: Sat Mar 4 17:42:16 2023 +0800 reactor:multiple delete executor (#482) * reactor:multiple delete executor commit 1b6b43ba6abab16a4a46e8ca8b76490253597520 Author: Yuecai Liu <[email protected]> Date: Sat Mar 4 16:47:16 2023 +0800 fix select for update bug (#491) * fix select for update bug commit 23d1532d277b2ed8948c759d6ae2def7aa96fc3d Author: Yuecai Liu <[email protected]> Date: Sat Mar 4 12:22:54 2023 +0800 doc: update readme (#492) commit ccb8397b30639c42901b2e49a314cfea12448b4d Author: Yuecai Liu <[email protected]> Date: Fri Mar 3 10:35:36 2023 +0800 fix at bug (#487) commit bf9863ac6667739cedb90ab41f1eb81b170aef98 Author: juzimao <[email protected]> Date: Wed Mar 1 14:38:57 2023 +0800 feat(undo): add the use of undo log serialization (#477) feat(undo) add the use of undo log serialization commit e89b5adb6c8d50a8a6eeb94dfc241bbc7926a790 Author: Vaderkai <[email protected]> Date: Mon Feb 20 22:17:08 2023 +0800 reactor: multiple update executor (#481) * reactor:multiple update executor commit c2a46f1c504fd36589c8e116998e97091dfb2db4 Author: Kirhaku <[email protected]> Date: Sat Feb 18 18:53:54 2023 +0800 optimize: MessageType and TransactionErrorCode (#453) format MessageType and TransactionErrorCode commit a47f11f7e6c92079d842b7150f2d3b430d99a929 Author: liushao <[email protected]> Date: Sat Feb 18 18:53:15 2023 +0800 refactor: insert on update executor (#456) * refactor(datasource,rm): insert on update executor commit b49323eec82239c529def7a860b8d2c09b3f3a71 Author: charlie <[email protected]> Date: Sat Feb 18 14:38:25 2023 +0800 reactor: select for update executor (#478) * reactor: select for update executor commit 7e7a83227bdd77038c45983eeabe9d53ef923988 Author: juzimao <[email protected]> Date: Sat Feb 11 19:03:02 2023 +0800 bugfix: fix missing value of context (#472) commit ab2d689de211702874173341aeb6e74f07fb9da5 Author: charlie <[email protected]> Date: Mon Feb 6 20:00:58 2023 +0800 delete sample(#470) Signed-off-by: charlie <[email protected]> commit 80e9a8f0b7f95f40ad181b7403b5586ad4066622 Author: Jason Deng <[email protected]> Date: Sat Feb 4 21:47:16 2023 +0800 [WIP]feat: support xa oracle connection (#391) * doc: v1.0.2-RC1 release file (#338) --------- Co-authored-by: Shaozhou Hu <[email protected]> commit 9ee05276519a49787915592fa2e830cfa2e14213 Author: Shaozhou Hu <[email protected]> Date: Sat Feb 4 17:36:44 2023 +0800 feat: XA connect manager (#433) * xa connect manager commit 05d0353163859b2485b3a08ec72d648a57ab16e2 Author: charlie <[email protected]> Date: Sat Feb 4 17:35:56 2023 +0800 fix: fix some typo (#466) Signed-off-by: charlie <[email protected]> commit 1991b346888f26f468bdc64a242587c0ecc3ac2d Author: FengZhang <[email protected]> Date: Wed Feb 1 10:06:00 2023 +0800 fix rollback error log (#459) commit 33438c652dcda0fd65d3ff6e16127b50677f13f4 Author: FengZhang <[email protected]> Date: Sat Jan 21 09:11:20 2023 +0800 fix error_code_test (#461) commit cd4b6aa09cf43a4d07296f1b22f85fb23c74dab5 Author: FengZhang <[email protected]> Date: Mon Jan 9 10:38:31 2023 +0800 ftr: optimize the datasource init (#447) * optimize the datasource init commit c44f6e4e57d6eb297243bee5a1b4b1a78962f4bd Author: Kirhaku <[email protected]> Date: Sun Jan 8 11:54:26 2023 +0800 add unit test for TransactionErrorCode and MessageType (#445) * add unit test for TransactionErrorCode and MessageType commit 209c5808824f3fd2c2bb748b5095dce22ed368bc Author: wang1309 <[email protected]> Date: Sun Jan 8 11:37:28 2023 +0800 Fix autoincrement insert panic (#452) * Initial commit * add config file * init * add rm * add processor * bug fix * use processor on message * change default config * init github Actions * init github Actions * add tcc process * Adjust the structure of the project * Adjust the structure of the project * Adjust the structure of the project * fix linter error * fix cli * add apache license * fix config * add unit test * add go imports shell * Adjust project directory * remove iota * fix cli bug * remove the useless comments * fix branch commit bug * remove goetty package * Optimize codec code * Create enhancement.md * style:change bool to struct{} * fix commit and rollback codec * realize branchReport * add seata-go samples * add processor unittest * remove blank and annotation * branchReport return value judgment * optimize-zap-log * update changed the format of log * remove the duplicate code same with sample/local * optimize format of logging * optimize format of logging * optimize format of logging * Update logging.go * feature add action context for tcc * add err check for unmarshal json * Feat add two phase (#122) * add two phase * support seata dubbo * fix getty auto close bug (#130) * optimize named for the resource manager api and tcc resource, adjust … (#125) update optimize the resource manager. * docs: add readme ,contributing and pr template doc (#153) * add license (#146) * bugfix: fix rollback response status bug (#155) * feature add unit test and labeler workflow (#165) * add license * add license * add unit test workflow, rename golangci lint workflow * changed golang version from 1.15 to 1.16 in workflow. * fix golangci-lint invaild * fix golangci-lint invalid. * add labeler workflow * fix labeler invaild * fix typo in reademe (#167) fix typo * doc: add seata server startup docker compose file (#172) doc: add seata server startup docker composer file * doc: add release 0.1.0 changes note (#169) doc: add release 0.0.1-rc1 changes note * optimize add ut for message (#154) * add ut for message * format imports * optimieze add ut for tm (#163) * add ut * add ut for tm * format imports * resolve conflict in go mod * fix loop variable v captured by func literal (govet) * optimize ut for tm in gomonkey mock. * format by goimports * optimize code style * resolve conflict. * [modify] git ignore add build products in 'dist/' (#177) * bugfix fix ut bug of msg, it will cause ci failed (#176) fix ut bug of msg. * optimize: optimise way of init seata (#187) optimize: optimise way of init seata * Feature add tcc branch report (#190) feature: add tcc branch report * refactor(pkg/rm): optimize function's parameters into one struct (#196) optimize function's parameters into one struct,comment and code style Co-authored-by: liushao <[email protected]> * feature add integration for grpc (#158) * finish ut for interceptor * add client interceptor * add server interceptor * adjust location for test file * format in goimports * goimformat * adjust package struct of grpc interceptor, move constant of grpc to common package. * adjust gprc interceptor file struct * refact directory, optimize grpc test case * optimize proto * delte test file * delte test file * fix npe for server integration * go mod tidy * remove duplicate constant * optimize: remove unnecessary codes (#208) * Add unit testing for getty (#203) * getty tests * test * test * style * style go mod * style:format imports * style:Delete the useless gomonkey Reset method Co-authored-by: xubaisheng <> * optimize workflow, add condecov and issue, stale robot (#202) optimize workflow, add condecov and issue robot * Feature add tcc branch report unit test (#210) test: add tcc branch report unit test * optimize: support instance BusinessActionContext outside the TCC try … (#179) optimize: support instance BusinessActionContext outside the TCC try method * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * optimize ResourceManagerInbound function's parameters into one struct-rm_api.go (#198) optimiz: optimize function's parameters into one struct-rm_api.go * feature add tcc grpc sample,adjust register resource and branch register (#200) feature: add grpc integration for tcc * fix enhancement: make time parameters easier to read (#215) optimize: make time parameters easier to read * feature/datasource_at merge to master (#213) feature: add transaction at datasource * add rm test (#192) add test for rm * optimize: add some todo comment, add a undo hook sample (#238) add some todo comment, add a undo hook sample * replace the underline naming in the code with the hump naming method (#235) * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * add dubbo transtation filter test (#204) test: add unit test for dubbo transtation filter * fix: do register resource where execute OpenConnector function (#237) * fix: register resource where execute OpenConnector function * remove chinese comment * optimize Add unit testing for common (#229) * add unit test * add unit test * add unit test Co-authored-by: miaoxueyu <[email protected]> * bugfix: fix infinite loop of asyncCallback (#230) asyncCallback -> syncCallback * feature: add undo log manager delete (#240) feature:add DeleteUndoLogs func, issue:#217 * frature: add update sql parser (#243) feature: parse select sql from update sql * feature: add license github action (#254) * add license github action * fix global transation time out (#258) * feature add fence for tcc, and add fence sample in tcc local mode. (#191) * frature: add update sql parser and remove tidb parser (#264) add update sql parser and remove tidb parser (#243) * fix ci failed because mock is invalid (#263) * optimize: nested loop retries (#261) * feat: add http tcc (#280) feat: add http tcc * feat: optimize retry (#284) feat: optimize retry * optimize: split client.Init into rm.Init and tm.Init methods (#286) optimize: nested loop retries (#261) * optimize: optimize global transaction usage (#281) * refact the tm executor and adjust the sample * optimize interface, adjust samples * fix ci * optimize comment * upgrade go version * add tx name configuration * add panic handler * feat: add has undo log table (#245) feat:add has undo log table func * (WIP)refactor:seata conn (#287) * refactor:seata conn * test: add unit test * test: add unit test * feat: add mysql update undo log builder (#288) feat: add mysql update undo log builder * change dubbo-go version (#302) optimize: change dubbo-go version * test:add DoParser ut (#299) test: add DoParser unit test * config github action not to automatically close ps or issue (#305) * add mysql delete undo log builder (#296) * add mysql delete undo log builder * add mysql delete undo log builder * add mysql delete undo log builder * add mysql delete undo log builder * feat: add sync worker and fmt (#303) * feat: add sync worker and fmt * feat: update * feat: update * feat: update * feat: update * feat: update * feat: update * feat: update * feat: fix spell * feat: fix conflict Co-authored-by: Xin.Zh <[email protected]> Co-authored-by: haohongfan1 <[email protected]> * Feat add mysql update after undo log builder (#289) feat: add mysql update after undo log builder * format:format code * format:format code * feat:add mysql table meta func && sql addEscape, delEscape func issue… (#294) * feat:add mysql table meta func && sql addEscape, delEscape func issue#290 * fix:TestMetaCache func rename * fix:ci lint fail fix * fix: solve GetTableMeta return type && constant define * fix:solve code format and meta cache func fault * fix:solev git ci fail * fix:solev git ci fail * format:format code * fix:merge master && format code * fix:solve name conflict Co-authored-by: 王瑞 <[email protected]> Co-authored-by: wangrui130 <[email protected]> * feat: init compressor type (#309) * init compressor type * refactor compress (#318) * init compressor type * init compressor type * reformat code * reformat code * Feat multi undo log builder (#301) * feat: add mysql update undo log builder * add log * add comment for JDBCType * add name * optimize basic builder * fix type * fix type * fix switch * add update after iamge builder * format code * format * add multi undo log builder * fix conflict * fix conflict * fix conflict * fix conflict * fix conflict * fix conflict * fix conflict * feat: fix fanout test data race (#326) * Refactor seata conn (#295) * refactor:split xa and at logic * refactor:split xa and at logic * refactor:split xa and at logic * feat(compressor): deflate compress (#321) * feat(compressor): deflate compress 1. Optimize compressor type definition. (Don't start with package name). 2. Implement deflate compressor and ut. close #312 * refactor(compressor): revert compressor type definition * refactor(compressor): remove fmt.Println in ut * refactor(compressor): adjust the order of deflate compressor constants. * Add LZ4 compressor support. (#324) * feat: add lz4 compressor support. Signed-off-by: Wyatt Jia <[email protected]> * fix lz4 compressor buffer error. Signed-off-by: Wyatt Jia <[email protected]> * format code by goimports. * Add equal lz4 decompress test case and format code by goimports. Signed-off-by: Wyatt Jia <[email protected]> * add zstd compress (#327) zstd compress Co-authored-by: xubaisheng <> * Feat add gzip (#322) * format:format code * feat:add gzip func * fix:comment unuseful code * fix: fix ret val and unit test assert * fix:gzip unit modify * fix:unit test param define modify Co-authored-by: wangrui130 <[email protected]> Co-authored-by: 王瑞 <[email protected]> * feat:add undo log manager-flush undo log func #269 (#307) add undo log manager-flush undo log func #269 * Feat add zip #315 (#329) * add zipcompress * Feat/multi update (#325) feat: add multi update * feature: add select for update (#319) * add select for update * wip:multi delete sql (#330) feat:multi delete sql Co-authored-by: wangxiaoxiong <[email protected]> * test: strengthen ut (#332) * optimize at (#336) optimize at model * Feat add undo func (#320) add undo function * optimize: add insert undo log function (#337) add insert undo log function * doc: add sample undo_log table sql add sample mysql * optimize at commit branch (#346) * optimize at * fix:timeout config & panic log lost (#350) * fix timeout config & panic log lost * format & fix rollback * optimize meta data (#352) optimize meta data * optimize commit (#354) optimize commit * optimize commit (#354) optimize commit process * feat: modify some receiver name (#353) * feat: modify some receiver name * feat: add no transaction test * feat: update batch delete * Optimize rollback (#356) optimize rollback * feat: add gin for at and fix async worker bug (#357) * feature: support ONLY_CARE_UPDATE_COLUMNS (#355) support ONLY_CARE_UPDATE_COLUMNS & fix beforeImage error due to the struct shallow copy * Rollback (#358) * feat: rollback * feat: add at rollback sampel * feat: fix name * fix bug (#359) * Rollback1 (#360) * feat: rollback * feat: add at rollback sampel * feat: update * Fix meta data (#363) fix ColumnType * Fix decode image(#365) fix decode image * add data check before rollbeck (#366) * add data check before rollbeck * doc: v1.0.2-RC1 release file (#338) * optimize: remove unless function (#369) remove unless function * doc: update 1.0.2-RC1 change log (#370) * update 1.0.2-RC1 change log * fix: at sample (#374) fix at rolback sample * optimize: simplify to make codes more readable (#367) Signed-off-by: charlie <[email protected]> * feat:add yml config (#285) add yml config * feat: support for propagation of global transactions (#262) * feature:build undo log by insert target SQL (#333) * insert undo log * add insert undo test * fix map loop * OPT code style & lint & add ut * fix imports * fix conflict & adapter some modify * fix some bug & add ut * fix at smaple sql (#385) fix the table structure in testdata sql requires fewer fields than that in smaple (#385) * fix: loop recursion problem in OpenConnector (#387) fix: fix loop recursion problem in OpenConnector * add tcc fence config logic (#383) * add tcc fence config logic * add string loader * fix samples * fix samples * fix samples * fix samples * fix samples * fix samples * fix samples * merge Load and LoadPath * fix sample * optimize some format (#392) Co-authored-by: haohongfan1 <[email protected]> * optimize at base executor (#394) optimize at executor * feat: add tm config (#398) feat(pkg/client,pkg/config): add tm config * feat: add getty config (#399) add getty config * fix branch register response (#401) * fix branch register response * optimize protocol init (#400) * optimize protocol init * optimize RM init (#390) * OPT rm client * fix code style * fix lint * feat: support xa mysql connection (#380) * [wip]feat: support xa mysql connection Signed-off-by: charlie <[email protected]> * Feat xa branch xid (#389) * feat: add xa branch xid Co-authored-by: 王瑞 <[email protected]> * [AT] add insert on duplicate (#405) Co-authored-by: “kirhaku” <“[email protected]”> * optimize: refactor at executor (#397) * refactor at executor * refactor: use new tm config in tm module. (#411) * refactor: use new tm config in tm module. * roptimize: efactor delete and insert executor (#409) * refactor delete and insert executor * optimize: add log init (#408) * feature: add transport config (#4…
1 parent a1c3764 commit 9b35487

File tree

95 files changed

+17716
-2252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+17716
-2252
lines changed

go.mod

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ require (
3737
google.golang.org/protobuf v1.30.0
3838
)
3939

40-
require github.com/knadh/koanf v1.5.0
40+
require (
41+
github.com/auxten/postgresql-parser v1.0.1
42+
github.com/blastrain/vitess-sqlparser v0.0.0-20201030050434-a139afbb1aba
43+
github.com/jackc/pgx/v4 v4.18.3
44+
github.com/knadh/koanf v1.5.0
45+
)
4146

4247
require (
4348
github.com/RoaringBitmap/roaring v1.2.0 // indirect
@@ -46,25 +51,45 @@ require (
4651
github.com/beorn7/perks v1.0.1 // indirect
4752
github.com/bits-and-blooms/bitset v1.2.0 // indirect
4853
github.com/bytedance/sonic v1.9.1 // indirect
54+
github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054 // indirect
4955
github.com/cespare/xxhash/v2 v2.2.0 // indirect
5056
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
57+
github.com/cockroachdb/apd v1.1.1-0.20181017181144-bced77f817b4 // indirect
58+
github.com/cockroachdb/errors v1.8.2 // indirect
59+
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f // indirect
60+
github.com/cockroachdb/redact v1.0.8 // indirect
61+
github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 // indirect
5162
github.com/coreos/go-semver v0.3.0 // indirect
5263
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
5364
github.com/creasty/defaults v1.5.2 // indirect
5465
github.com/davecgh/go-spew v1.1.1 // indirect
66+
github.com/dustin/go-humanize v1.0.0 // indirect
5567
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
68+
github.com/getsentry/raven-go v0.2.0 // indirect
5669
github.com/gin-contrib/sse v0.1.0 // indirect
5770
github.com/go-ole/go-ole v1.2.6 // indirect
5871
github.com/go-playground/locales v0.14.1 // indirect
5972
github.com/go-playground/universal-translator v0.18.1 // indirect
6073
github.com/gogo/protobuf v1.3.2 // indirect
6174
github.com/golang/snappy v0.0.4 // indirect
6275
github.com/gorilla/websocket v1.4.2 // indirect
76+
github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect
77+
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
78+
github.com/jackc/pgconn v1.14.3 // indirect
79+
github.com/jackc/pgio v1.0.0 // indirect
80+
github.com/jackc/pgpassfile v1.0.0 // indirect
81+
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
82+
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
83+
github.com/jackc/pgtype v1.14.0 // indirect
6384
github.com/jinzhu/copier v0.3.5 // indirect
6485
github.com/json-iterator/go v1.1.12 // indirect
86+
github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5 // indirect
6587
github.com/k0kubun/pp v3.0.1+incompatible // indirect
6688
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
89+
github.com/kr/pretty v0.3.0 // indirect
90+
github.com/kr/text v0.2.0 // indirect
6791
github.com/leodido/go-urn v1.2.4 // indirect
92+
github.com/lib/pq v1.10.9 // indirect
6893
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
6994
github.com/magiconair/properties v1.8.6 // indirect
7095
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
@@ -80,8 +105,11 @@ require (
80105
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
81106
github.com/prometheus/client_model v0.2.0 // indirect
82107
github.com/prometheus/procfs v0.7.3 // indirect
108+
github.com/rogpeppe/go-internal v1.8.0 // indirect
83109
github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b // indirect
84110
github.com/shirou/gopsutil/v3 v3.22.2 // indirect
111+
github.com/sirupsen/logrus v1.7.0 // indirect
112+
github.com/spf13/pflag v1.0.5 // indirect
85113
github.com/tklauser/go-sysconf v0.3.10 // indirect
86114
github.com/tklauser/numcpus v0.4.0 // indirect
87115
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
@@ -90,7 +118,8 @@ require (
90118
go.etcd.io/etcd/client/pkg/v3 v3.5.6 // indirect
91119
go.uber.org/multierr v1.10.0 // indirect
92120
golang.org/x/arch v0.3.0 // indirect
93-
golang.org/x/text v0.14.0 // indirect
121+
golang.org/x/sync v0.13.0 // indirect
122+
golang.org/x/text v0.24.0 // indirect
94123
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
95124
gopkg.in/yaml.v3 v3.0.1 // indirect
96125
)
@@ -103,9 +132,9 @@ require (
103132
github.com/mattn/go-isatty v0.0.19 // indirect
104133
github.com/pelletier/go-toml v1.9.3 // indirect
105134
github.com/pingcap/log v0.0.0-20210906054005-afc726e70354 // indirect
106-
golang.org/x/crypto v0.21.0 // indirect
135+
golang.org/x/crypto v0.37.0 // indirect
107136
golang.org/x/net v0.23.0 // indirect
108-
golang.org/x/sys v0.18.0 // indirect
137+
golang.org/x/sys v0.32.0 // indirect
109138
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
110139
vimagination.zapto.org/memio v0.0.0-20200222190306-588ebc67b97d // indirect
111140
)

go.sum

Lines changed: 232 additions & 6 deletions
Large diffs are not rendered by default.

pkg/datasource/sql/conn.go

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ package sql
2020
import (
2121
"context"
2222
"database/sql/driver"
23+
"fmt"
24+
"github.com/pkg/errors"
2325

2426
"seata.apache.org/seata-go/pkg/datasource/sql/exec"
2527
"seata.apache.org/seata-go/pkg/datasource/sql/types"
@@ -37,6 +39,29 @@ type Conn struct {
3739
autoCommit bool
3840
dbName string
3941
dbType types.DBType
42+
isTestMode bool
43+
}
44+
45+
// Implement the Connect method of the driver.Connector interface for *Conn
46+
func (c *Conn) Connect(ctx context.Context) (driver.Conn, error) {
47+
// For test scenarios: Return self directly (since *Conn already implements the driver.Conn interface)
48+
// No need to create an additional connection; reuse the existing mockDriverConn instance
49+
fmt.Printf("[*Conn.Connect] Implement driver.Connector, return self as connection instance → isTestMode=%v\n", c.isTestMode)
50+
return c, nil // Return *Conn instance (complies with driver.Conn type requirement)
51+
}
52+
53+
// (Optional) Implement the Driver method of the driver.Connector interface (required in some scenarios to avoid potential errors)
54+
func (c *Conn) Driver() driver.Driver {
55+
// For test scenarios: Return an empty Driver implementation (or mock Driver)
56+
return &mockDriver{}
57+
}
58+
59+
// Define an empty mockDriver struct (used to implement the driver.Driver interface)
60+
type mockDriver struct{}
61+
62+
// Implement the Open method of the driver.Driver interface (empty implementation; no real logic needed for test scenarios)
63+
func (d *mockDriver) Open(name string) (driver.Conn, error) {
64+
return nil, errors.New("mockDriver: Open method not implemented (no invocation needed in test scenarios)")
4065
}
4166

4267
// ResetSession is called prior to executing a query on the connection
@@ -213,10 +238,26 @@ func (c *Conn) Begin() (driver.Tx, error) {
213238
func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) {
214239
if c.txCtx.TransactionMode == types.XAMode {
215240
c.autoCommit = false
241+
242+
var originTx driver.Tx
243+
if c.isTestMode {
244+
var err error
245+
if conn, ok := c.targetConn.(driver.ConnBeginTx); ok {
246+
originTx, err = conn.BeginTx(ctx, opts)
247+
} else {
248+
originTx, err = c.targetConn.Begin()
249+
}
250+
if err != nil {
251+
return nil, fmt.Errorf("xa test mode: targetConn begin tx failed: %w", err)
252+
}
253+
} else {
254+
originTx = nil
255+
}
256+
216257
return newTx(
217258
withDriverConn(c),
218259
withTxCtx(c.txCtx),
219-
withOriginTx(nil),
260+
withOriginTx(originTx),
220261
)
221262
}
222263

pkg/datasource/sql/conn_at.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func (c *ATConn) ExecContext(ctx context.Context, query string, args []driver.Na
6363
NamedValues: args,
6464
Conn: c.targetConn,
6565
DBName: c.dbName,
66+
DBType: c.res.dbType,
6667
DbVersion: c.GetDbVersion(),
6768
IsSupportsSavepoints: true,
6869
IsAutoCommit: c.GetAutoCommit(),

0 commit comments

Comments
 (0)