This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/skywalking-banyandb-java-client.git


The following commit(s) were added to refs/heads/main by this push:
     new ac48297  Support JDK21 build and fix wrong queue size (#52)
ac48297 is described below

commit ac48297052b49fc64733b7a00a82739a7068e089
Author: 吴晟 Wu Sheng <wu.sh...@foxmail.com>
AuthorDate: Fri Mar 1 09:55:22 2024 +0800

    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.
---
 .github/workflows/ci.yaml                                    |  4 ++--
 CHANGES.md                                                   | 12 ++++++++++++
 pom.xml                                                      |  2 +-
 .../skywalking/banyandb/v1/client/BulkWriteProcessor.java    |  2 +-
 4 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index efe9ef8..41bc00b 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -55,13 +55,13 @@ jobs:
         uses: 
apache/skywalking-eyes/dependency@20da317d1ad158e79e24355fdc28f53370e94c8a
 
   build:
-    name: JDK ${{ matrix.java-version }}
+    name: JDK ${{ matrix.version }} Build and Test
     needs: [ check-license-header ]
     runs-on: ubuntu-latest
     timeout-minutes: 30
     strategy:
       matrix:
-        version: [ 8, 11, 17 ]
+        version: [ 8, 11, 17, 21 ]
     steps:
       - uses: actions/checkout@v3
         with:
diff --git a/CHANGES.md b/CHANGES.md
index f17ab8f..e0880fc 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -2,6 +2,18 @@ Changes by Version
 ==================
 Release Notes.
 
+0.6.0
+------------------
+
+### Features
+
+* Support JDK21 build. Upgrade lombok version to 1.18.30.
+
+### Bugs
+
+* Fix the number of channel and the channel size in the BulkWriteProcessor.
+
+
 0.5.0
 ------------------
 
diff --git a/pom.xml b/pom.xml
index 617252e..1f1d3bb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,7 +77,7 @@
         <checkstyle.version>6.18</checkstyle.version>
         <junit.version>4.13.2</junit.version>
         <mockito-core.version>4.8.0</mockito-core.version>
-        <lombok.version>1.18.22</lombok.version>
+        <lombok.version>1.18.30</lombok.version>
 
         <!-- core lib dependency -->
         <bytebuddy.version>1.10.19</bytebuddy.version>
diff --git 
a/src/main/java/org/apache/skywalking/banyandb/v1/client/BulkWriteProcessor.java
 
b/src/main/java/org/apache/skywalking/banyandb/v1/client/BulkWriteProcessor.java
index 2fda151..1bbc1eb 100644
--- 
a/src/main/java/org/apache/skywalking/banyandb/v1/client/BulkWriteProcessor.java
+++ 
b/src/main/java/org/apache/skywalking/banyandb/v1/client/BulkWriteProcessor.java
@@ -47,7 +47,7 @@ public abstract class BulkWriteProcessor implements Closeable 
{
      */
     protected BulkWriteProcessor(String processorName, int maxBulkSize, int 
flushInterval, int concurrency) {
         this.flushInterval = flushInterval;
-        this.buffer = new DataCarrier(processorName, maxBulkSize, concurrency);
+        this.buffer = new DataCarrier(processorName, concurrency, maxBulkSize);
         Properties properties = new Properties();
         properties.put("maxBulkSize", maxBulkSize);
         properties.put("flushInterval", flushInterval);

Reply via email to