You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Grant Henke (Jira)" <ji...@apache.org> on 2020/06/02 17:42:00 UTC
[jira] [Updated] (KUDU-1937) Java Client: missing required value
errors are not reported in AUTO_FLUSH_SYNC mode
[ https://issues.apache.org/jira/browse/KUDU-1937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grant Henke updated KUDU-1937:
------------------------------
Labels: beginner (was: )
> 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
> Priority: Major
> Labels: beginner
>
> 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
(v8.3.4#803005)