You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by kr...@apache.org on 2023/07/26 20:34:28 UTC

[solr] branch branch_9x updated: DenseVectorFieldTest tests that use atomic updates should check update log enabled

This is an automated email from the ASF dual-hosted git repository.

krisden pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new ce35d8e5c94 DenseVectorFieldTest tests that use atomic updates should check update log enabled
ce35d8e5c94 is described below

commit ce35d8e5c940053b7d419cb5e08e97686a6b1407
Author: Kevin Risden <kr...@apache.org>
AuthorDate: Wed Jul 26 16:24:51 2023 -0400

    DenseVectorFieldTest tests that use atomic updates should check update log enabled
---
 solr/core/src/test/org/apache/solr/schema/DenseVectorFieldTest.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/solr/core/src/test/org/apache/solr/schema/DenseVectorFieldTest.java b/solr/core/src/test/org/apache/solr/schema/DenseVectorFieldTest.java
index 1830a8f7ffc..8a89a6b6422 100644
--- a/solr/core/src/test/org/apache/solr/schema/DenseVectorFieldTest.java
+++ b/solr/core/src/test/org/apache/solr/schema/DenseVectorFieldTest.java
@@ -605,6 +605,9 @@ public class DenseVectorFieldTest extends AbstractBadConfigTestBase {
 
   @Test
   public void denseVectorField_shouldBePresentAfterAtomicUpdate() throws Exception {
+    assumeTrue(
+        "update log must be enabled for atomic update",
+        Boolean.getBoolean(System.getProperty("enable.update.log")));
     try {
       initCore("solrconfig.xml", "schema-densevector.xml");
       SolrInputDocument doc = new SolrInputDocument();
@@ -641,6 +644,9 @@ public class DenseVectorFieldTest extends AbstractBadConfigTestBase {
 
   @Test
   public void denseVectorFieldOnAtomicUpdate_shouldBeUpdatedCorrectly() throws Exception {
+    assumeTrue(
+        "update log must be enabled for atomic update",
+        Boolean.getBoolean(System.getProperty("enable.update.log")));
     try {
       initCore("solrconfig.xml", "schema-densevector.xml");
       SolrInputDocument doc = new SolrInputDocument();