Class ScannerIdGenerator
java.lang.Object
org.apache.hadoop.hbase.regionserver.ScannerIdGenerator
Generate a new style scanner id to prevent collision with previous started server or other RSs.
We have 64 bits to use. The first 32 bits are MurmurHash32 of ServerName string "host,port,ts".
The ServerName contains both host, port, and start timestamp so it can prevent collision. The
lowest 32bit is generated by atomic int.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
serverNameHash
-
scannerIdGen
-
-
Constructor Details
-
ScannerIdGenerator
-
-
Method Details
-
generateNewScannerId
-
main
-