You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2023/08/21 22:57:36 UTC

[lucene] branch enhancement/unwrap_execution_exceptions created (now 006f1fd04fd)

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

javanna pushed a change to branch enhancement/unwrap_execution_exceptions
in repository https://gitbox.apache.org/repos/asf/lucene.git


      at 006f1fd04fd iter

This branch includes the following new commits:

     new e39b618712a iter
     new 006f1fd04fd iter

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[lucene] 02/02: iter

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

javanna pushed a commit to branch enhancement/unwrap_execution_exceptions
in repository https://gitbox.apache.org/repos/asf/lucene.git

commit 006f1fd04fd0fa8d621258a92acf88d56b45188a
Author: Luca Cavanna <ja...@apache.org>
AuthorDate: Tue Aug 22 00:57:16 2023 +0200

    iter
---
 .../test/org/apache/lucene/search/TestTaskExecutor.java  | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/lucene/core/src/test/org/apache/lucene/search/TestTaskExecutor.java b/lucene/core/src/test/org/apache/lucene/search/TestTaskExecutor.java
index f00a12b8d0e..00f895905da 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestTaskExecutor.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestTaskExecutor.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.lucene.search;
 
 import java.io.IOException;


[lucene] 01/02: iter

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

javanna pushed a commit to branch enhancement/unwrap_execution_exceptions
in repository https://gitbox.apache.org/repos/asf/lucene.git

commit e39b618712a9603a103a1ca6e7a2d28c94667c80
Author: Luca Cavanna <ja...@apache.org>
AuthorDate: Tue Aug 22 00:56:37 2023 +0200

    iter
---
 lucene/core/src/test/org/apache/lucene/search/TestTaskExecutor.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lucene/core/src/test/org/apache/lucene/search/TestTaskExecutor.java b/lucene/core/src/test/org/apache/lucene/search/TestTaskExecutor.java
index 91a0aea7641..f00a12b8d0e 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestTaskExecutor.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestTaskExecutor.java
@@ -6,11 +6,12 @@ import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
 import java.util.concurrent.FutureTask;
 import org.apache.lucene.tests.util.LuceneTestCase;
+import org.apache.lucene.util.NamedThreadFactory;
 
 public class TestTaskExecutor extends LuceneTestCase {
 
   public void testUnwrapExceptions() {
-    ExecutorService executorService = Executors.newFixedThreadPool(1);
+    ExecutorService executorService = Executors.newFixedThreadPool(1, new NamedThreadFactory(TestTaskExecutor.class.getSimpleName()));
     try {
       TaskExecutor taskExecutor = new TaskExecutor(executorService);
       {