remote: [tester::#CF8] client: Received bytes: "+FULLRESYNC 8371b4fb1155b71f4a04d3e1bc3e18c4a990aeeb 0\r\n"
remote: [tester::#CF8] client: Received RESP simple string: "FULLRESYNC 8371b4fb1155b71f4a04d3e1bc3e18c4a990aeeb 0"
remote: [tester::#CF8] Received "FULLRESYNC 8371b4fb1155b71f4a04d3e1bc3e18c4a990aeeb 0"
remote: [tester::#CF8] Reading RDB file...
remote: [tester::#CF8] client: Received bytes: "$1015\r\n1010010100010110001001001001101001111000011000011000111000111111111111111111111111111111010100111100101100101110010011010011110011101101111011011001011110010101110111101110110010101110110000111111111111111111111111111110101010111001011001011100100110100111100111011011100010110100111101001110011111111111111111111111111110000001000000111111111111111111111111111110101011100011111010011010011101101110010111111111111111111111111111000010110110110001111111111111111111111111011110011001011111111111111111111111111111101010001110101111001111001011100100101101110110111001011101101111111111111111111111111110000101111111111111111111111111011000011111111111111111111111111000100100000111111111111111111111111111110101000110000111011111100110101101110001011000011110011110010111111111111111111111111111000000011111111111111111111111111111111111111111111111111111111111100001101110111011111111111111111111111111111111101111111111111111111111111100000011111111111111111111111111111111101101011111111111111111111111110100010"
remote: [tester::#CF8] Invalid RDB file: file is not a RDB file
remote: [tester::#CF8] Test failed
remote: [tester::#CF8] Terminating program
remote: [tester::#CF8] Program terminated successfully
here are my server logs,
here is my code
} else if (args[0].equalsIgnoreCase("psync")) {
writer.write("+FULLRESYNC 8371b4fb1155b71f4a04d3e1bc3e18c4a990aeeb 0" + Config.CRLF);
writer.flush();
byte[] contents = HexFormat.of().parseHex(
"524544495330303131fa0972656469732d76657205372e322e30fa0a72656469732d62697473c040fa056374696d65c26d08bc65fa08757365642d6d656dc2b0c41000fa08616f662d62617365c000fff06e3bfec0ff5aa2");
StringBuilder output = new StringBuilder();
for (byte b : contents) {
output.append(Integer.toBinaryString(b));
}
// System.out.println(output.toString());
writer.write("$" + output.length() + Config.CRLF + output.toString());
writer.flush();
}