[
https://issues.apache.org/jira/browse/IGNITE-23416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17982690#comment-17982690
]
Ignite TC Bot commented on IGNITE-23416:
----------------------------------------
{panel:title=Branch: [pull/12128/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/12128/head] Base: [master] : New Tests
(8)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Thin Client: Java{color} [[tests
8|https://ci2.ignite.apache.org/viewLog.html?buildId=8484481]]
* {color:#013220}ClientTestSuite:
ClientOrderedCollectionWarnTest.testPutAllExplicitPessimistic - PASSED{color}
* {color:#013220}ClientTestSuite:
ClientOrderedCollectionWarnTest.testPutAllExplicitOptimistic - PASSED{color}
* {color:#013220}ClientTestSuite: ClientOrderedCollectionWarnTest.testGetAll -
PASSED{color}
* {color:#013220}ClientTestSuite:
ClientOrderedCollectionWarnTest.testInvokeAllWarn - PASSED{color}
* {color:#013220}ClientTestSuite: ClientOrderedCollectionWarnTest.testInvokeAll
- PASSED{color}
* {color:#013220}ClientTestSuite:
ClientOrderedCollectionWarnTest.testPutAllWarn - PASSED{color}
* {color:#013220}ClientTestSuite: ClientOrderedCollectionWarnTest.testRemoveAll
- PASSED{color}
* {color:#013220}ClientTestSuite: ClientOrderedCollectionWarnTest.testPutAll -
PASSED{color}
{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=8484504&buildTypeId=IgniteTests24Java8_RunAll]
> Ignite logs that ClientCache#putAll uses unordered map
> ------------------------------------------------------
>
> Key: IGNITE-23416
> URL: https://issues.apache.org/jira/browse/IGNITE-23416
> Project: Ignite
> Issue Type: Bug
> Reporter: Maksim Timonin
> Assignee: Maksim Davydov
> Priority: Minor
> Labels: ise
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Even if user puts TreeSet to ClientCache#putAll to transactional cache it
> logs warning that map is unordered.
> {code:java}
> [2024-10-13T15:53:34,892][WARN
> ]client-connector-#76%ignite.MyTest%[GridDhtColocatedCache] <default>
> Unordered map java.util.LinkedHashMap is used for putAll operation on cache
> default. This can lead to a distributed deadlock. Switch to a sorted map like
> TreeMap instead.{code}
> To reproduce:
> {code:java}
> try (IgniteClient cln = Ignition.startClient(clnCfg) {
> ClientCache c = cln.createCache(new ClientCacheConfiguration()
> .setName(DEFAULT_CACHE_NAME)
> .setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL));
> Map<Integer, Integer> map = new TreeMap<>();
> map.put(0, 0);
> map.put(1, 1);
> c.putAll(map);
> }{code}
>
> Possible solutions:
> # Log the warn on client side only and skip warning on server side.
> # Send a type of map with `putAll`, but how to fill it on server side?
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)