Skip to content

Commit 3e87c4b

Browse files
authored
chore: update deploy pom (#282)
1 parent 67edba7 commit 3e87c4b

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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: |

deploy-pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
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>

src/main/java/com/taosdata/jdbc/ws/WSConnection.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
import com.taosdata.jdbc.ws.schemaless.SchemalessAction;
1616
import com.taosdata.jdbc.ws.stmt2.entity.Field;
1717
import com.taosdata.jdbc.ws.stmt2.entity.Stmt2PrepareResp;
18+
import org.slf4j.Logger;
19+
import org.slf4j.LoggerFactory;
1820

1921
import java.sql.*;
2022
import java.util.Map;
@@ -24,7 +26,7 @@
2426
import java.util.concurrent.atomic.AtomicLong;
2527

2628
public 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) {

0 commit comments

Comments
 (0)