Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lucene 10.0.0 #4570

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' of github.com:oracle/opengrok into lucene-9.10.0
  • Loading branch information
tarzanek committed Oct 23, 2024
commit 08d62e7f0d854d189386ac408d46108f3fc54b86
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class Configuration implements Serializable {

private static final long serialVersionUID = -1;

@JsonProperty
@SuppressWarnings("serial")
private List<LdapServer> servers = new ArrayList<>();
@JsonProperty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.jetbrains.annotations.Nullable;

import java.io.IOException;
import java.io.Serializable;
Expand Down Expand Up @@ -82,6 +81,8 @@ public class LdapServer implements Serializable {
@JsonProperty
private int readTimeout;

private int interval = 10 * 1000;

@SuppressWarnings("serial")
private final Map<String, String> env;
private transient LdapContext ctx;
Expand Down Expand Up @@ -210,7 +211,6 @@ public InetAddress[] getAddresses(String hostname) throws UnknownHostException {
* Go through all IP addresses and find out if they are reachable.
* @return true if all IP addresses are reachable, false otherwise
*/
@JsonIgnore
public boolean isReachable() {
try {
InetAddress[] addresses = getAddresses(urlToHostname(getUrl()));
Expand Down Expand Up @@ -245,7 +245,6 @@ public boolean isReachable() {
*
* @return true if it is working
*/
@JsonIgnore
public synchronized boolean isWorking() {
if (ctx == null) {
if (!isReachable()) {
Expand All @@ -262,7 +261,6 @@ public synchronized boolean isWorking() {
*
* @return the new connection or null
*/
@Nullable
private synchronized LdapContext connect() {
LOGGER.log(Level.INFO, "Connecting to LDAP server {0} ", this);

Expand Down Expand Up @@ -294,8 +292,7 @@ private synchronized LdapContext connect() {
LOGGER.log(Level.INFO, "Connected to LDAP server {0}", this);
errorTimestamp = 0;
} catch (NamingException ex) {
LOGGER.log(Level.WARNING,
String.format("LDAP server %s is not responding", env.get(Context.PROVIDER_URL)), ex);
LOGGER.log(Level.WARNING, "LDAP server {0} is not responding", env.get(Context.PROVIDER_URL));
errorTimestamp = System.currentTimeMillis();
close();
ctx = null;
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.