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

jmark99 pushed a commit to branch sampexpfix
in repository https://gitbox.apache.org/repos/asf/accumulo-examples.git

commit b5ebce40f7ec7ec157f91b3d758db1d2024a1c28
Author: Mark Owens <jmar...@apache.org>
AuthorDate: Mon Feb 27 12:55:42 2023 -0500

    Add flush command following use of batchwriter
    
    Add a flush command following use of batchWriter addMutaion command in
    SampleExample.java.
---
 src/main/java/org/apache/accumulo/examples/sample/SampleExample.java | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/src/main/java/org/apache/accumulo/examples/sample/SampleExample.java 
b/src/main/java/org/apache/accumulo/examples/sample/SampleExample.java
index 2e27811..6b5e3c8 100644
--- a/src/main/java/org/apache/accumulo/examples/sample/SampleExample.java
+++ b/src/main/java/org/apache/accumulo/examples/sample/SampleExample.java
@@ -111,6 +111,7 @@ public class SampleExample {
         // update a document in the sample data
         bw.addMutation(createMutation("2317", "milk, eggs, bread, 
parmigiano-reggiano, butter",
             "file://groceries/9/txt"));
+        bw.flush();
 
         System.out.println(
             "Scanning sample after updating content for docId 2317 (should see 
content change in sample data) : ");

Reply via email to