[
https://issues.apache.org/jira/browse/KUDU-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grant Henke updated KUDU-1223:
------------------------------
Labels: supportability (was: )
> [java client] Throw a CME when a session is being used by multiple threads
> --------------------------------------------------------------------------
>
> Key: KUDU-1223
> URL: https://issues.apache.org/jira/browse/KUDU-1223
> Project: Kudu
> Issue Type: Improvement
> Affects Versions: Public beta
> Reporter: Jean-Daniel Cryans
> Priority: Major
> Labels: supportability
>
> From [~tlipcon]:
> {quote}
> could we add an operation count to the AsyncKuduSession that ensures that it
> isn't used from multiple threads? eg when entering each method, increment
> some integer counter, and then on leaving the method, ensure that no one else
> has touched in in the meantime, throwing ConcurrentModificationException if
> so? Seems like this is a likely mistake people will make.
> {quote}
> Since there's already some concurrency in the session (like when operations
> are in lookup), it's not as straightforward as just adding a counter.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)