File tree Expand file tree Collapse file tree
main/java/org/apache/hadoop/hbase/replication/regionserver
test/java/org/apache/hadoop/hbase/replication Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020import java .io .IOException ;
2121import java .util .NavigableMap ;
22-
2322import org .apache .hadoop .conf .Configuration ;
2423import org .apache .hadoop .fs .FileSystem ;
2524import org .apache .hadoop .fs .Path ;
2928import org .apache .hadoop .hbase .replication .WALEntryFilter ;
3029import org .apache .hadoop .hbase .util .Bytes ;
3130import org .apache .hadoop .hbase .wal .WAL .Entry ;
32- import org .apache .hbase .thirdparty .org .apache .commons .collections4 .MapUtils ;
3331import org .apache .yetus .audience .InterfaceAudience ;
3432import org .slf4j .Logger ;
3533import org .slf4j .LoggerFactory ;
3634
35+ import org .apache .hbase .thirdparty .org .apache .commons .collections4 .MapUtils ;
36+
3737/**
3838 * WAL reader for a serial replication peer.
3939 */
Original file line number Diff line number Diff line change 1818package org .apache .hadoop .hbase .replication ;
1919
2020import static org .junit .Assert .assertNull ;
21- import static org .junit .Assert .assertTrue ;
2221import static org .mockito .Mockito .mock ;
2322import static org .mockito .Mockito .when ;
2423
@@ -107,15 +106,12 @@ public void testScopeWALEntryFilter() {
107106 Entry userEntryEmpty = createEntry (null );
108107
109108 // no scopes
110- // now we will not filter out entries without a replication scope since serial replication still
111- // need the sequence id, but the cells will all be filtered out.
112- assertTrue (filter .filter (userEntry ).getEdit ().isEmpty ());
109+ assertNull (filter .filter (userEntry ));
113110
114111 // empty scopes
115- // ditto
116112 TreeMap <byte [], Integer > scopes = new TreeMap <>(Bytes .BYTES_COMPARATOR );
117113 userEntry = createEntry (scopes , a , b );
118- assertTrue (filter .filter (userEntry ). getEdit (). isEmpty ( ));
114+ assertNull (filter .filter (userEntry ));
119115
120116 // different scope
121117 scopes = new TreeMap <>(Bytes .BYTES_COMPARATOR );
You can’t perform that action at this time.
0 commit comments