cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Akhtar <>
Subject Deadlock in callbacks to async operations (Java)
Date Sat, 12 Nov 2016 12:41:49 GMT
At the docs say to not
do any blocking operations within the callback of an async operation. This
example is given as one that can cause a deadlock:

ListenableFuture<ResultSet> resultSet = Futures.transform(session,
    new Function<Session, ResultSet>() {
        public ResultSet apply(Session session) {
            // Synchronous operation in a callback.
            // DON'T DO THIS! It might deadlock.
            return session.execute("select release_version from

Will the above example work if instead of session.execute, it was doing

View raw message