Skip to content

Commit

Permalink
[type: fix] fix ci e2e postgres bug (#5555)
Browse files Browse the repository at this point in the history
* ci debug

* ci debug

* ci debug

* ci debug

* ci debug

* ci debug
  • Loading branch information
Aias00 authored Apr 25, 2024
1 parent 9dbb39e commit 774b8ea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ public static byte[] toBytes(final File file) throws IOException {
input.close();
}
} catch (IOException ioe) {
System.err.println(ioe);
LOG.error("toBytes error", ioe);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ kubectl get pod -o wide
chmod +x "${curPath}"/healthcheck.sh
sh "${curPath}"/healthcheck.sh postgres http://localhost:31095/actuator/health http://localhost:31195/actuator/health

kubectl logs "$(kubectl get pod -o wide | grep shenyu-postgres | awk '{print $1}')"

kubectl logs "$(kubectl get pod -o wide | grep shenyu-admin | awk '{print $1}')"

kubectl logs "$(kubectl get pod -o wide | grep shenyu-bootstrap | awk '{print $1}')"
## run e2e-test

curl -S "http://localhost:31195/actuator/pluginData"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public GetResponse getRange(final String key, final GetOption getOption) {
try {
return this.client.getKVClient().get(bytesOf(key), getOption).get();
} catch (ExecutionException | InterruptedException e) {
LOGGER.error("etcd getRange key {} error {}", key, e);
LOGGER.error("etcd getRange key {} error", key, e);
throw new ShenyuException(e);
}
}
Expand Down

0 comments on commit 774b8ea

Please sign in to comment.