Skip to content

Commit

Permalink
Document an unimportant oddity of the HBase RPC protocol.
Browse files Browse the repository at this point in the history
For HBase's defense, this oddity comes from Hadoop's legacy.
This is only for the sake of completeness.  No code change.

Change-Id: I40cfdf8fd80005e7df2a30d8793a336e2457259d
  • Loading branch information
tsuna committed Jan 30, 2011
1 parent d4d9b1d commit d753df2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/HBaseRpc.java
Expand Up @@ -67,7 +67,11 @@ public abstract class HBaseRpc {
*
* When requests are written out to the wire, they're framed. Meaning, a
* 4 byte integer value is first written in order to specify how many bytes
* are in the request (excluding the first 4 bytes themselves).
* are in the request (excluding the first 4 bytes themselves). The size -1
* is special. The client uses it to send a "ping" to the server at regular
* intervals, and the server specifically ignores any RPC with this ID. We
* don't do this in this client, because it's mostly useless, and we rely on
* TCP keepalive instead.
*
* Then the RPC ID is written (4 bytes). BTW, all integer values are
* encoded in big endian, as it's the default in Java world (Sun, SPARC...).
Expand Down

0 comments on commit d753df2

Please sign in to comment.