Source:
public void testIfCkptSetForObjectsByBootstrapReplLoad() throws Throwable { WarehouseInstance.Tuple tuple = primary .run("use " + primaryDbName) .run("create table t1 (id int)") .run("insert into table t1 values (10)") .run("create table t2 (place string) partitioned by (country string)") .run("insert into table t2 partition(country='india') values ('bangalore')") .run("insert into table t2 partition(country='uk') values ('london')") .run("insert into table t2 partition(country='us') values ('sfo')") .dump(primaryDbName, null); replica.load(replicatedDbName, tuple.dumpLocation) .run("use " + replicatedDbName) .run("repl status " + replicatedDbName) .verifyResult(tuple.lastReplicationId) .run("show tables") .verifyResults(new String[] { "t1", "t2" }) .run("select country from t2") .verifyResults(Arrays.asList("india", "uk", "us")); Database db = replica.getDatabase(replicatedDbName); verifyIfCkptSet(db.getParameters(), tuple.dumpLocation); Table t1 = replica.getTable(replicatedDbName, "t1"); verifyIfCkptSet(t1.getParameters(), tuple.dumpLocation); Table t2 = replica.getTable(replicatedDbName, "t2"); verifyIfCkptSet(t2.getParameters(), tuple.dumpLocation); Partition india = replica.getPartition(replicatedDbName, "t2", new ArrayList<>(Arrays.asList("india"))); verifyIfCkptSet(india.getParameters(), tuple.dumpLocation); Partition us = replica.getPartition(replicatedDbName, "t2", new ArrayList<>(Arrays.asList("us"))); verifyIfCkptSet(us.getParameters(), tuple.dumpLocation); Partition uk = replica.getPartition(replicatedDbName, "t2", new ArrayList<>(Arrays.asList("uk"))); verifyIfCkptSet(uk.getParameters(), tuple.dumpLocation); }

Target:
public void testIfCkptSetForObjectsByBootstrapReplLoad() throws Throwable { WarehouseInstance.Tuple tuple = primary .run("use " + primaryDbName) .run("create table t1 (id int)") .run("insert into table t1 values (10)") .run("create table t2 (place string) partitioned by (country string)") .run("insert into table t2 partition(country='india') values ('bangalore')") .run("insert into table t2 partition(country='uk') values ('london')") .run("insert into table t2 partition(country='us') values ('sfo')") .dump(primaryDbName, null); replica.load(replicatedDbName, tuple.dumpLocation) .run("use " + replicatedDbName) .run("repl status " + replicatedDbName) .verifyResult(tuple.lastReplicationId) .run("show tables") .verifyResults(new String[] { "t1", "t2" }) .run("select country from t2") .verifyResults(Arrays.asList("india", "uk", "us")); Database db = replica.getDatabase(replicatedDbName); verifyIfCkptSet(db.getParameters(), tuple.dumpLocation); Table t1 = replica.getTable(replicatedDbName, "t1"); verifyIfCkptSet(t1.getParameters(), tuple.dumpLocation); Table t2 = replica.getTable(replicatedDbName, "t2"); verifyIfCkptSet(t2.getParameters(), tuple.dumpLocation); Partition india = replica.getPartition(replicatedDbName, "t2", Collections.singletonList("india")); verifyIfCkptSet(india.getParameters(), tuple.dumpLocation); Partition us = replica.getPartition(replicatedDbName, "t2", Collections.singletonList("us")); verifyIfCkptSet(us.getParameters(), tuple.dumpLocation); Partition uk = replica.getPartition(replicatedDbName, "t2", Collections.singletonList("uk")); verifyIfCkptSet(uk.getParameters(), tuple.dumpLocation); }