Skip to content
Permalink
Browse files
release loader v0.12 (#238)
  • Loading branch information
coderzc committed Dec 28, 2021
1 parent c88f2f3 commit a601d3d65d4097322ffd82a7529972eda4bffe68
Showing 5 changed files with 9 additions and 14 deletions.
@@ -18,7 +18,7 @@ jobs:
env:
TRAVIS_DIR: assembly/travis
STATIC_DIR: assembly/static
COMMIT_ID: e65641517361d7da7ef1801489c15e3af7863a39
COMMIT_ID: 1d031c5905cbef008dd5fb468576b0e6a9445181
DB_USER: root
DB_PASS: root
DB_DATABASE: load_test
@@ -62,7 +62,7 @@ jobs:
- name: Prepare env and service
run: |
$TRAVIS_DIR/install-hadoop.sh
$TRAVIS_DIR/install-hugegraph-from-source.sh $COMMIT_ID | grep -v "Downloading\|Downloaded"
$TRAVIS_DIR/install-hugegraph-from-source.sh $COMMIT_ID
- name: Run test
run: |
11 pom.xml
@@ -6,7 +6,7 @@

<groupId>com.baidu.hugegraph</groupId>
<artifactId>hugegraph-loader</artifactId>
<version>0.11.3</version>
<version>0.12.0</version>
<packaging>jar</packaging>

<name>hugegraph-loader</name>
@@ -61,20 +61,15 @@
<dependencies>
<dependency>
<groupId>com.baidu.hugegraph</groupId>
<artifactId>hugegraph-common</artifactId>
<version>1.8.9</version>
<artifactId>hugegraph-client</artifactId>
<version>2.0.1</version>
<exclusions>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.baidu.hugegraph</groupId>
<artifactId>hugegraph-client</artifactId>
<version>1.9.6</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
@@ -134,7 +134,7 @@ private void clearAllDataIfNeeded() {
String message = "I'm sure to delete all data";

LOG.info("Prepare to clear the data of graph '{}'", options.graph);
client.graphs().clear(options.graph, message);
client.graphs().clearGraph(options.graph, message);
LOG.info("The graph '{}' has been cleared successfully", options.graph);

options.timeout = requestTimeout;
@@ -98,7 +98,7 @@ public static <T> Set<T> convertSet(String json, Class<T> clazz) {
LinkedHashSet.class, clazz);
try {
return MAPPER.readValue(json, type);
} catch (JsonProcessingException e) {
} catch (IOException e) {
LOG.error("Failed to deserialize json", e);
throw new DeserializeException("Failed to deserialize json", e);
}
@@ -56,14 +56,14 @@ public static String configPath(String fileName) {
}

public static void clearServerData() {
CLIENT.graphs().clear(GRAPH, CONFIRM_CLEAR);
CLIENT.graphs().clearGraph(GRAPH, CONFIRM_CLEAR);
}

public static void clearAndClose(HugeClient httpsClient, String graph) {
if (httpsClient == null) {
return;
}
httpsClient.graphs().clear(graph, CONFIRM_CLEAR);
httpsClient.graphs().clearGraph(graph, CONFIRM_CLEAR);
}

protected static void assertContains(List<Vertex> vertices, String label,

0 comments on commit a601d3d

Please sign in to comment.