keith-turner opened a new issue #1286: Bulk importing empty directory resulted 
in error
URL: https://github.com/apache/accumulo/issues/1286
 
 
   I accidentally bulk imported a directory that I had previously imported.  So 
the directory had no files in it.  I saw the following in the shell.   I am 
thinking it should not be an error in this case.  If we actually want an error 
for zero files, then it should be a nice clear error message.
   
   ```
   root@muchos ci> importdirectory /tmp/bt/1/files true
   2019-07-23 16:37:22,511 [shell.Shell] ERROR: 
org.apache.accumulo.core.client.AccumuloException: Internal error processing 
waitForFateOperation
   ```
   
   I saw the following in the master logs.
   
   ```
   2019-07-23 16:37:29,937 [thrift.ProcessFunction] ERROR: Internal error 
processing waitForFateOperation
   com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: 
Expected BEGIN_OBJECT but was END_ARRAY at line 1 column 3 path $[0]
           at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
           at com.google.gson.Gson.fromJson(Gson.java:927)
           at 
org.apache.accumulo.core.clientImpl.bulk.LoadMappingIterator.next(LoadMappingIterator.java:73)
           at 
org.apache.accumulo.core.clientImpl.bulk.LoadMappingIterator.next(LoadMappingIterator.java:40)
           at 
com.google.common.collect.TransformedIterator.next(TransformedIterator.java:47)
           at 
org.apache.accumulo.master.tableOps.bulkVer2.PrepBulkImport.checkForMerge(PrepBulkImport.java:108)
           at 
org.apache.accumulo.master.tableOps.bulkVer2.PrepBulkImport.checkForMerge(PrepBulkImport.java:167)
           at 
org.apache.accumulo.master.tableOps.bulkVer2.PrepBulkImport.call(PrepBulkImport.java:175)
           at 
org.apache.accumulo.master.tableOps.bulkVer2.PrepBulkImport.call(PrepBulkImport.java:68)
           at 
org.apache.accumulo.master.tableOps.TraceRepo.call(TraceRepo.java:49)
           at org.apache.accumulo.fate.Fate$TransactionRunner.run(Fate.java:76)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at 
org.apache.accumulo.fate.util.LoggingRunnable.run(LoggingRunnable.java:35)
           at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was 
END_ARRAY at line 1 column 3 path $[0]
           at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
           at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)
           ... 14 more
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to