Browse Source

Upgrade fastjson version to 1.2.83 (#567)

Signed-off-by: yhmo <yihua.mo@zilliz.com>
groot 1 year ago
parent
commit
d10537a781
2 changed files with 3 additions and 3 deletions
  1. 1 1
      pom.xml
  2. 2 2
      src/main/java/io/milvus/response/GetBulkInsertStateWrapper.java

+ 1 - 1
pom.xml

@@ -93,7 +93,7 @@
         <jackson.version>2.12.7.1</jackson.version>
         <gson.version>2.9.0</gson.version>
         <kotlin.version>1.6.0</kotlin.version>
-        <version.fastjson>1.2.76</version.fastjson>
+        <version.fastjson>1.2.83</version.fastjson>
     </properties>
 
     <dependencyManagement>

+ 2 - 2
src/main/java/io/milvus/response/GetBulkInsertStateWrapper.java

@@ -37,8 +37,8 @@ public class GetBulkInsertStateWrapper {
      */
     public List<Long> getAutoGeneratedIDs() {
         // the id list of response is id ranges
-        // for example, if the response return [1, 100, 200, 250]
-        // the full id list should be [1, 2, 3 ... , 99, 100, 200, 201, 202 ... , 249, 250]
+        // for example, if the response return [1, 100, 200, 250], the id ranges are [1, 100), [200, 250)
+        // the full id list should be [1, 2, 3 ... , 99, 200, 201, 202 ... , 249]
         List<Long> ranges = response.getIdListList();
         if (ranges.size()%2 != 0) {
             throw new IllegalResponseException("The bulk insert state response id range list is illegal");