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
8 changes: 4 additions & 4 deletions bookkeeper-dist/src/main/resources/LICENSE-all.bin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Apache Software License, Version 2.
- lib/com.fasterxml.jackson.core-jackson-annotations-2.11.0.jar [1]
- lib/com.fasterxml.jackson.core-jackson-core-2.11.3.jar [2]
- lib/com.fasterxml.jackson.core-jackson-databind-2.11.0.jar [3]
- lib/com.google.guava-guava-30.0-jre.jar [4]
- lib/com.google.guava-guava-31.0.1-jre.jar [4]
- lib/com.google.guava-failureaccess-1.0.1.jar [4]
- lib/com.google.guava-listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar [4]
- lib/commons-cli-commons-cli-1.2.jar [5]
Expand Down Expand Up @@ -312,7 +312,7 @@ Apache Software License, Version 2.
[1] Source available at https://github.com/FasterXML/jackson-annotations/tree/jackson-annotations-2.11.0
[2] Source available at https://github.com/FasterXML/jackson-core/tree/jackson-core-2.11.3
[3] Source available at https://github.com/FasterXML/jackson-databind/tree/jackson-databind-2.11.0
[4] Source available at https://github.com/google/guava/tree/v30.0
[4] Source available at https://github.com/google/guava/tree/v31.0
[5] Source available at https://git-wip-us.apache.org/repos/asf?p=commons-cli.git;a=tag;h=bc8f0e
[6] Source available at http://svn.apache.org/viewvc/commons/proper/codec/tags/1_6/
[7] Source available at http://svn.apache.org/viewvc/commons/proper/configuration/tags/CONFIGURATION_1_10/
Expand Down Expand Up @@ -667,10 +667,10 @@ This product uses the annotations from The Checker Framework, which are licensed
MIT License. For details, see deps/checker-qual-3.5.0/LICENSE

Bundles as
- lib/org.checkerframework-checker-qual-3.5.0.jar
- lib/org.checkerframework-checker-qual-3.12.0.jar
------------------------------------------------------------------------------------
This product bundles the Reactive Streams library, which is licensed under
Public Domain (CC0). For details, see deps/reactivestreams-1.0.3/LICENSE

Bundles as
- lib/org.reactivestreams-reactive-streams-1.0.3.jar
- lib/org.reactivestreams-reactive-streams-1.0.3.jar
8 changes: 4 additions & 4 deletions bookkeeper-dist/src/main/resources/LICENSE-bkctl.bin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Apache Software License, Version 2.
- lib/com.fasterxml.jackson.core-jackson-annotations-2.11.0.jar [1]
- lib/com.fasterxml.jackson.core-jackson-core-2.11.3.jar [2]
- lib/com.fasterxml.jackson.core-jackson-databind-2.11.0.jar [3]
- lib/com.google.guava-guava-30.0-jre.jar [4]
- lib/com.google.guava-guava-31.0.1-jre.jar [4]
- lib/com.google.guava-failureaccess-1.0.1.jar [4]
- lib/com.google.guava-listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar [4]
- lib/commons-cli-commons-cli-1.2.jar [5]
Expand Down Expand Up @@ -289,7 +289,7 @@ Apache Software License, Version 2.
[1] Source available at https://github.com/FasterXML/jackson-annotations/tree/jackson-annotations-2.11.0
[2] Source available at https://github.com/FasterXML/jackson-core/tree/jackson-core-2.11.3
[3] Source available at https://github.com/FasterXML/jackson-databind/tree/jackson-databind-2.11.0
[4] Source available at https://github.com/google/guava/tree/v30.0
[4] Source available at https://github.com/google/guava/tree/v31.0
[5] Source available at https://git-wip-us.apache.org/repos/asf?p=commons-cli.git;a=tag;h=bc8f0e
[6] Source available at http://svn.apache.org/viewvc/commons/proper/codec/tags/1_6/
[7] Source available at http://svn.apache.org/viewvc/commons/proper/configuration/tags/CONFIGURATION_1_10/
Expand Down Expand Up @@ -594,10 +594,10 @@ This product uses the annotations from The Checker Framework, which are licensed
MIT License. For details, see deps/checker-qual-3.5.0/LICENSE

Bundles as
- lib/org.checkerframework-checker-qual-3.5.0.jar
- lib/org.checkerframework-checker-qual-3.12.0.jar
------------------------------------------------------------------------------------
This product bundles the Reactive Streams library, which is licensed under
Public Domain (CC0). For details, see deps/reactivestreams-1.0.3/LICENSE

Bundles as
- lib/org.reactivestreams-reactive-streams-1.0.3.jar
- lib/org.reactivestreams-reactive-streams-1.0.3.jar
8 changes: 4 additions & 4 deletions bookkeeper-dist/src/main/resources/LICENSE-server.bin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Apache Software License, Version 2.
- lib/com.fasterxml.jackson.core-jackson-annotations-2.11.0.jar [1]
- lib/com.fasterxml.jackson.core-jackson-core-2.11.3.jar [2]
- lib/com.fasterxml.jackson.core-jackson-databind-2.11.0.jar [3]
- lib/com.google.guava-guava-30.0-jre.jar [4]
- lib/com.google.guava-guava-31.0.1-jre.jar [4]
- lib/com.google.guava-failureaccess-1.0.1.jar [4]
- lib/com.google.guava-listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar [4]
- lib/commons-cli-commons-cli-1.2.jar [5]
Expand Down Expand Up @@ -310,7 +310,7 @@ Apache Software License, Version 2.
[1] Source available at https://github.com/FasterXML/jackson-annotations/tree/jackson-annotations-2.11.0
[2] Source available at https://github.com/FasterXML/jackson-core/tree/jackson-core-2.11.3
[3] Source available at https://github.com/FasterXML/jackson-databind/tree/jackson-databind-2.11.0
[4] Source available at https://github.com/google/guava/tree/v30.0
[4] Source available at https://github.com/google/guava/tree/v31.0
[5] Source available at https://git-wip-us.apache.org/repos/asf?p=commons-cli.git;a=tag;h=bc8f0e
[6] Source available at http://svn.apache.org/viewvc/commons/proper/codec/tags/1_6/
[7] Source available at http://svn.apache.org/viewvc/commons/proper/configuration/tags/CONFIGURATION_1_10/
Expand Down Expand Up @@ -659,10 +659,10 @@ This product uses the annotations from The Checker Framework, which are licensed
MIT License. For details, see deps/checker-qual-3.5.0/LICENSE

Bundles as
- lib/org.checkerframework-checker-qual-3.5.0.jar
- lib/org.checkerframework-checker-qual-3.12.0.jar
------------------------------------------------------------------------------------
This product bundles the Reactive Streams library, which is licensed under
Public Domain (CC0). For details, see deps/reactivestreams-1.0.3/LICENSE

Bundles as
- lib/org.reactivestreams-reactive-streams-1.0.3.jar
- lib/org.reactivestreams-reactive-streams-1.0.3.jar
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public Value project(Set<String> fields) {

@Override
public int hashCode() {
HashFunction hf = Hashing.murmur3_32();
HashFunction hf = Hashing.murmur3_32_fixed();
Hasher hc = hf.newHasher();
for (String key : fields.keySet()) {
hc.putString(key, Charset.defaultCharset());
Expand Down
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@ allprojects {
new File(buildDir, "classpath.txt").text = sourceSets.main.runtimeClasspath.collect { it.absolutePath }.join(':') + "\n"
}
}

dependencies {
implementation(enforcedPlatform(depLibs.guavaBom))
}

}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
*/
package org.apache.bookkeeper.common.util.affinity.impl;

import static com.google.common.base.Preconditions.checkArgument;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

import java.io.File;
Expand Down Expand Up @@ -50,7 +48,7 @@ public class NativeUtils {
value = "OBL_UNSATISFIED_OBLIGATION",
justification = "work around for java 9: https://github.com/spotbugs/spotbugs/issues/493")
public static void loadLibraryFromJar(String path) throws Exception {
checkArgument(path.startsWith("/"), "absolute path must start with /");
com.google.common.base.Preconditions.checkArgument(path.startsWith("/"), "absolute path must start with /");

String[] parts = path.split("/");
String filename = (parts.length > 0) ? parts[parts.length - 1] : null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
*/
package org.apache.bookkeeper.common.util.affinity.impl;

import static com.google.common.base.Preconditions.checkArgument;

import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -80,8 +78,8 @@ static ProcessorsInfo parseCpuInfo(String cpuInfoString) {
}
}

checkArgument(cpuId >= 0);
checkArgument(coreId >= 0);
com.google.common.base.Preconditions.checkArgument(cpuId >= 0);
com.google.common.base.Preconditions.checkArgument(coreId >= 0);
pi.cpus.put(cpuId, coreId);
}

Expand Down
3 changes: 2 additions & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ depVersions = [
gradleTooling: "4.0.1",
grpc: "1.42.1",
groovy: "2.5.8",
guava: "30.0-jre",
guava: "31.0.1-jre",
hamcrest: "1.3",
hdrhistogram: "2.1.10",
httpclient: "4.5.13",
Expand Down Expand Up @@ -139,6 +139,7 @@ depLibs = [
exclude group: 'com.google.guava', module: 'guava'
},
groovy: "org.codehaus.groovy:groovy-all:${depVersions.groovy}",
guavaBom: "com.google.guava:guava-bom:${depVersions.guava}",
guava: dependencies.create("com.google.guava:guava:${depVersions.guava}"){
exclude group: 'com.google.code.findbugs', module: 'jsr305'
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void testByteBufHashRouter() {
int hash32 = Murmur3.hash32(
key, key.readerIndex(), key.readableBytes(), (int) AbstractHashRouter.HASH_SEED);
int bytesHash32 = Murmur3.hash32(keyBytes, 0, keyBytes.length, (int) AbstractHashRouter.HASH_SEED);
int guavaHash32 = Hashing.murmur3_32((int) AbstractHashRouter.HASH_SEED)
int guavaHash32 = Hashing.murmur3_32_fixed((int) AbstractHashRouter.HASH_SEED)
.newHasher()
.putString("foo", UTF_8)
.hash()
Expand Down