From 1b968ba699e708441eabc818e044aea9a63c3972 Mon Sep 17 00:00:00 2001 From: Ivan Bella <347158+ivakegg@users.noreply.github.com> Date: Fri, 20 Dec 2024 13:50:35 +0000 Subject: [PATCH] Updated to not copy the query iterator when cloning the query logic as this can cause execution issues --- .../core/query/configuration/GenericQueryConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/query/src/main/java/datawave/core/query/configuration/GenericQueryConfiguration.java b/core/query/src/main/java/datawave/core/query/configuration/GenericQueryConfiguration.java index 9368856f9f..18945b1f88 100644 --- a/core/query/src/main/java/datawave/core/query/configuration/GenericQueryConfiguration.java +++ b/core/query/src/main/java/datawave/core/query/configuration/GenericQueryConfiguration.java @@ -123,7 +123,8 @@ public void copyFrom(GenericQueryConfiguration other) { this.setEndDate(other.getEndDate()); this.setMaxWork(other.getMaxWork()); this.setQueries(other.getQueries()); - this.setQueriesIter(other.getQueriesIter()); + // copying the query iterators can cause issues if the query is running. + // this.setQueriesIter(other.getQueriesIter()); this.setQueryString(other.getQueryString()); this.setTableName(other.getTableName()); this.setReduceResults(other.isReduceResults());