cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Dumont (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-14005) CqlBulkRecordWriter swallows exceptions
Date Thu, 09 Nov 2017 03:00:11 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-14005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vincent Dumont updated CASSANDRA-14005:
---------------------------------------
    Description: 
The close() method in CqlBulkRecordWriter has the following:

{code}
                try
                {
                    future.get(1000, TimeUnit.MILLISECONDS);
                    break;
                }
                catch (ExecutionException | TimeoutException te)
                {
                    if (null != progress)
                        progress.progress();
                    if (null != context)
                        HadoopCompat.progress(context);
                }
                catch (InterruptedException e)
                {
                    throw new IOException(e);
                }
{/code}

And so any exception that happens when uploading SSTables silently gets swallowed and not
surfaced.

  was:
The close() method in CqlBulkRecordWriter has the following:

                {{try
                {
                    future.get(1000, TimeUnit.MILLISECONDS);
                    break;
                }
                catch (ExecutionException | TimeoutException te)
                {
                    if (null != progress)
                        progress.progress();
                    if (null != context)
                        HadoopCompat.progress(context);
                }
                catch (InterruptedException e)
                {
                    throw new IOException(e);
                }}}


And so any exception that happens when uploading SSTables silently gets swallowed and not
surfaced.


> CqlBulkRecordWriter swallows exceptions
> ---------------------------------------
>
>                 Key: CASSANDRA-14005
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14005
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>            Reporter: Vincent Dumont
>
> The close() method in CqlBulkRecordWriter has the following:
> {code}
>                 try
>                 {
>                     future.get(1000, TimeUnit.MILLISECONDS);
>                     break;
>                 }
>                 catch (ExecutionException | TimeoutException te)
>                 {
>                     if (null != progress)
>                         progress.progress();
>                     if (null != context)
>                         HadoopCompat.progress(context);
>                 }
>                 catch (InterruptedException e)
>                 {
>                     throw new IOException(e);
>                 }
> {/code}
> And so any exception that happens when uploading SSTables silently gets swallowed and
not surfaced.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message