Rusty Russell
5e2f6c5028
gossmap: don't stop reading if we hit a redundant channel_announce.
...
While this shouldn't happen, it does (pending other fixes), and we stop reading the
gossip store until next time. The result is partial gossip, demonstrated beautifully
by NicolasDorier's report:
```
lightning_gossipd: gossmap: redundant channel_announce for 864063x1306x1, offsets 1272259 and 1784859!"
```
Gossipd stalld there and don't make more progress. So gossipd itself
doesn't see the entire gossip_store.
Then things get really batshit:
```
2025-02-04T05:53:28.582Z DEBUG gossipd: Store compact time: 1429910 msec
```
This took 1429 seconds to process. Why?
Because it hasn't been processing the gossip store fully, gossipd kept adding "new" records to the end:
```
2025-02-04T05:53:28.583Z DEBUG gossipd: gossip_store: Read 62716143/1739952/5158256/0 cannounce/cupdate/nannounce/delete from store in 31634458462 bytes, now 31634458440 bytes (populated=true)
```
It has 31GB of gossip in there! No wonder it took so long...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
Fixes: https://github.com/ElementsProject/lightning/issues/8035
Changelog-Fixed: gossipd: corruption in the gossip_store could cause ever-longer startup times and no gossip updates.
2025-02-11 15:11:47 -06:00
..
2025-02-11 15:11:47 -06:00
2024-11-12 06:42:52 +10:30
2024-11-12 06:42:52 +10:30
2024-11-21 16:17:52 +10:30
2024-11-21 16:17:52 +10:30
2024-05-18 10:02:43 +02:00
2023-05-27 15:06:31 +09:30
2023-05-27 15:06:31 +09:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2023-01-30 13:24:29 +10:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-03-20 13:51:48 +10:30
2024-03-20 13:51:48 +10:30
2024-03-20 13:51:48 +10:30
2024-03-20 13:51:48 +10:30
2023-09-21 20:08:24 +09:30
2024-08-01 12:31:48 +09:30
2024-08-01 12:31:48 +09:30
2024-08-01 12:31:48 +09:30
2024-08-01 12:31:48 +09:30
2024-11-30 13:17:55 +01:00
2024-11-30 13:17:55 +01:00
2024-05-09 16:14:23 -05:00
2024-07-23 09:54:47 +09:30
2024-11-12 06:42:52 +10:30
2024-06-19 15:54:24 +09:30
2024-06-19 15:54:24 +09:30
2024-03-18 12:24:49 +10:30
2023-08-02 16:12:32 +09:30
2023-08-02 16:12:32 +09:30
2024-08-08 12:30:53 -07:00
2024-08-08 12:30:53 -07:00
2025-01-13 15:45:19 -08:00
2023-09-21 20:08:24 +09:30
2024-08-10 15:20:59 +09:30
2024-11-13 08:49:55 +10:30
2023-09-20 13:56:46 +09:30
2023-06-23 13:12:42 +09:30
2025-01-28 10:53:22 +10:30
2024-03-20 11:18:36 +10:30
2024-07-10 12:21:19 +09:30
2024-01-26 10:30:22 +10:30
2024-01-26 10:30:22 +10:30
2024-07-23 09:54:47 +09:30
2023-09-21 20:08:24 +09:30
2025-01-27 11:07:04 +10:30
2025-01-27 11:07:04 +10:30
2024-03-07 14:09:14 +01:00
2024-03-07 14:09:14 +01:00
2024-06-19 15:54:24 +09:30
2024-10-16 07:14:32 +10:30
2024-05-13 14:06:45 -05:00
2024-05-13 14:06:45 -05:00
2024-11-19 17:51:18 +10:30
2023-01-30 15:15:41 -06:00
2024-02-12 11:43:33 +01:00
2025-02-11 15:11:47 -06:00
2025-02-11 15:11:47 -06:00
2024-10-04 11:27:53 +09:30
2024-10-04 11:27:53 +09:30
2024-07-23 09:54:47 +09:30
2024-01-29 12:02:37 +10:30
2024-01-29 12:02:37 +10:30
2024-11-13 08:49:55 +10:30
2024-11-13 08:49:55 +10:30
2024-08-01 12:31:48 +09:30
2023-06-29 11:28:47 -04:00
2023-06-29 11:28:47 -04:00
2023-06-29 11:28:47 -04:00
2024-06-19 15:54:24 +09:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-06-19 15:54:24 +09:30
2024-03-20 13:51:48 +10:30
2024-03-20 13:51:48 +10:30
2023-06-29 11:28:47 -04:00
2025-02-05 12:50:24 -06:00
2024-11-21 14:15:36 +10:30
2022-11-09 15:08:03 +01:00
2024-10-16 07:14:32 +10:30
2024-05-12 19:11:43 -05:00
2024-01-29 13:40:34 +10:30
2024-01-29 13:40:34 +10:30
2024-06-25 08:47:50 +09:30
2024-06-25 08:47:50 +09:30
2022-11-09 20:25:58 +10:30
2022-11-09 20:25:58 +10:30
2025-01-13 15:45:19 -08:00
2024-11-12 06:42:52 +10:30
2023-07-13 19:34:47 +09:30
2023-07-13 19:34:47 +09:30
2024-10-04 11:27:53 +09:30
2024-10-04 11:27:53 +09:30
2024-10-07 14:05:47 +02:00
2024-10-07 14:05:47 +02:00
2024-11-21 14:15:36 +10:30
2024-06-19 15:54:24 +09:30
2023-03-22 13:50:32 +10:30
2024-06-19 15:54:24 +09:30
2024-11-12 06:42:52 +10:30
2023-10-03 10:05:55 +02:00
2023-10-03 10:05:55 +02:00
2024-11-01 16:54:49 +10:30
2024-03-20 13:51:48 +10:30
2024-03-20 13:51:48 +10:30
2024-11-20 12:29:27 +01:00
2024-11-20 12:29:27 +01:00
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2024-10-16 07:14:32 +10:30
2023-10-23 15:48:50 +10:30
2023-10-23 15:48:50 +10:30
2023-10-23 15:48:50 +10:30
2023-03-23 16:10:55 +10:30
2023-09-21 20:08:24 +09:30
2024-05-17 13:03:12 -05:00
2024-05-17 13:03:12 -05:00
2024-05-09 16:14:23 -05:00
2023-07-31 21:00:22 +09:30
2023-07-11 11:41:15 +09:30
2023-07-11 11:41:15 +09:30
2024-11-12 06:42:52 +10:30
2024-11-12 06:42:52 +10:30
2023-08-12 09:24:06 +09:30
2023-08-12 09:24:06 +09:30
2023-10-23 15:48:50 +10:30
2023-10-23 15:48:50 +10:30
2024-10-07 14:05:47 +02:00
2024-10-07 14:05:47 +02:00
2023-06-01 09:28:39 +09:30
2024-05-12 19:11:43 -05:00
2024-05-12 19:11:43 -05:00
2024-01-16 15:47:03 +01:00
2024-03-18 12:24:49 +10:30
2022-12-13 08:28:12 +10:30
2024-11-18 11:03:26 +10:30
2024-11-18 11:03:26 +10:30
2024-12-16 09:36:17 +10:30
2024-11-12 06:42:52 +10:30
2024-05-08 21:05:49 -05:00
2024-05-08 21:05:49 -05:00
2024-12-16 09:48:51 +10:30
2024-12-16 09:48:51 +10:30
2024-12-16 09:48:51 +10:30
2023-09-21 20:08:24 +09:30
2024-11-24 10:24:31 +10:30
2024-11-24 10:24:31 +10:30
2023-02-07 21:03:36 -06:00
2023-02-07 21:03:36 -06:00
2024-02-16 15:02:38 +01:00
2024-07-23 09:54:47 +09:30
2023-06-29 11:28:47 -04:00
2023-06-29 11:28:47 -04:00
2023-06-03 10:50:29 +09:30
2023-06-03 10:50:29 +09:30
2023-01-30 15:15:41 -06:00
2024-11-21 14:15:36 +10:30
2024-11-21 14:15:36 +10:30
2024-11-25 15:39:13 +10:30
2024-11-25 15:39:13 +10:30