Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion API/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<description>URLFrontier Java API</description>

<properties>
<grpc.version>1.75.0</grpc.version>
<grpc.version>1.76.0</grpc.version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<version.maven-jar-plugin>3.4.2</version.maven-jar-plugin>
<version.maven-javadoc-plugin>3.10.0</version.maven-javadoc-plugin>
<version.maven-release-plugin>3.1.1</version.maven-release-plugin>
<version.maven-shade-plugin>3.6.0</version.maven-shade-plugin>
<version.maven-shade-plugin>3.6.1</version.maven-shade-plugin>
<minimalJavaBuildVersion>11</minimalJavaBuildVersion>
<picocli.version>4.7.6</picocli.version>
<junit.version>5.11.0</junit.version>
Expand Down
4 changes: 2 additions & 2 deletions service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

<properties>
<prometheus.version>0.16.0</prometheus.version>
<rocksdb.version>9.6.1</rocksdb.version>
<rocksdb.version>9.7.3</rocksdb.version>
<logback.version>1.5.17</logback.version>
<mockito.version>5.13.0</mockito.version>
<commons.io.version>2.16.1</commons.io.version>
<commons.lang.version>3.18.0</commons.lang.version>
<commons.lang.version>3.19.0</commons.lang.version>
</properties>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import crawlercommons.urlfrontier.service.QueueInterface;
import crawlercommons.urlfrontier.service.QueueWithinCrawl;
import crawlercommons.urlfrontier.service.SynchronizedStreamObserver;
import io.grpc.netty.shaded.io.netty.util.internal.StringUtil;
import io.grpc.stub.StreamObserver;
import java.io.IOException;
import java.nio.ByteBuffer;
Expand All @@ -33,6 +32,8 @@
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import org.apache.commons.lang3.StringUtils;
import org.rocksdb.BlockBasedTableConfig;
import org.rocksdb.BloomFilter;
import org.rocksdb.ColumnFamilyDescriptor;
Expand Down Expand Up @@ -814,7 +815,7 @@ public void getURLStatus(URLStatusRequest request, StreamObserver<URLItem> respo
if (schedulingKey != null) {
final String currentKey = new String(schedulingKey, StandardCharsets.UTF_8);

if (StringUtil.isNullOrEmpty(currentKey)) {
if (StringUtils.isEmpty(currentKey)) {
info = URLInfo.newBuilder().setCrawlID(crawlId).setKey(key).setUrl(url).build();

found = true;
Expand Down Expand Up @@ -954,7 +955,7 @@ public URLItem next() {
long fromEpoch = 0;
URLInfo info = null;

if (!StringUtil.isNullOrEmpty(schedulingKey)) {
if (!StringUtils.isEmpty(schedulingKey)) {
final int pos1 = schedulingKey.indexOf('_');
final int pos2 = schedulingKey.indexOf('_', pos1 + 1);
final int pos3 = schedulingKey.indexOf('_', pos2 + 1);
Expand Down