git-annex/doc/bugs/get_is_busy_doing_nothing
Joey Hess 3149a1e2fe
More robust handling of ErrorBusy when writing to sqlite databases
While ErrorBusy and other exceptions were caught and the write retried for
up to 10 seconds, it was still possible for git-annex to eventually
give up and error out without writing to the database. Now it will retry
as long as necessary.

This does mean that, if one git-annex process is suspended just as sqlite
has locked the database for writing, another git-annex that tries to write
it it might get stuck retrying forever. But, that could already happen when
opening the sqlite database, which retries forever on ErrorBusy. This is an
area where git-annex is known to not behave well, there's a todo about the
general case of it.

Sponsored-by: Dartmouth College's Datalad project
2022-10-17 15:56:19 -04:00
..
comment_1_ea9363fac84619b72d6c9f2a3a5c2d6d._comment
comment_2_8b11e01481065814d2b35f9d728df9f7._comment
comment_3_f06b9085e1d48298c6c1739afb17d2bb._comment Added a comment 2022-05-24 21:05:03 +00:00
comment_4_422aed4fc2729483e1479cadd54f45e1._comment followup 2022-05-25 13:43:33 -04:00
comment_5_28da709b2152b1ce1d0c926b099febad._comment Added a comment: What filesystem is this happening on? 2022-05-25 21:09:38 +00:00
comment_6_c9594a39c44f7fd6649c418dbb5d2c59._comment Added a comment: another/different? stall 2022-05-26 14:31:33 +00:00
comment_7_7a7f6e9793817884a309632e4ebaba1b._comment comment 2022-05-31 13:32:27 -04:00
comment_8_0b507f49b6c23d9a9e1557fe96ad58b1._comment Added a comment 2022-05-31 19:07:59 +00:00
comment_9_6209db4f931bced0f6782d231aa45452._comment Added a comment 2022-05-31 19:17:05 +00:00
comment_10_10fea4ce67f5f9c6c33ba2a23a185f8a._comment Added a comment 2022-06-01 05:27:22 +00:00
comment_11_36dd4a0dba9e544d18376013e879b9c2._comment Added a comment 2022-06-01 13:49:05 +00:00
comment_13_795ffef1e6a9f1acbd4394c1fca3818e._comment comment 2022-06-01 13:16:56 -04:00
comment_13_afae18b8b3a17f376b9a345059d9dbd4._comment Added a comment: defending BTRFS 2022-06-02 18:43:02 +00:00
comment_13_bdfbcb8b6052a3c904e46678fce6adeb._comment add debugLocks around database operations 2022-06-03 14:16:28 -04:00
comment_14_9f6fde051e877638a56094d3179dc550._comment Added a comment 2022-06-03 16:42:39 +00:00
comment_16_4d375d35a0d05d99c7becf591823d6b8._comment Added a comment 2022-06-05 12:55:04 +00:00
comment_17_f687c46fb89009712247fe480f0f9566._comment Added a comment 2022-06-06 14:00:05 +00:00
comment_18_0e5796c55c76dc8b37f9fd875d87eff0._comment Added a comment 2022-06-06 14:50:16 +00:00
comment_19_216aefa4a78d13cc0c46780161921a36._comment fix MVar deadlock when sqlite commit fails 2022-06-06 12:16:55 -04:00
comment_20_981cc786be798a612046d207c0f85955._comment update 2022-10-11 15:07:52 -04:00
comment_21_eabe406ab0d6e71c3f5f30908016a592._comment comment 2022-06-06 12:37:40 -04:00
comment_22_711bf1ba8688bdc3bf33e7103340bc11._comment Added a comment 2022-06-06 17:22:41 +00:00
comment_23_3671d133d18f6722901ed01a1fa38164._comment Added a comment 2022-06-07 12:07:30 +00:00
comment_24_054db0e62994590631737b9bd768d901._comment comment 2022-06-08 12:54:28 -04:00
comment_25_4766362f74f135887d5b6103db9a8a06._comment update 2022-10-11 15:07:52 -04:00
comment_26_d02b310b007b304e0eda23bd5e565851._comment update and open a todo about something I'm pondering 2022-10-12 15:53:56 -04:00
comment_27_45168f110bded2f8c8f9777e1edda945._comment More robust handling of ErrorBusy when writing to sqlite databases 2022-10-17 15:56:19 -04:00