Commit Graph

5591 Commits

Author SHA1 Message Date
d441da9118 fixed switch to follower gracefully failed because of palf has changed leader. 2022-10-26 11:54:16 +00:00
06264f4e7b fix deadlock between memtable_mgr and lock_memtable 2022-10-26 11:52:01 +00:00
04e378d7e4 [FIX] Incorrect defensive when set filled_tx_log_ts 2022-10-26 11:49:44 +00:00
7ffa86657d fix partial partition wise merge join bug 2022-10-26 11:40:48 +00:00
2e11976f54 调整一条日志级别 2022-10-26 11:38:32 +00:00
f5b84dcf03 1. Revert hotfuncs and observer.prof 2. update gtest deps 2022-10-26 15:01:14 +08:00
3b60c27e30 fix BCAS not judging the return value 2022-10-26 14:58:52 +08:00
3750fc405d [to #45700625] open_cursor deep copy 2022-10-26 14:54:15 +08:00
82be6c8d8d set filled_tx_log_ts more precise && skip inner tablet when get min end ts in old tablets 2022-10-26 10:30:09 +08:00
30fded45bb fix tx data table can not explain user data table issue 2022-10-26 10:27:50 +08:00
d4e6e23f5e fix predicate hint bug 2022-10-26 10:23:16 +08:00
fe6a702e0f Add views for virtual table 2022-10-26 10:20:58 +08:00
b5be94cf15 fix ddl retry error code 2022-10-26 10:18:40 +08:00
b73efa85ae Fix migration some bugs 2022-10-25 19:49:40 +08:00
3fc39b5345 [4.0] fix savepoint rollback logic 2022-10-25 19:47:18 +08:00
54cdbeeeb1 invoke sync_log_xx if the mt_ctx is partial_rollbacked 2022-10-25 19:44:55 +08:00
8da699fe5e fix inner sql start trans 4016 2022-10-25 19:42:33 +08:00
33c8a8dd8b fix expr tmp result allocator sanity check core 2022-10-25 18:11:07 +08:00
8e5fcb688f fix memory out of bounds in to_cstring 2022-10-25 18:08:45 +08:00
097cd3deee [FIX]fix defense code concurrency bug & upgrade 2022-10-25 18:06:23 +08:00
3ad256c5b2 return 4016 if the tx_desc is null 2022-10-25 18:04:04 +08:00
f389daf9b7 update process_query_time of inner sql 2022-10-25 18:01:39 +08:00
7205374e60 fix backup delete switch tenant resource 2022-10-25 17:59:19 +08:00
d87eec46c9 fix stat monitor manager potential core caused by concurrency problem 2022-10-25 17:56:58 +08:00
c0e13393bd dynamic adjust net_thread_count 2022-10-25 17:54:36 +08:00
3abb11ec95 fix coredump 2022-10-25 17:52:16 +08:00
45e229b80b [OBCDC] fix build error with OB_BUILD_CDC=ON 2022-10-25 17:47:36 +08:00
0a319aa4fd add ob_error and refactor gitignore 2022-10-25 14:32:52 +08:00
f6e8a07bcc Merge branch issue/45639702 into master 2022-10-25 14:25:12 +08:00
0f95b69cd4 Merge branch issue/45691101 into master 2022-10-25 14:22:53 +08:00
255f448946 [BugFix] table_guard stop refreshing table 2022-10-25 10:57:14 +08:00
8f99241476 set spm default close 2022-10-25 10:54:52 +08:00
4028710cbf fix mysqltest 2022-10-25 10:52:36 +08:00
985827f900 modify case owner 2022-10-25 10:50:17 +08:00
042d3bc1ed fix 1002_restore_read_tablet_meta_failed case timeout issue 2022-10-25 10:45:39 +08:00
8c31cdbdb7 don't print error log when read block return OB_ERR_OUT_OF_UPPER_BOUND in block GC 2022-10-25 10:41:04 +08:00
f5b12bcbfd fix obtest 2022-10-24 20:58:21 +08:00
5249eb58ff add case for gc with trans log not committed 2022-10-24 20:51:27 +08:00
93a1074b0c patch 4.0 2022-10-24 17:57:12 +08:00
4ad6e00ec3 fix: json type object support empty string key 2022-10-21 03:32:23 +00:00
82519cc587 Bugfix: fix json to float type cast bug 2022-10-14 12:32:37 +00:00
6bee868aab [CP] Init allocator_ in ObTmpTenantFIleStoreHandle constructor. 2022-10-14 12:32:07 +00:00
50933732b9 [CP] [CP] [CP] [CP] fix link hashmap core 2022-10-14 12:11:31 +00:00
392f40cc0b compile unittest failed on centos8 2022-10-14 12:10:59 +00:00
99777b4bc9 OB-FIX UP#001: 修复Binary类型的数据校验字符集的问题 (#1086)
Description:
============

对于Binary类型来说,所有数据的存储看作二进制,是不需要校验字符集的。

但是OB在处理Binary类型的数据操作时,会校验字符集,举个例子,如果你在utf8mb4的表里,往binary写入GBK编码的"你"字,是会报错的。只能以 insert into t values(X'C4E3')方法插入

这对业务从mysql迁移到OB是很痛苦的事情。

Analysis:
=========

OB的binary类型底层实现和varchar相同,只在DDL阶段会区分binary类型。

出错的原因是在SQL解析阶段(transform_tree)将binary的字段按varchar处理进行字符集编码检查。这是因为在词法语法解析时数据库无从得知当前的字符串是否为binary(目前SQL解析阶段还获取不到实际表结构)

Fix:
========
修复方法:

个人觉得词法语法解析阶段进行字符集检查完全没有必要,后续物理执行计划算子打开时,OB也会对字符集编码进行处理。

因此,建议删除resolve_const函数中的check_well_formed_str

目前来看,这个函数只用来处理SQL解析后的parseNode节点,对后续的SQL逻辑没有侵入。

-------------

wenghaixing@unionpay.com
2022-10-13 10:47:56 +08:00
91a49c7bc7 fix ObNumber desc_ to adjust digits' len (#1078)
As ObNumber.len_ should be same with digits' len, change desc_ of ObNumber constructor from 3 to 1
2022-10-12 15:45:13 +08:00
8f92893649 support invalid character write 2022-10-12 06:32:20 +00:00
43bc5912de fix: delete unnecessary folders in rpm packages 2022-10-12 03:36:56 +00:00
9f0d083b6c [CP] fix hash right semi join use nestloop leads result wrong 2022-10-12 03:36:27 +00:00
fefa90bb5d [CP] [FIX] Participants serialize size may calculate twice when retry prepare request 2022-10-12 03:03:17 +00:00