You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Dan Burkert (JIRA)" <ji...@apache.org> on 2017/03/13 21:32:41 UTC

[jira] [Created] (KUDU-1937) Java Client: missing required value errors are not reported in AUTO_FLUSH_SYNC mode

Dan Burkert created KUDU-1937:
---------------------------------

             Summary: Java Client: missing required value errors are not reported in AUTO_FLUSH_SYNC mode
                 Key: KUDU-1937
                 URL: https://issues.apache.org/jira/browse/KUDU-1937
             Project: Kudu
          Issue Type: Bug
          Components: java
    Affects Versions: 1.3.0
            Reporter: Dan Burkert


The following test fails only in AUTO_FLUSH_SYNC mode.

{code}
  @Test(timeout = 100000)
  public void testMissingRequiredValue() throws Exception {
    String tableName = name.getMethodName();
    table = createTable(tableName, basicSchema, getBasicCreateTableOptions());

    KuduSession session = syncClient.newSession();
    session.setFlushMode(SessionConfiguration.FlushMode.AUTO_FLUSH_SYNC);

    Insert insert = table.newInsert();
    insert.getRow().addInt("key", 0);
    session.apply(insert);
    session.flush();

    RowErrorsAndOverflowStatus errors = session.getPendingErrors();
    assertEquals(1, errors.getRowErrors().length);
  }
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)