From a37fc16a3d493040ce3d4c3480cdbe20b7f2abd1 Mon Sep 17 00:00:00 2001 From: Louis Chu Date: Thu, 12 Sep 2024 15:15:38 -0700 Subject: [PATCH] update CI action version Signed-off-by: Louis Chu --- .github/workflows/integ-tests-with-security.yml | 4 ++-- .github/workflows/sql-pitest.yml | 2 +- .github/workflows/sql-test-and-build-workflow.yml | 8 ++++---- .github/workflows/sql-test-workflow.yml | 2 +- .../spark/scheduler/OpenSearchAsyncQueryScheduler.java | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/integ-tests-with-security.yml b/.github/workflows/integ-tests-with-security.yml index 751f3d01db..9d214a45cb 100644 --- a/.github/workflows/integ-tests-with-security.yml +++ b/.github/workflows/integ-tests-with-security.yml @@ -47,7 +47,7 @@ jobs: - name: Upload test reports if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 continue-on-error: true with: name: test-reports-${{ matrix.os }}-${{ matrix.java }} @@ -79,7 +79,7 @@ jobs: - name: Upload test reports if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 continue-on-error: true with: name: test-reports-${{ matrix.os }}-${{ matrix.java }} diff --git a/.github/workflows/sql-pitest.yml b/.github/workflows/sql-pitest.yml index 78eed9e846..d9034cce9f 100644 --- a/.github/workflows/sql-pitest.yml +++ b/.github/workflows/sql-pitest.yml @@ -48,7 +48,7 @@ jobs: - name: Upload test reports if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: test-reports-${{ matrix.entry.java }} path: | diff --git a/.github/workflows/sql-test-and-build-workflow.yml b/.github/workflows/sql-test-and-build-workflow.yml index fd11716b51..6aa674b73f 100644 --- a/.github/workflows/sql-test-and-build-workflow.yml +++ b/.github/workflows/sql-test-and-build-workflow.yml @@ -73,7 +73,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Upload Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 continue-on-error: true with: name: opensearch-sql-ubuntu-latest-${{ matrix.java }} @@ -81,7 +81,7 @@ jobs: - name: Upload test reports if: ${{ always() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 continue-on-error: true with: name: test-reports-ubuntu-latest-${{ matrix.java }} @@ -135,7 +135,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Upload Artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 continue-on-error: true with: name: opensearch-sql-${{ matrix.entry.os }}-${{ matrix.entry.java }} @@ -143,7 +143,7 @@ jobs: - name: Upload test reports if: ${{ always() && matrix.entry.os == 'ubuntu-latest' }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 continue-on-error: true with: name: test-reports-${{ matrix.entry.os }}-${{ matrix.entry.java }} diff --git a/.github/workflows/sql-test-workflow.yml b/.github/workflows/sql-test-workflow.yml index 40a1e2fc8f..f2f22bd44f 100644 --- a/.github/workflows/sql-test-workflow.yml +++ b/.github/workflows/sql-test-workflow.yml @@ -86,7 +86,7 @@ jobs: - name: Upload test reports if: always() - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: test-reports-${{ matrix.entry.java }} path: | diff --git a/async-query/src/main/java/org/opensearch/sql/spark/scheduler/OpenSearchAsyncQueryScheduler.java b/async-query/src/main/java/org/opensearch/sql/spark/scheduler/OpenSearchAsyncQueryScheduler.java index 7f49a50877..eb190181d8 100644 --- a/async-query/src/main/java/org/opensearch/sql/spark/scheduler/OpenSearchAsyncQueryScheduler.java +++ b/async-query/src/main/java/org/opensearch/sql/spark/scheduler/OpenSearchAsyncQueryScheduler.java @@ -97,9 +97,9 @@ public void unscheduleJob(AsyncQuerySchedulerRequest asyncQuerySchedulerRequest) asyncQuerySchedulerRequest.setEnabled(false); asyncQuerySchedulerRequest.setLastUpdateTime(Instant.now()); updateJob(asyncQuerySchedulerRequest); - LOG.info("Unscheduled job for jobId: {}", asyncQuerySchedulerRequest); + LOG.info("Unscheduled job for jobId: {}", jobId); } catch (IllegalStateException | DocumentMissingException e) { - LOG.error("Failed to unschedule job: {}", asyncQuerySchedulerRequest, e); + LOG.error("Failed to unschedule job: {}", jobId, e); } }