zettadb / kunlun

KunlunBase is a distributed relational database management system(RDBMS) with complete NewSQL capabilities and robust transaction ACID guarantees and is compatible with standard SQL. Applications which used PostgreSQL or MySQL can work with KunlunBase as-is without any code change or rebuild because KunlunBase supports both PostgreSQL and MySQL connection protocols and DML SQL grammars. MySQL DBAs can quickly work on a KunlunBase cluster because we use MySQL as storage nodes of KunlunBase. KunlunBase can elastically scale out as needed, and guarantees transaction ACID under error conditions, and KunlunBase fully passes TPC-C, TPC-H and TPC-DS test suites, so it not only support OLTP workloads but also OLAP workloads. Application developers can use KunlunBase to build IT systems that handles terabytes of data, without any effort on their part to implement data sharding, distributed transaction processing, distributed query processing, crash safety, high availability, strong consistency, horizontal scalability. All these powerful features are provided by KunlunBase. KunlunBase supports powerful and user friendly cluster management, monitor and provision features, can be readily used as DBaaS.
http://www.kunlunbase.com
Apache License 2.0
143 stars 20 forks source link

Fix warnings in kunlun-server #685

Open jd-zhang opened 2 years ago

jd-zhang commented 2 years ago

Issue migrated from trac ticket # 535

component: computing nodes | priority: minor

2022-03-31 14:10:15: zhangjindong@zettadb.com created the issue


There are some warnings in current kunlun-server code build, using gcc or clang, we should fix them as much as possible, to make the build output clean.

Current step is to fix the warnings in enterprise edition.

jd-zhang commented 2 years ago

2022-03-31 14:13:43: zhangjindong@zettadb.com commented


latest gcc build warning is at: http://192.168.0.104:8080/job/enterprise_centos7_build/182/console

latest clang build warning is at: http://192.168.0.104:8080/job/enterprise_ubuntu_build_clang/4/console

jd-zhang commented 2 years ago

2022-03-31 14:29:58: zhangjindong@zettadb.com edited the issue description

jd-zhang commented 2 years ago

2022-04-06 17:37:34: smith

jd-zhang commented 2 years ago

2022-04-20 09:52:17: zhangjindong@zettadb.com commented


New warnings on 20220420

03:06:15 hooks.c: In function ‘remote_make_sql_delayed’:
03:06:15 hooks.c:88:9: warning: implicit declaration of function ‘IsReservedName’; did you mean ‘getservbyname’? [-Wimplicit-function-declaration]
03:06:15     if (IsReservedName(ns_name))
03:06:15          ^~~~~~~~~~~~~~
03:06:15          getservbyname

03:06:15 remote_ddl.c:41:48: warning: integer constant is so large that it is unsigned
03:06:15  const static int64_t InvalidSeqVal = (int64_t)-9223372036854775808L;
03:06:15                                                 ^~~~~~~~~~~~~~~~~~~~
03:06:15 sequence_service.c:50:48: warning: integer constant is so large that it is unsigned
03:06:15  const static int64_t InvalidSeqVal = (int64_t)-9223372036854775808L;