File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
src/main/java/com/taosdata/jdbc/ws Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,30 @@ jobs:
4747
4848 - name : Restore TDengine debug directory cache
4949 uses : actions/cache/restore@v4
50- id : restore- cache
50+ id : cache-debug-dir
5151 with :
5252 path : TDengine/debug
5353 key : ${{ runner.os }}-tdengine-debug-${{ env.CACHE_VERSION }}-${{ steps.tdengine-info.outputs.branch }}-${{ steps.tdengine-info.outputs.commit_id }}
5454 restore-keys : |
5555 ${{ runner.os }}-tdengine-debug-${{ env.CACHE_VERSION }}-${{ steps.tdengine-info.outputs.branch }}-
5656 ${{ runner.os }}-tdengine-debug-${{ env.CACHE_VERSION }}-
5757
58+ - name : Debug cache hit status
59+ run : |
60+ echo "Cache hit: ${{ steps.cache-debug-dir.outputs.cache-hit }}"
61+ echo "Cache key: ${{ steps.cache-debug-dir.outputs.cache-primary-key }}"
62+
63+ - name : Check if debug directory exists and is valid
64+ id : check-debug-dir
65+ run : |
66+ if [ -d "TDengine/debug" ] && [ -f "TDengine/debug/CMakeCache.txt" ]; then
67+ echo "Debug directory exists and appears valid"
68+ echo "is_debug_valid=true" >> $GITHUB_OUTPUT
69+ else
70+ echo "Debug directory missing or invalid"
71+ echo "is_debug_valid=false" >> $GITHUB_OUTPUT
72+ fi
73+
5874 - name : Install build dependencies
5975 if : steps.cache-debug-dir.outputs.cache-hit != 'true'
6076 run : |
Original file line number Diff line number Diff line change 4242 <product .version>3.0.0.0</product .version>
4343 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
4444 <java .version>1.8</java .version>
45- <jackson .version>2.18.4 </jackson .version>
45+ <jackson .version>2.20.0 </jackson .version>
4646 <httpclient .version>4.5.14</httpclient .version>
4747 <guava .version>33.5.0-jre</guava .version>
4848 <netty-all .version>4.1.127.Final</netty-all .version>
Original file line number Diff line number Diff line change 1515import com .taosdata .jdbc .ws .schemaless .SchemalessAction ;
1616import com .taosdata .jdbc .ws .stmt2 .entity .Field ;
1717import com .taosdata .jdbc .ws .stmt2 .entity .Stmt2PrepareResp ;
18+ import org .slf4j .Logger ;
19+ import org .slf4j .LoggerFactory ;
1820
1921import java .sql .*;
2022import java .util .Map ;
2426import java .util .concurrent .atomic .AtomicLong ;
2527
2628public class WSConnection extends AbstractConnection {
27-
29+ private static final Logger log = LoggerFactory . getLogger ( WSConnection . class );
2830 public static final AtomicBoolean g_FirstConnection = new AtomicBoolean (true );
2931 private final Transport transport ;
3032 private final DatabaseMetaData metaData ;
@@ -233,6 +235,7 @@ public boolean isValid(int timeout) throws SQLException {
233235 return status != 0 ;
234236 } catch (SQLException e ) {
235237 conCheckInfoMap .put (jdbcUrl , new ConCheckInfo (System .currentTimeMillis (), false ));
238+ log .error ("check connection failed" , e );
236239 return false ;
237240 } finally {
238241 if (resultSet != null ) {
You can’t perform that action at this time.
0 commit comments