Search in sources :

Example 1 with RemoteEditLogProto

use of org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RemoteEditLogProto in project hadoop by apache.

the class TestPBHelper method testConvertRemoteEditLog.

@Test
public void testConvertRemoteEditLog() {
    RemoteEditLog l = new RemoteEditLog(1, 100);
    RemoteEditLogProto lProto = PBHelper.convert(l);
    RemoteEditLog l1 = PBHelper.convert(lProto);
    compare(l, l1);
}
Also used : RemoteEditLogProto(org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RemoteEditLogProto) RemoteEditLog(org.apache.hadoop.hdfs.server.protocol.RemoteEditLog) Test(org.junit.Test)

Aggregations

RemoteEditLogProto (org.apache.hadoop.hdfs.protocol.proto.HdfsServerProtos.RemoteEditLogProto)1 RemoteEditLog (org.apache.hadoop.hdfs.server.protocol.RemoteEditLog)1 Test (org.junit.Test)1