[
https://issues.apache.org/jira/browse/CASSANDRA-10318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14744796#comment-14744796
]
Stefania commented on CASSANDRA-10318:
--------------------------------------
There is another problem in addition to the serialization interface change,
these two lines were also broken:
{code}
conn._callbacks[request_id] = partial(callback, current_record)
conn.deque.append(binary_message)
{code}
They must be replaced with:
{code}
conn._requests[request_id] = (partial(callback, current_record),
ProtocolHandler.decode_message)
conn.push(binary_message)
{code}
However, I think we can just call {{conn.send_msg}}.
[~aholmber] can you take a look at [this
commit|https://github.com/stef1927/cassandra/commit/439332ae64290b87a7abd8474b580f49af1d7959]
and confirm that {{conn.send_msg}} is equivalent to the code that is commented
out? (The cluster is created with DEFAULT_PROTOCOL_VERSION and no compression).
CI:
http://cassci.datastax.com/view/Dev/view/stef1927/job/stef1927-10318-3.0-dtest/
> Update cqlsh COPY for new internal driver serialization interface
> -----------------------------------------------------------------
>
> Key: CASSANDRA-10318
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10318
> Project: Cassandra
> Issue Type: Bug
> Reporter: Adam Holmberg
> Assignee: Stefania
> Fix For: 3.0.0 rc1
>
>
> A recent driver update changed some of the internal serialization interface.
> cqlsh relies on this for the copy command and will need to be updated.
> Previously used
> {code}
> cassandra.protocol.QueryMesage.to_binary
> {code}
> now should use
> {code}
> cassandra.protocol.ProtocolHandler.encode_message(...)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)