@@ -66,7 +66,7 @@ public void testNoFiles() throws Exception {
66
66
Mutation mut = TabletColumnFamily .createPrevRowMutation (ke );
67
67
68
68
ServerColumnFamily .TIME_COLUMN .put (mut , new Value ("M0" ));
69
- ServerColumnFamily .DIRECTORY_COLUMN .put (mut , new Value ("/ default_tablet" ));
69
+ ServerColumnFamily .DIRECTORY_COLUMN .put (mut , new Value ("default_tablet" ));
70
70
71
71
try (BatchWriter bw1 = client .createBatchWriter (tableName )) {
72
72
bw1 .addMutation (mut );
@@ -95,7 +95,7 @@ public void testFilesChange(Range range1, Range range2) throws Exception {
95
95
Mutation mut = TabletColumnFamily .createPrevRowMutation (ke );
96
96
97
97
ServerColumnFamily .TIME_COLUMN .put (mut , new Value ("M0" ));
98
- ServerColumnFamily .DIRECTORY_COLUMN .put (mut , new Value ("/ default_tablet" ));
98
+ ServerColumnFamily .DIRECTORY_COLUMN .put (mut , new Value ("default_tablet" ));
99
99
mut .put (DataFileColumnFamily .NAME .toString (),
100
100
getMetadata (filePrefix + "/default_tablet/0_0.rf" , range1 ),
101
101
new DataFileValue (1 , 200 ).encodeAsString ());
@@ -155,17 +155,17 @@ public void testSplit1(Range range) throws Exception {
155
155
156
156
try (BatchWriter bw1 = client .createBatchWriter (tableName );
157
157
BatchWriter bw2 = client .createBatchWriter (tableName )) {
158
- bw1 .addMutation (createTablet ("0" , null , null , "/ default_tablet" ,
158
+ bw1 .addMutation (createTablet ("0" , null , null , "default_tablet" ,
159
159
filePrefix + "/default_tablet/0_0.rf" , range ));
160
160
161
161
bw1 .flush ();
162
162
163
163
MetadataTableUtil .initializeClone (tableName , TableId .of ("0" ), TableId .of ("1" ), client , bw2 );
164
164
165
- bw1 .addMutation (createTablet ("0" , "m" , null , "/ default_tablet" ,
165
+ bw1 .addMutation (createTablet ("0" , "m" , null , "default_tablet" ,
166
166
filePrefix + "/default_tablet/0_0.rf" , range ));
167
167
bw1 .addMutation (
168
- createTablet ("0" , null , "m" , "/ t-1" , filePrefix + "/default_tablet/0_0.rf" , range ));
168
+ createTablet ("0" , null , "m" , "t-1" , filePrefix + "/default_tablet/0_0.rf" , range ));
169
169
170
170
bw1 .flush ();
171
171
@@ -203,17 +203,17 @@ public void testSplit2(Range range) throws Exception {
203
203
204
204
try (BatchWriter bw1 = client .createBatchWriter (tableName );
205
205
BatchWriter bw2 = client .createBatchWriter (tableName )) {
206
- bw1 .addMutation (createTablet ("0" , null , null , "/ default_tablet" ,
206
+ bw1 .addMutation (createTablet ("0" , null , null , "default_tablet" ,
207
207
filePrefix + "/default_tablet/0_0.rf" , range ));
208
208
209
209
bw1 .flush ();
210
210
211
211
MetadataTableUtil .initializeClone (tableName , TableId .of ("0" ), TableId .of ("1" ), client , bw2 );
212
212
213
- bw1 .addMutation (createTablet ("0" , "m" , null , "/ default_tablet" ,
213
+ bw1 .addMutation (createTablet ("0" , "m" , null , "default_tablet" ,
214
214
filePrefix + "/default_tablet/1_0.rf" , range ));
215
215
Mutation mut3 =
216
- createTablet ("0" , null , "m" , "/ t-1" , filePrefix + "/default_tablet/1_0.rf" , range );
216
+ createTablet ("0" , null , "m" , "t-1" , filePrefix + "/default_tablet/1_0.rf" , range );
217
217
mut3 .putDelete (DataFileColumnFamily .NAME .toString (),
218
218
getMetadata (filePrefix + "/default_tablet/0_0.rf" , range ));
219
219
bw1 .addMutation (mut3 );
@@ -285,17 +285,17 @@ public void testSplit3(Range range1, Range range2, Range range3) throws Exceptio
285
285
286
286
try (BatchWriter bw1 = client .createBatchWriter (tableName );
287
287
BatchWriter bw2 = client .createBatchWriter (tableName )) {
288
- bw1 .addMutation (createTablet ("0" , "m" , null , "/ d1" , filePrefix + "/d1/file1.rf" , range1 ));
289
- bw1 .addMutation (createTablet ("0" , null , "m" , "/ d2" , filePrefix + "/d2/file2.rf" , range2 ));
288
+ bw1 .addMutation (createTablet ("0" , "m" , null , "d1" , filePrefix + "/d1/file1.rf" , range1 ));
289
+ bw1 .addMutation (createTablet ("0" , null , "m" , "d2" , filePrefix + "/d2/file2.rf" , range2 ));
290
290
291
291
bw1 .flush ();
292
292
293
293
MetadataTableUtil .initializeClone (tableName , TableId .of ("0" ), TableId .of ("1" ), client , bw2 );
294
294
295
- bw1 .addMutation (createTablet ("0" , "f" , null , "/ d1" , filePrefix + "/d1/file3.rf" , range3 ));
296
- bw1 .addMutation (createTablet ("0" , "m" , "f" , "/ d3" , filePrefix + "/d1/file1.rf" , range1 ));
297
- bw1 .addMutation (createTablet ("0" , "s" , "m" , "/ d2" , filePrefix + "/d2/file2.rf" , range2 ));
298
- bw1 .addMutation (createTablet ("0" , null , "s" , "/ d4" , filePrefix + "/d2/file2.rf" , range2 ));
295
+ bw1 .addMutation (createTablet ("0" , "f" , null , "d1" , filePrefix + "/d1/file3.rf" , range3 ));
296
+ bw1 .addMutation (createTablet ("0" , "m" , "f" , "d3" , filePrefix + "/d1/file1.rf" , range1 ));
297
+ bw1 .addMutation (createTablet ("0" , "s" , "m" , "d2" , filePrefix + "/d2/file2.rf" , range2 ));
298
+ bw1 .addMutation (createTablet ("0" , null , "s" , "d4" , filePrefix + "/d2/file2.rf" , range2 ));
299
299
300
300
bw1 .flush ();
301
301
@@ -335,8 +335,8 @@ public void testClonedMarker(Range range1, Range range2, Range range3) throws Ex
335
335
336
336
try (BatchWriter bw1 = client .createBatchWriter (tableName );
337
337
BatchWriter bw2 = client .createBatchWriter (tableName )) {
338
- bw1 .addMutation (createTablet ("0" , "m" , null , "/ d1" , filePrefix + "/d1/file1.rf" , range1 ));
339
- bw1 .addMutation (createTablet ("0" , null , "m" , "/ d2" , filePrefix + "/d2/file2.rf" , range2 ));
338
+ bw1 .addMutation (createTablet ("0" , "m" , null , "d1" , filePrefix + "/d1/file1.rf" , range1 ));
339
+ bw1 .addMutation (createTablet ("0" , null , "m" , "d2" , filePrefix + "/d2/file2.rf" , range2 ));
340
340
341
341
bw1 .flush ();
342
342
@@ -347,10 +347,10 @@ public void testClonedMarker(Range range1, Range range2, Range range3) throws Ex
347
347
348
348
bw1 .flush ();
349
349
350
- bw1 .addMutation (createTablet ("0" , "f" , null , "/ d1" , filePrefix + "/d1/file3.rf" , range3 ));
351
- bw1 .addMutation (createTablet ("0" , "m" , "f" , "/ d3" , filePrefix + "/d1/file1.rf" , range1 ));
352
- bw1 .addMutation (createTablet ("0" , "s" , "m" , "/ d2" , filePrefix + "/d2/file3.rf" , range3 ));
353
- bw1 .addMutation (createTablet ("0" , null , "s" , "/ d4" , filePrefix + "/d4/file3.rf" , range3 ));
350
+ bw1 .addMutation (createTablet ("0" , "f" , null , "d1" , filePrefix + "/d1/file3.rf" , range3 ));
351
+ bw1 .addMutation (createTablet ("0" , "m" , "f" , "d3" , filePrefix + "/d1/file1.rf" , range1 ));
352
+ bw1 .addMutation (createTablet ("0" , "s" , "m" , "d2" , filePrefix + "/d2/file3.rf" , range3 ));
353
+ bw1 .addMutation (createTablet ("0" , null , "s" , "d4" , filePrefix + "/d4/file3.rf" , range3 ));
354
354
355
355
bw1 .flush ();
356
356
@@ -363,7 +363,7 @@ public void testClonedMarker(Range range1, Range range2, Range range3) throws Ex
363
363
364
364
bw1 .flush ();
365
365
366
- bw1 .addMutation (createTablet ("0" , "m" , "f" , "/ d3" , filePrefix + "/d1/file3.rf" , range3 ));
366
+ bw1 .addMutation (createTablet ("0" , "m" , "f" , "d3" , filePrefix + "/d1/file3.rf" , range3 ));
367
367
368
368
bw1 .flush ();
369
369
@@ -405,15 +405,15 @@ public void testMerge(Range range1, Range range2) throws Exception {
405
405
406
406
try (BatchWriter bw1 = client .createBatchWriter (tableName );
407
407
BatchWriter bw2 = client .createBatchWriter (tableName )) {
408
- bw1 .addMutation (createTablet ("0" , "m" , null , "/ d1" , filePrefix + "/d1/file1.rf" , range1 ));
409
- bw1 .addMutation (createTablet ("0" , null , "m" , "/ d2" , filePrefix + "/d2/file2.rf" , range2 ));
408
+ bw1 .addMutation (createTablet ("0" , "m" , null , "d1" , filePrefix + "/d1/file1.rf" , range1 ));
409
+ bw1 .addMutation (createTablet ("0" , null , "m" , "d2" , filePrefix + "/d2/file2.rf" , range2 ));
410
410
411
411
bw1 .flush ();
412
412
413
413
MetadataTableUtil .initializeClone (tableName , TableId .of ("0" ), TableId .of ("1" ), client , bw2 );
414
414
415
415
bw1 .addMutation (deleteTablet ("0" , "m" , null , filePrefix + "/d1/file1.rf" , range1 ));
416
- Mutation mut = createTablet ("0" , null , null , "/ d2" , filePrefix + "/d2/file2.rf" , range2 );
416
+ Mutation mut = createTablet ("0" , null , null , "d2" , filePrefix + "/d2/file2.rf" , range2 );
417
417
mut .put (DataFileColumnFamily .NAME .toString (),
418
418
getMetadata (filePrefix + "/d1/file1.rf" , range1 ),
419
419
new DataFileValue (10 , 200 ).encodeAsString ());
0 commit comments