github.com/cockroachdb/pebble@v1.1.2/objstorage/objstorageprovider/remoteobjcat/testdata/catalog (about) 1 open test 2 ---- 3 4 list test 5 ---- 6 7 batch 8 add 1 10 100 9 ---- 10 create: test/REMOTE-OBJ-CATALOG-000001 11 sync: test/REMOTE-OBJ-CATALOG-000001 12 create: test/marker.remote-obj-catalog.000001.REMOTE-OBJ-CATALOG-000001 13 close: test/marker.remote-obj-catalog.000001.REMOTE-OBJ-CATALOG-000001 14 sync: test 15 sync: test/REMOTE-OBJ-CATALOG-000001 16 17 list test 18 ---- 19 REMOTE-OBJ-CATALOG-000001 20 marker.remote-obj-catalog.000001.REMOTE-OBJ-CATALOG-000001 21 22 batch 23 add 2 20 200 24 add 3 30 300 25 ---- 26 sync: test/REMOTE-OBJ-CATALOG-000001 27 28 batch 29 delete 1 30 ---- 31 sync: test/REMOTE-OBJ-CATALOG-000001 32 33 list test 34 ---- 35 REMOTE-OBJ-CATALOG-000001 36 marker.remote-obj-catalog.000001.REMOTE-OBJ-CATALOG-000001 37 38 set-creator-id 5 39 ---- 40 sync: test/REMOTE-OBJ-CATALOG-000001 41 42 set-creator-id 5 43 ---- 44 45 set-creator-id 6 46 ---- 47 error setting creator ID: attempt to change CreatorID from 5 to 6 48 49 # Bad batches. 50 batch 51 add 3 1 1 52 ---- 53 error applying batch: adding existing object 000003 54 55 batch 56 delete 1000 57 ---- 58 error applying batch: deleting non-existent object 001000 59 60 close 61 ---- 62 close: test/REMOTE-OBJ-CATALOG-000001 63 64 open test 65 ---- 66 creator-id: 5 67 000002: 20/000200 68 000003: 30/000300 69 70 set-creator-id 6 71 ---- 72 error setting creator ID: attempt to change CreatorID from 5 to 6 73 74 batch 75 add 4 40 40 76 delete 3 77 add 8 80 80 78 ---- 79 create: test/REMOTE-OBJ-CATALOG-000002 80 sync: test/REMOTE-OBJ-CATALOG-000002 81 create: test/marker.remote-obj-catalog.000002.REMOTE-OBJ-CATALOG-000002 82 close: test/marker.remote-obj-catalog.000002.REMOTE-OBJ-CATALOG-000002 83 remove: test/marker.remote-obj-catalog.000001.REMOTE-OBJ-CATALOG-000001 84 sync: test 85 remove: test/REMOTE-OBJ-CATALOG-000001 86 sync: test/REMOTE-OBJ-CATALOG-000002 87 88 list test 89 ---- 90 REMOTE-OBJ-CATALOG-000002 91 marker.remote-obj-catalog.000002.REMOTE-OBJ-CATALOG-000002 92 93 close 94 ---- 95 close: test/REMOTE-OBJ-CATALOG-000002 96 97 open test 98 ---- 99 creator-id: 5 100 000002: 20/000200 101 000004: 40/000040 102 000008: 80/000080 103 104 close 105 ---- 106 107 open other-path 108 ---- 109 110 batch 111 add 5 50 500 112 ---- 113 create: other-path/REMOTE-OBJ-CATALOG-000001 114 sync: other-path/REMOTE-OBJ-CATALOG-000001 115 create: other-path/marker.remote-obj-catalog.000001.REMOTE-OBJ-CATALOG-000001 116 close: other-path/marker.remote-obj-catalog.000001.REMOTE-OBJ-CATALOG-000001 117 sync: other-path 118 sync: other-path/REMOTE-OBJ-CATALOG-000001 119 120 # Adding and deleting objects in the same batch is allowed. 121 122 batch 123 add 9 50 501 124 delete 9 125 ---- 126 sync: other-path/REMOTE-OBJ-CATALOG-000001 127 128 list other-path 129 ---- 130 REMOTE-OBJ-CATALOG-000001 131 marker.remote-obj-catalog.000001.REMOTE-OBJ-CATALOG-000001 132 133 list test 134 ---- 135 REMOTE-OBJ-CATALOG-000002 136 marker.remote-obj-catalog.000002.REMOTE-OBJ-CATALOG-000002 137 138 close 139 ---- 140 close: other-path/REMOTE-OBJ-CATALOG-000001 141 142 open test 143 ---- 144 creator-id: 5 145 000002: 20/000200 146 000004: 40/000040 147 000008: 80/000080 148 149 # Test rotation. 150 list test 151 ---- 152 REMOTE-OBJ-CATALOG-000002 153 marker.remote-obj-catalog.000002.REMOTE-OBJ-CATALOG-000002 154 155 random-batches n=20 size=2000 156 ---- 157 create: test/REMOTE-OBJ-CATALOG-000003 158 sync: test/REMOTE-OBJ-CATALOG-000003 159 create: test/marker.remote-obj-catalog.000003.REMOTE-OBJ-CATALOG-000003 160 close: test/marker.remote-obj-catalog.000003.REMOTE-OBJ-CATALOG-000003 161 remove: test/marker.remote-obj-catalog.000002.REMOTE-OBJ-CATALOG-000002 162 sync: test 163 remove: test/REMOTE-OBJ-CATALOG-000002 164 sync: test/REMOTE-OBJ-CATALOG-000003 165 sync: test/REMOTE-OBJ-CATALOG-000003 166 sync: test/REMOTE-OBJ-CATALOG-000003 167 sync: test/REMOTE-OBJ-CATALOG-000003 168 sync: test/REMOTE-OBJ-CATALOG-000003 169 sync: test/REMOTE-OBJ-CATALOG-000003 170 sync: test/REMOTE-OBJ-CATALOG-000003 171 sync: test/REMOTE-OBJ-CATALOG-000003 172 sync: test/REMOTE-OBJ-CATALOG-000003 173 sync: test/REMOTE-OBJ-CATALOG-000003 174 sync: test/REMOTE-OBJ-CATALOG-000003 175 sync: test/REMOTE-OBJ-CATALOG-000003 176 sync: test/REMOTE-OBJ-CATALOG-000003 177 sync: test/REMOTE-OBJ-CATALOG-000003 178 sync: test/REMOTE-OBJ-CATALOG-000003 179 sync: test/REMOTE-OBJ-CATALOG-000003 180 sync: test/REMOTE-OBJ-CATALOG-000003 181 close: test/REMOTE-OBJ-CATALOG-000003 182 create: test/REMOTE-OBJ-CATALOG-000004 183 sync: test/REMOTE-OBJ-CATALOG-000004 184 create: test/marker.remote-obj-catalog.000004.REMOTE-OBJ-CATALOG-000004 185 close: test/marker.remote-obj-catalog.000004.REMOTE-OBJ-CATALOG-000004 186 remove: test/marker.remote-obj-catalog.000003.REMOTE-OBJ-CATALOG-000003 187 sync: test 188 remove: test/REMOTE-OBJ-CATALOG-000003 189 sync: test/REMOTE-OBJ-CATALOG-000004 190 sync: test/REMOTE-OBJ-CATALOG-000004 191 sync: test/REMOTE-OBJ-CATALOG-000004 192 193 list test 194 ---- 195 REMOTE-OBJ-CATALOG-000004 196 marker.remote-obj-catalog.000004.REMOTE-OBJ-CATALOG-000004 197 198 random-batches n=20 size=2000 199 ---- 200 sync: test/REMOTE-OBJ-CATALOG-000004 201 sync: test/REMOTE-OBJ-CATALOG-000004 202 sync: test/REMOTE-OBJ-CATALOG-000004 203 sync: test/REMOTE-OBJ-CATALOG-000004 204 sync: test/REMOTE-OBJ-CATALOG-000004 205 sync: test/REMOTE-OBJ-CATALOG-000004 206 sync: test/REMOTE-OBJ-CATALOG-000004 207 sync: test/REMOTE-OBJ-CATALOG-000004 208 sync: test/REMOTE-OBJ-CATALOG-000004 209 sync: test/REMOTE-OBJ-CATALOG-000004 210 sync: test/REMOTE-OBJ-CATALOG-000004 211 sync: test/REMOTE-OBJ-CATALOG-000004 212 sync: test/REMOTE-OBJ-CATALOG-000004 213 sync: test/REMOTE-OBJ-CATALOG-000004 214 close: test/REMOTE-OBJ-CATALOG-000004 215 create: test/REMOTE-OBJ-CATALOG-000005 216 sync: test/REMOTE-OBJ-CATALOG-000005 217 create: test/marker.remote-obj-catalog.000005.REMOTE-OBJ-CATALOG-000005 218 close: test/marker.remote-obj-catalog.000005.REMOTE-OBJ-CATALOG-000005 219 remove: test/marker.remote-obj-catalog.000004.REMOTE-OBJ-CATALOG-000004 220 sync: test 221 remove: test/REMOTE-OBJ-CATALOG-000004 222 sync: test/REMOTE-OBJ-CATALOG-000005 223 sync: test/REMOTE-OBJ-CATALOG-000005 224 sync: test/REMOTE-OBJ-CATALOG-000005 225 sync: test/REMOTE-OBJ-CATALOG-000005 226 sync: test/REMOTE-OBJ-CATALOG-000005 227 sync: test/REMOTE-OBJ-CATALOG-000005 228 229 list test 230 ---- 231 REMOTE-OBJ-CATALOG-000005 232 marker.remote-obj-catalog.000005.REMOTE-OBJ-CATALOG-000005 233 234 # Even with huge batches, we don't rotate on each batch. 235 random-batches n=10 size=50000 236 ---- 237 sync: test/REMOTE-OBJ-CATALOG-000005 238 close: test/REMOTE-OBJ-CATALOG-000005 239 create: test/REMOTE-OBJ-CATALOG-000006 240 sync: test/REMOTE-OBJ-CATALOG-000006 241 create: test/marker.remote-obj-catalog.000006.REMOTE-OBJ-CATALOG-000006 242 close: test/marker.remote-obj-catalog.000006.REMOTE-OBJ-CATALOG-000006 243 remove: test/marker.remote-obj-catalog.000005.REMOTE-OBJ-CATALOG-000005 244 sync: test 245 remove: test/REMOTE-OBJ-CATALOG-000005 246 sync: test/REMOTE-OBJ-CATALOG-000006 247 sync: test/REMOTE-OBJ-CATALOG-000006 248 close: test/REMOTE-OBJ-CATALOG-000006 249 create: test/REMOTE-OBJ-CATALOG-000007 250 sync: test/REMOTE-OBJ-CATALOG-000007 251 create: test/marker.remote-obj-catalog.000007.REMOTE-OBJ-CATALOG-000007 252 close: test/marker.remote-obj-catalog.000007.REMOTE-OBJ-CATALOG-000007 253 remove: test/marker.remote-obj-catalog.000006.REMOTE-OBJ-CATALOG-000006 254 sync: test 255 remove: test/REMOTE-OBJ-CATALOG-000006 256 sync: test/REMOTE-OBJ-CATALOG-000007 257 sync: test/REMOTE-OBJ-CATALOG-000007 258 sync: test/REMOTE-OBJ-CATALOG-000007 259 sync: test/REMOTE-OBJ-CATALOG-000007 260 close: test/REMOTE-OBJ-CATALOG-000007 261 create: test/REMOTE-OBJ-CATALOG-000008 262 sync: test/REMOTE-OBJ-CATALOG-000008 263 create: test/marker.remote-obj-catalog.000008.REMOTE-OBJ-CATALOG-000008 264 close: test/marker.remote-obj-catalog.000008.REMOTE-OBJ-CATALOG-000008 265 remove: test/marker.remote-obj-catalog.000007.REMOTE-OBJ-CATALOG-000007 266 sync: test 267 remove: test/REMOTE-OBJ-CATALOG-000007 268 sync: test/REMOTE-OBJ-CATALOG-000008 269 sync: test/REMOTE-OBJ-CATALOG-000008 270 sync: test/REMOTE-OBJ-CATALOG-000008 271 272 list test 273 ---- 274 REMOTE-OBJ-CATALOG-000008 275 marker.remote-obj-catalog.000008.REMOTE-OBJ-CATALOG-000008