You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/12/21 06:54:06 UTC

[GitHub] [iotdb] LoopJump opened a new pull request, #8555: 1.0 Cpp Client SDK问题修复

LoopJump opened a new pull request, #8555:
URL: https://github.com/apache/iotdb/pull/8555

   ### 修复1.0后Cpp Client SDK的两个问题。
   ####   问题1:返回REDIRECTION_RECOMMEND情况下视为执行成功;
   ####   问题2:Session SDK在32位CPU下可能8字节类型(int64_t/double)类型进行地址强转时,如果地址不是4Byte对齐可能出现bus error问题。
   
   ### 增加编译session sdk库的编译脚本和使用sdk库的示例代码demo.cpp,以及对应的编译脚本。
   
   ### 修复原有单测测试问题。 
   #### 问题1:select * 方式返回的多个measurement顺序与测试代码进行断言的顺序不一致,改为显式select s1,s2,s3方式; 
   #### 问题2:IOTDB1.0新增了FI最大返回响应包的最大字节数,导致测试失败,测试中相应改小测试规模。 其他:增强了测试输出友好的中间结果。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] HTHou merged pull request #8555: [IOTDB-4804] Cpp Client SDK bug-fix

Posted by GitBox <gi...@apache.org>.
HTHou merged PR #8555:
URL: https://github.com/apache/iotdb/pull/8555


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] HTHou commented on a diff in pull request #8555: [IOTDB-4804] Cpp Client SDK bug-fix

Posted by GitBox <gi...@apache.org>.
HTHou commented on code in PR #8555:
URL: https://github.com/apache/iotdb/pull/8555#discussion_r1059213444


##########
client-cpp/compile_iotdb_session_lib.sh:
##########
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+thrift_bin=/usr/local/bin/thrift
+thrift_lib=/usr/local/lib
+
+### if you are compiling for 32bit CPU such as armv7l etc(maybe in an armv7l
+### server or using a cross-compile toolchain.
+### you should adefine ARCH32 to specify it.
+#
+# CXX_FLAGS_DEFINED="-DARCH32"
+
+CXX_FLAGS="-O2 -g -std=c++11 -lthrift"
+CXX_SO_FLAGS="-shared -fPIC"
+
+source_file="Session.cpp gen-cpp/common_types.cpp gen-cpp/IClientRPCService.cpp gen-cpp/client_types.cpp gen-cpp/IClientRPCService_server.skeleton.cpp"
+include_file="Session.h gen-cpp/common_types.h gen-cpp/IClientRPCService.h gen-cpp/client_types.h"
+
+common_thrift_dir=../thrift-commons/src/main/thrift
+client_thrift_dir=../thrift/src/main/thrift
+
+$thrift_bin --gen cpp -o src/main/ $common_thrift_dir/common.thrift
+$thrift_bin --gen cpp -o src/main/ -I $common_thrift_dir $client_thrift_dir/client.thrift
+
+cd src/main
+LD_LIBRARY_PATH=$thrift_lib g++ -Igen-cpp $CXX_FLAGS $CXX_SO_FLAGS $CXX_FLAGS_DEFINED -o libiotdb_session.so $source_file
+
+# back to iotdb/client-cpp
+cd ../../
+mkdir iotdb_cpp_client_sdk
+mkdir iotdb_cpp_client_sdk/include iotdb_cpp_client_sdk/lib
+cp $thrift_lib/libthrift-0.14.0.so  iotdb_cpp_client_sdk/lib/

Review Comment:
   We are using thrift 0.14.1 in IoTDB,  why 0.14.0 here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org