Skip to content

Commit

Permalink
Remove hppc uses from xpack tests
Browse files Browse the repository at this point in the history
This commit removes a couple trivial uses of hppc in x-pack tests.

relates elastic#84735
  • Loading branch information
rjernst committed Mar 8, 2022
1 parent 423a0a5 commit c042801
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
*/
package org.elasticsearch.xpack.ccr.action;

import com.carrotsearch.hppc.LongHashSet;
import com.carrotsearch.hppc.LongSet;

import org.apache.lucene.store.IOContext;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.Version;
Expand Down Expand Up @@ -68,6 +65,7 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -574,7 +572,7 @@ private ShardFollowNodeTask createShardFollowTask(ReplicationGroup leaderGroup,

BiConsumer<TimeValue, Runnable> scheduler = (delay, task) -> threadPool.schedule(task, delay, ThreadPool.Names.GENERIC);
AtomicBoolean stopped = new AtomicBoolean(false);
LongSet fetchOperations = new LongHashSet();
Set<Long> fetchOperations = new HashSet<>();
return new ShardFollowNodeTask(
1L,
"type",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
*/
package org.elasticsearch.xpack.sql.qa.jdbc;

import com.carrotsearch.hppc.IntObjectHashMap;

import org.apache.logging.log4j.Logger;
import org.elasticsearch.geometry.Point;
import org.elasticsearch.geometry.utils.StandardValidator;
Expand All @@ -28,8 +26,10 @@
import java.time.temporal.TemporalAmount;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.TimeZone;

import static java.lang.String.format;
Expand All @@ -56,7 +56,7 @@
public class JdbcAssert {
private static final Calendar UTC_CALENDAR = Calendar.getInstance(TimeZone.getTimeZone("UTC"), Locale.ROOT);

private static final IntObjectHashMap<EsType> SQL_TO_TYPE = new IntObjectHashMap<>();
private static final Map<Integer, EsType> SQL_TO_TYPE = new HashMap<>();

static {
for (EsType type : EsType.values()) {
Expand Down

0 comments on commit c042801

Please sign in to comment.