-
Notifications
You must be signed in to change notification settings - Fork 18
0.1.1 Release Notes (2023 03 31)
Previous Release Notes: None
You can connect to the observer through ODP now.
Test cases for testing throttle are available now.
We update the OBKV client and other dependencies to make this client faster and more robust.
ODP is an easy way for users to connect to the observer, so we support this function in 0.1.1.
You can find a demo below showing how to connect to ODP by obkv-hbase-client-java.
public class ObHTableTestUtil {
// Please consult your dba for the following configuration.
public static String FULL_USER_NAME = "";
public static String PASSWORD = "";
public static String ODP_ADDR = "";
public static int ODP_PORT = 0;
public static boolean ODP_MODE = false;
public static String DATABASE = "";
public static Configuration newConfiguration() {
Configuration conf = new Configuration();
conf.set(HBASE_OCEANBASE_FULL_USER_NAME, FULL_USER_NAME);
conf.set(HBASE_OCEANBASE_PASSWORD, PASSWORD);
conf.set(HBASE_OCEANBASE_ODP_ADDR, ODP_ADDR);
conf.setInt(HBASE_OCEANBASE_ODP_PORT, ODP_PORT);
conf.setBoolean(HBASE_OCEANBASE_ODP_MODE, ODP_MODE);
conf.set(HBASE_OCEANBASE_DATABASE, DATABASE);
}
public static OHTableClient newOHTableClient(String tableName) {
return new OHTableClient(tableName, newConfiguration());
}
}
3.1 Observer support throttle function for the hotkey in OBKV, and also you could learn more about hotkey from virtual table kv_hotkey_throttle_threshold.
In case to test this important function, we added a test called OHTableHotkeyThrottleTest.java.
Update code format.
We update the OBKV client into V1.1.0 for new features and bugfix in the OBKV client. See obkv-table-java Release Notes.
Update other dependencies in case to deal with threats.