@@ -84,7 +84,7 @@ public void testCompareSchemaAndData() throws Exception
84
84
assertEquals (schemaDifferences .size (), 27 );
85
85
86
86
ArrayList <Table > tablesReadyToBeDataAnalyzed = mySQLSchemaComparer .getMasterTablesReadyToBeDataAnalyzed ();
87
- assertEquals (tablesReadyToBeDataAnalyzed .size (), 5 );
87
+ assertEquals (tablesReadyToBeDataAnalyzed .size (), 6 );
88
88
MySQLTableDataComparer tableDataComparer = new MySQLTableDataComparer (masterSchemaReader , slaveSchemaReader );
89
89
for (Table table :tablesReadyToBeDataAnalyzed )
90
90
tableDataComparer .compareTable (table );
@@ -100,11 +100,12 @@ public void testCompareSchemaAndData() throws Exception
100
100
assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "tab3" , DifferenceType .DATA_ROW_MISSING_IN_SLAVE_TABLE , "(uid,sometext2)=(4,d2)" )) >= 0 );
101
101
assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "tab3" , DifferenceType .DATA_ROW_EXCESS_IN_SLAVE_TABLE , "(uid,sometext2)=(4,d3)" )) >= 0 );
102
102
assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "tab3" , DifferenceType .DATA_ROW_EXCESS_IN_SLAVE_TABLE , "(uid,sometext2)=(6,e2)" )) >= 0 );
103
-
104
103
assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "bigtable" , DifferenceType .DATA_ROW_EXCESS_IN_SLAVE_TABLE , "(uid)=(300000001)" )) >= 0 );
105
104
assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "bigtable" , DifferenceType .DATA_ROW_DIFFERENT_MD5 , "(uid)=(500000001)" )) >= 0 );
106
105
assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "bigtable" , DifferenceType .DATA_ROW_MISSING_IN_SLAVE_TABLE , "(uid)=(700000001)" )) >= 0 );
107
- assertEquals (dataDifferences .size (), 14 );
106
+ assertTrue (dataDifferences .indexOf (new SchemaDifference (Criticality .ERROR , "bigdiff" , DifferenceType .DATA_TOO_MANY_UNMATCHED_ROWS , "max rows:100" )) >= 0 );
107
+
108
+ assertEquals (dataDifferences .size (), 15 );
108
109
assertTrue (tableDataComparer .getMasterTotalRetrievedRows () > 900000 );
109
110
assertTrue (tableDataComparer .getSlaveTotalRetrievedRows () > 900000 );
110
111
}
0 commit comments