cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Williams (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-7459) CqlRecordWriter doesn't close socket connections
Date Thu, 26 Jun 2014 23:48:24 GMT


Peter Williams commented on CASSANDRA-7459:

The attached patch is pretty simple, it just calls the existing `closeInternal` method before
shutting down the client thread.

> CqlRecordWriter doesn't close socket connections
> ------------------------------------------------
>                 Key: CASSANDRA-7459
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Peter Williams
>             Fix For: 2.0.9
>         Attachments: cassandra-2.0-7459.txt
> Using spark with `CqlOutputFormat` results in thousands of open connections to cassandra
(and then crashes unless they get garbage collected fast enough). This is because  each save
to cassandra task creates a `CqlRecordWriter` which opens a bunch of connections but calling
close on those writers does not actually close their socket connections to cassandra.

This message was sent by Atlassian JIRA

View raw message