EdColeman opened a new pull request, #4116:
URL: https://github.com/apache/accumulo/pull/4116
The utility creates an empty wal file with a version 4 header. This
parallels the CreateEmpty utility to generate an empty RFile.
A hex dump of a created file.
```
00000000 2d 2d 2d 20 4c 6f 67 20 46 69 6c 65 20 48 65 61 |--- Log File
Hea|
00000010 64 65 72 20 28 76 34 29 20 2d 2d 2d 00 00 00 07 |der (v4)
---....|
00000020 55 2b 31 46 34 37 42 00 00 00 00 02 00 00 00 00
|U+1F47B.........|
00000030 00 00 |..|
00000032
```
The created file can be read by the wal-info utility
```
2023-12-22T19:46:22,240 [conf.SiteConfiguration] INFO : Found Accumulo
configuration on classpath at
[deleted]/fluo-uno/install/accumulo-3.1.0-SNAPSHOT/conf/accumulo.properties
OPEN
2023-12-22T19:46:23,310 [logger.LogReader] INFO : Done reading
/accumulo/empty/e1.wal
```
I did test this using an uno instance, by kill the tserver, replaceing the
wal that didn't have mutations and the then restarted the tserver.
Relevant log fragments: (the wal replaced with the generated empty was
48857908-d9c2-48ec-8bb0-5d3e9ca2cce4)
<details>
<summary>tserver log on recovery</summary>
2023-12-22T16:53:07,533 [log.LogSorter] INFO : Finished log sort
48857908-d9c2-48ec-8bb0-5d3e9ca2cce4 50 bytes 1 parts in 211ms
2023-12-22T16:53:07,536 [log.LogSorter] INFO : Finished log sort
7b435c97-4952-476f-8862-a6cc79f0cd3d 6684 bytes 1 parts in 212ms
...
2023-12-22T16:53:27,885 [log.SortedLogRecovery] INFO : Found 1 of 2 logs
with max id 1 for tablet +r<<
2023-12-22T16:53:27,896 [log.SortedLogRecovery] INFO : Recovering mutations,
tablet:+r<< tabletId:1 seq:30 logs:[7b435c97-4952-476f-8862-a6cc79f0cd3d]
2023-12-22T16:53:27,924 [tablet.recovery] INFO : For +r<< recovered 0
mutations creating 0 entries from 0 walogs
2023-12-22T16:53:27,948 [tserver.TabletClientHandler] INFO : Root tablet
loaded: +r<<
2023-12-22T16:53:28,258 [tserver.TabletServer] INFO : Writing log marker for
hdfs://localhost:8020/accumulo/wal/ip-10-113-15-130+9997/80e442de-23d7-413f-9612-dc542c54a319
2023-12-22T16:53:28,262 [log.TabletServerLogger] INFO : Using next log
hdfs://localhost:8020/accumulo/wal/ip-10-113-15-130+9997/80e442de-23d7-413f-9612-dc542c54a319
2023-12-22T16:53:28,293 [tserver.TabletServer] INFO : Writing log marker for
hdfs://localhost:8020/accumulo/wal/ip-10-113-15-130+9997/443901c3-53cf-4275-a4d0-a9f18b60f735
2023-12-22T16:53:28,478 [log.SortedLogRecovery] INFO : Tablet !0<;~ is not
defined in recovery logs [48857908-d9c2-48ec-8bb0-5d3e9ca2cce4,
7b435c97-4952-476f-8862-a6cc79f0cd3d]
2023-12-22T16:53:28,509 [tablet.recovery] INFO : For !0<;~ recovered 0
mutations creating 0 entries from 0 walogs
2023-12-22T16:53:28,566 [log.SortedLogRecovery] INFO : Tablet !0;~< is not
defined in recovery logs [48857908-d9c2-48ec-8bb0-5d3e9ca2cce4,
7b435c97-4952-476f-8862-a6cc79f0cd3d]
2023-12-22T16:53:28,575 [tablet.recovery] INFO : For !0;~< recovered 0
mutations creating 0 entries from 0 walogs
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]