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)