github.com/cockroachdb/pebble@v1.1.1-0.20240513155919-3622ade60459/testdata/cleaner (about) 1 # Test archive cleaner. 2 open db archive 3 ---- 4 mkdir-all: db 0755 5 mkdir-all: db_wal 0755 6 open-dir: db 7 open-dir: db_wal 8 lock: db/LOCK 9 open-dir: db 10 open-dir: db 11 open: db/CURRENT 12 create: db/MANIFEST-000001 13 sync: db/MANIFEST-000001 14 remove: db/temporary.000001.dbtmp 15 create: db/temporary.000001.dbtmp 16 sync: db/temporary.000001.dbtmp 17 close: db/temporary.000001.dbtmp 18 rename: db/temporary.000001.dbtmp -> db/CURRENT 19 sync: db 20 open-dir: db 21 sync: db/MANIFEST-000001 22 create: db_wal/000002.log 23 sync: db_wal 24 create: db/temporary.000003.dbtmp 25 sync: db/temporary.000003.dbtmp 26 close: db/temporary.000003.dbtmp 27 rename: db/temporary.000003.dbtmp -> db/OPTIONS-000003 28 sync: db 29 30 batch db 31 set a 1 32 set b 2 33 set c 3 34 ---- 35 sync-data: db_wal/000002.log 36 37 flush db 38 ---- 39 sync-data: db_wal/000002.log 40 close: db_wal/000002.log 41 create: db_wal/000004.log 42 sync: db_wal 43 create: db/000005.sst 44 sync-data: db/000005.sst 45 close: db/000005.sst 46 sync: db 47 sync: db/MANIFEST-000001 48 mkdir-all: db_wal/archive 0755 49 rename: db_wal/000002.log -> db_wal/archive/000002.log 50 51 batch db 52 set d 4 53 ---- 54 sync-data: db_wal/000004.log 55 56 compact db 57 ---- 58 sync-data: db_wal/000004.log 59 close: db_wal/000004.log 60 create: db_wal/000006.log 61 sync: db_wal 62 create: db/000007.sst 63 sync-data: db/000007.sst 64 close: db/000007.sst 65 sync: db 66 sync: db/MANIFEST-000001 67 mkdir-all: db_wal/archive 0755 68 rename: db_wal/000004.log -> db_wal/archive/000004.log 69 open: db/000005.sst 70 read-at(744, 53): db/000005.sst 71 read-at(707, 37): db/000005.sst 72 read-at(79, 628): db/000005.sst 73 read-at(52, 27): db/000005.sst 74 open: db/000005.sst 75 close: db/000005.sst 76 open: db/000007.sst 77 read-at(718, 53): db/000007.sst 78 read-at(681, 37): db/000007.sst 79 read-at(53, 628): db/000007.sst 80 read-at(26, 27): db/000007.sst 81 open: db/000007.sst 82 close: db/000007.sst 83 open: db/000005.sst 84 read-at(0, 52): db/000005.sst 85 create: db/000008.sst 86 close: db/000005.sst 87 open: db/000007.sst 88 read-at(0, 26): db/000007.sst 89 close: db/000007.sst 90 sync-data: db/000008.sst 91 close: db/000008.sst 92 sync: db 93 sync: db/MANIFEST-000001 94 close: db/000005.sst 95 close: db/000007.sst 96 mkdir-all: db/archive 0755 97 rename: db/000005.sst -> db/archive/000005.sst 98 mkdir-all: db/archive 0755 99 rename: db/000007.sst -> db/archive/000007.sst 100 101 list db 102 ---- 103 000008.sst 104 CURRENT 105 LOCK 106 MANIFEST-000001 107 OPTIONS-000003 108 archive 109 110 list db_wal 111 ---- 112 000006.log 113 archive 114 115 list db/archive 116 ---- 117 000005.sst 118 000007.sst 119 120 list db_wal/archive 121 ---- 122 000002.log 123 000004.log 124 125 # Test cleanup of extra sstables on open. 126 open db1 127 ---- 128 mkdir-all: db1 0755 129 mkdir-all: db1_wal 0755 130 open-dir: db1 131 open-dir: db1_wal 132 lock: db1/LOCK 133 open-dir: db1 134 open-dir: db1 135 open: db1/CURRENT 136 create: db1/MANIFEST-000001 137 sync: db1/MANIFEST-000001 138 remove: db1/temporary.000001.dbtmp 139 create: db1/temporary.000001.dbtmp 140 sync: db1/temporary.000001.dbtmp 141 close: db1/temporary.000001.dbtmp 142 rename: db1/temporary.000001.dbtmp -> db1/CURRENT 143 sync: db1 144 open-dir: db1 145 sync: db1/MANIFEST-000001 146 create: db1_wal/000002.log 147 sync: db1_wal 148 create: db1/temporary.000003.dbtmp 149 sync: db1/temporary.000003.dbtmp 150 close: db1/temporary.000003.dbtmp 151 rename: db1/temporary.000003.dbtmp -> db1/OPTIONS-000003 152 sync: db1 153 154 batch db1 155 set a 1 156 set b 2 157 set c 3 158 ---- 159 sync-data: db1_wal/000002.log 160 161 flush db1 162 ---- 163 sync-data: db1_wal/000002.log 164 close: db1_wal/000002.log 165 create: db1_wal/000004.log 166 sync: db1_wal 167 create: db1/000005.sst 168 sync-data: db1/000005.sst 169 close: db1/000005.sst 170 sync: db1 171 sync: db1/MANIFEST-000001 172 173 close db1 174 ---- 175 close: db1 176 sync-data: db1_wal/000004.log 177 close: db1_wal/000004.log 178 close: db1/MANIFEST-000001 179 close: db1 180 close: db1 181 close: db1_wal 182 close: db1 183 184 create-bogus-file db1/000123.sst 185 ---- 186 create: db1/000123.sst 187 sync: db1/000123.sst 188 close: db1/000123.sst 189 190 create-bogus-file db1/000456.sst 191 ---- 192 create: db1/000456.sst 193 sync: db1/000456.sst 194 close: db1/000456.sst 195 196 open db1 197 ---- 198 mkdir-all: db1 0755 199 mkdir-all: db1_wal 0755 200 open-dir: db1 201 open-dir: db1_wal 202 lock: db1/LOCK 203 open-dir: db1 204 open-dir: db1 205 open: db1/CURRENT 206 read-at(0, 16): db1/CURRENT 207 close: db1/CURRENT 208 open: db1/MANIFEST-000001 209 close: db1/MANIFEST-000001 210 open-dir: db1 211 open: db1/OPTIONS-000003 212 close: db1/OPTIONS-000003 213 open: db1_wal/000004.log 214 close: db1_wal/000004.log 215 create: db1/MANIFEST-000458 216 sync: db1/MANIFEST-000458 217 remove: db1/temporary.000458.dbtmp 218 create: db1/temporary.000458.dbtmp 219 sync: db1/temporary.000458.dbtmp 220 close: db1/temporary.000458.dbtmp 221 rename: db1/temporary.000458.dbtmp -> db1/CURRENT 222 sync: db1 223 create: db1_wal/000457.log 224 sync: db1_wal 225 create: db1/temporary.000459.dbtmp 226 sync: db1/temporary.000459.dbtmp 227 close: db1/temporary.000459.dbtmp 228 rename: db1/temporary.000459.dbtmp -> db1/OPTIONS-000459 229 sync: db1 230 remove: db1_wal/000002.log 231 remove: db1_wal/000004.log 232 remove: db1/000123.sst 233 remove: db1/000456.sst 234 remove: db1/OPTIONS-000003 235 236 list db1 237 ---- 238 000005.sst 239 CURRENT 240 LOCK 241 MANIFEST-000001 242 MANIFEST-000458 243 OPTIONS-000459