Results 9 issues of CodePlayer

- initialize capacity of StringBuilder - reuse byte array

## Bug Report #### Current Behavior There is a string key named `a`, which value is `1` in Redis. I want to read the value as `Long` by lua script....

**Describe the bug** 官方下载 OceanBase,使用 `obd web` 白屏部署,卡在了预检查这一步,应该是后端 Python 报错(错误堆栈在下面) **Environment** CentOS 8.2 x86_64 OceanBase 4.2.2.0 社区版 **Fast Reproduce Steps(Required)** **Expected behavior** 希望正常安装部署。 **Actual Behavior** ![error page](https://github.com/oceanbase/oceanbase/assets/3793502/f68cce24-cbb4-42cf-99f2-10fc300760b6) 定位到日志中的 Python 错误堆栈为:...

**Describe the bug** 参考 [定义自增列](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000751258) + [CREATE TABLE 语法](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000752582) + [ALTER TABLE 语法](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000752537) 等官方文档,定义如下表结构: ```sql CREATE TABLE `t_test` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID', PRIMARY KEY (`id`)...

type: bug

**Question** 我看[官方文档](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000640146#%E6%99%AE%E9%80%9A%E8%A1%A8%E7%BB%93%E6%9E%84%E8%AE%BE%E8%AE%A1%E8%A7%84%E8%8C%83)中存在如下描述: ![ob-spec](https://github.com/oceanbase/oceanbase/assets/3793502/c7492ee1-b044-447f-9043-96c8670648e1) 如果有一个电商 SaaS,【订单表】有 商户ID( `int` ) 和 订单号( `varchar(32)` ) 存在唯一约束,这个时候我们也应该用 这两个字段 做联合主键吗? 众所周知,MySQL 采用的是 **B+Tree** 的结构来存储数据,一般建议 ID是自增的,这样可以避免随机插入,导致 MySQL 数据页频繁分裂,进而导致检索数据时 IO 开销增加。 然而,**商户ID + 订单号** 也很明显不是自增的,所以我才有此疑问。 对于这种场景,如果 OceanBase...

type: question

**Describe the bug** 使用 MySQL JDBC 驱动连接 OceanBase,如果预编译参数的值全部为 `null`,则必定报错。 **Environment** - OS Version: CentOS 7.9 / 8.2 x86_64 - OB Version: 4.2.2.0 社区版 **Fast Reproduce Steps(Required)** Steps to reproduce the...

type: bug
status: confirmed
serverity: major

**Describe the bug** 登录OCP平台账号 `admin` ,点击右上角账号-【修改密码】,输入新密码 `Lr.7Ao%1(U._J4_g.0` 后,表单验证提示通过,都是OK的,但是在点击【确定】时,却提示密码不合法。 ![image](https://github.com/oceanbase/oceanbase/assets/3793502/1401ce80-6d82-4028-9400-686fb1819bfe) **Environment** CentOS 8.2 x86_64 OceanBase 4.2.2.0 **Fast Reproduce Steps(Required)** Steps to reproduce the behavior: 如上所述。 **Expected behavior** 修改密码成功。 **Actual Behavior** ![image](https://github.com/oceanbase/oceanbase/assets/3793502/e023bf87-95f7-4e33-b62d-3711767f36f9)

type: bug
module: ocp

我们在本地虚拟机( CentOS 7.9 ) 使用 OCP 安装了一个 OceanBase_CE 4.2.1.5 单节点,作为开发研究用途。 不过,其宿主机昨天遭遇了意外断电,再次启动虚拟机后,发现 OceanBase 无法启动。 启动命令如下(其中 `ocp_meta` 是集群名称): ![img_v3_02ca_cfa2e51b-3da9-4098-bc77-511c97a7493h](https://github.com/oceanbase/oceanbase/assets/3793502/0fa5b752-7177-4203-a362-81ae501bba72) 对应的完整日志文件如下: [observer.log.zip](https://github.com/user-attachments/files/16039183/observer.zip) 通过查看日志,得到以下主要错误信息: ```bash [2024-06-29 14:44:23.835328] WDIAG [SERVER] nonblock_get_leader (ob_inner_sql_connection.cpp:1772) [18638][observer][T0][Y0-0000000000000000-0-0] [lt=2][errcode=-4014] user...

type: question

**Describe the bug** Version: OceanBase CE 4.2.1.7 ( CentOS 8.2 ) ```sql CREATE TABLE `t` ( `id` bigint unsigned NOT NULL COMMENT '主键ID', `merchant_id` int unsigned NOT NULL COMMENT '商户ID',...

type: bug