Skip to content

Commit 4d2e2ce

Browse files
authored
feat/release 0.5.1 (#20)
* chore: minor refactor * 0.5.1
1 parent d8e3766 commit 4d2e2ce

38 files changed

+108
-202
lines changed

docs/metrics-display.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ By default, 2 files are generated in the program's working directory
5050
```
5151
--- GreptimeDB Client ---
5252
id=1
53-
version=0.5.0
53+
version=0.5.1
5454
endpoints=[127.0.0.1:4001]
5555
database=public
5656
rpcOptions=RpcOptions{useRpcSharedPool=false, defaultRpcTimeout=10000, maxInboundMessageSize=268435456, flowControlWindow=268435456, idleTimeoutSeconds=300, keepAliveTimeSeconds=9223372036854775807, keepAliveTimeoutSeconds=3, keepAliveWithoutCalls=false, limitKind=None, initialLimit=64, maxLimit=1024, longRttWindow=100, smoothing=0.2, blockOnLimit=false, logOnLimitChange=true, enableMetricInterceptor=false}

ingester-all/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>greptimedb-ingester</artifactId>
66
<groupId>io.greptime</groupId>
7-
<version>0.5.0</version>
7+
<version>0.5.1</version>
88
</parent>
99

1010
<artifactId>ingester-all</artifactId>

ingester-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>greptimedb-ingester</artifactId>
66
<groupId>io.greptime</groupId>
7-
<version>0.5.0</version>
7+
<version>0.5.1</version>
88
</parent>
99

1010
<artifactId>ingester-common</artifactId>

ingester-common/src/main/java/com/google/protobuf/ByteStringHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.nio.ByteBuffer;
2020

2121
/**
22-
* A {@code ByteString} helper.
22+
* A {@code ByteString} helper, avoid some memory copying to improve performance.
2323
*
2424
* @author jiachun.fjc
2525
*/

ingester-common/src/main/java/io/greptime/common/Keys.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616
package io.greptime.common;
1717

1818
/**
19-
* System properties option keys
19+
* Constant string keys.
2020
*
2121
* @author jiachun.fjc
2222
*/
2323
public final class Keys {
2424
public static final String DB_NAME = "GreptimeDB";
2525
public static final String VERSION_KEY = "client.version";
26+
public static final String ID_KEY = "client.id";
27+
public static final String NODE_KEY = "client.node";
2628
public static final String OS_NAME = "os.name";
2729
public static final String USE_OS_SIGNAL = "greptimedb.use_os_signal";
2830
public static final String AVAILABLE_CPUS = "greptimedb.available_cpus";

ingester-common/src/main/java/io/greptime/common/Streamable.java

Lines changed: 0 additions & 33 deletions
This file was deleted.

ingester-common/src/main/java/io/greptime/common/signal/FileSignal.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919

2020
/**
2121
* File signal.
22+
* <p>
23+
* Adopt the method of creating files with specified names to interact
24+
* with the Client process and implement signal transmission, achieve the
25+
* purpose of controlling the process to output specified content through this.
2226
*
2327
* @author jiachun.fjc
2428
*/

ingester-common/src/main/java/io/greptime/common/util/DirectExecutor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public DirectExecutor(String name) {
3232
this.executeTimer = MetricsUtil.timer("direct_executor_timer", name);
3333
}
3434

35+
@SuppressWarnings("NullableProblems")
3536
@Override
3637
public void execute(Runnable cmd) {
3738
this.executeTimer.time(cmd);

ingester-common/src/main/java/io/greptime/common/util/LogScheduledThreadPoolExecutor.java

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,10 @@ public class LogScheduledThreadPoolExecutor extends ScheduledThreadPoolExecutor
3838
private final int corePoolSize;
3939
private final String name;
4040

41-
public LogScheduledThreadPoolExecutor(int corePoolSize, String name) {
42-
super(corePoolSize);
43-
this.corePoolSize = corePoolSize;
44-
this.name = name;
45-
}
46-
47-
public LogScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, String name) {
48-
super(corePoolSize, threadFactory);
49-
this.corePoolSize = corePoolSize;
50-
this.name = name;
51-
}
52-
53-
public LogScheduledThreadPoolExecutor(int corePoolSize, RejectedExecutionHandler handler, String name) {
54-
super(corePoolSize, handler);
55-
this.corePoolSize = corePoolSize;
56-
this.name = name;
57-
}
58-
59-
public LogScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory,
60-
RejectedExecutionHandler handler, String name) {
41+
public LogScheduledThreadPoolExecutor(int corePoolSize, //
42+
ThreadFactory threadFactory, //
43+
RejectedExecutionHandler handler, //
44+
String name) {
6145
super(corePoolSize, threadFactory, handler);
6246
this.corePoolSize = corePoolSize;
6347
this.name = name;

ingester-common/src/main/java/io/greptime/common/util/LogThreadPoolExecutor.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ public class LogThreadPoolExecutor extends ThreadPoolExecutor {
4040
private final int maximumPoolSize;
4141
private final String name;
4242

43-
public LogThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit,
44-
BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler,
43+
public LogThreadPoolExecutor(int corePoolSize, //
44+
int maximumPoolSize, //
45+
long keepAliveTime, //
46+
TimeUnit unit, //
47+
BlockingQueue<Runnable> workQueue, //
48+
ThreadFactory threadFactory, //
49+
RejectedExecutionHandler handler, //
4550
String name) {
4651
super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory, handler);
4752
this.corePoolSize = corePoolSize;

0 commit comments

Comments
 (0)