Skip to content

0.1.1 Release Notes (2023 03 31)

IHEII edited this page Apr 10, 2023 · 1 revision

OBKV Table HBase Client Java v0.1.1 Release Notes

Previous Release Notes: None

1. Abstract

1.1 Support ODP Mode

You can connect to the observer through ODP now.

1.2 Add Throttle Test

Test cases for testing throttle are available now.

1.3 POM related

We update the OBKV client and other dependencies to make this client faster and more robust.

2. Support ODP Mode

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. Add Throttle Test

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.

4. Pom Related

4.1 Code Format

Update code format.

4.2 Update OBKV Client

We update the OBKV client into V1.1.0 for new features and bugfix in the OBKV client. See obkv-table-java Release Notes.

4.3 Other Dependencies

Update other dependencies in case to deal with threats.