Skip to content

Commit ac48297

Browse files
authored
Support JDK21 build and fix wrong queue size (#52)
* * Fix the number of channel and the channel size in the BulkWriteProcessor. * Support JDK21 build. Upgrade lombok version to 1.18.30.
1 parent d2a111d commit ac48297

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ jobs:
5555
uses: apache/skywalking-eyes/dependency@20da317d1ad158e79e24355fdc28f53370e94c8a
5656

5757
build:
58-
name: JDK ${{ matrix.java-version }}
58+
name: JDK ${{ matrix.version }} Build and Test
5959
needs: [ check-license-header ]
6060
runs-on: ubuntu-latest
6161
timeout-minutes: 30
6262
strategy:
6363
matrix:
64-
version: [ 8, 11, 17 ]
64+
version: [ 8, 11, 17, 21 ]
6565
steps:
6666
- uses: actions/checkout@v3
6767
with:

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ Changes by Version
22
==================
33
Release Notes.
44

5+
0.6.0
6+
------------------
7+
8+
### Features
9+
10+
* Support JDK21 build. Upgrade lombok version to 1.18.30.
11+
12+
### Bugs
13+
14+
* Fix the number of channel and the channel size in the BulkWriteProcessor.
15+
16+
517
0.5.0
618
------------------
719

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<checkstyle.version>6.18</checkstyle.version>
7878
<junit.version>4.13.2</junit.version>
7979
<mockito-core.version>4.8.0</mockito-core.version>
80-
<lombok.version>1.18.22</lombok.version>
80+
<lombok.version>1.18.30</lombok.version>
8181

8282
<!-- core lib dependency -->
8383
<bytebuddy.version>1.10.19</bytebuddy.version>

src/main/java/org/apache/skywalking/banyandb/v1/client/BulkWriteProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public abstract class BulkWriteProcessor implements Closeable {
4747
*/
4848
protected BulkWriteProcessor(String processorName, int maxBulkSize, int flushInterval, int concurrency) {
4949
this.flushInterval = flushInterval;
50-
this.buffer = new DataCarrier(processorName, maxBulkSize, concurrency);
50+
this.buffer = new DataCarrier(processorName, concurrency, maxBulkSize);
5151
Properties properties = new Properties();
5252
properties.put("maxBulkSize", maxBulkSize);
5353
properties.put("flushInterval", flushInterval);

0 commit comments

Comments
 (0)