Re: HashMap warning when using PutAll()

2020-06-18 Thread Ilya Kasnacheev
Hello! If your Map is a singleton (only one pair) the warning should not be printed :) Regards, -- Ilya Kasnacheev ср, 17 июн. 2020 г. в 23:22, Raymond Wilson : > Hi Ilya, > > Thank you for the SortedDictionary pointer. > > I am not sure what you mean by 'size-1 collections'. Is there an

Re: HashMap warning when using PutAll()

2020-06-17 Thread Raymond Wilson
Hi Ilya, Thank you for the SortedDictionary pointer. I am not sure what you mean by 'size-1 collections'. Is there an issue here that requires fixing in Ignite, or just the use of SortedDIctionary in my client code? Thanks, Raymond. On Thu, Jun 18, 2020 at 3:45 AM Ilya Kasnacheev wrote: >

Re: HashMap warning when using PutAll()

2020-06-17 Thread Ilya Kasnacheev
Hello! The warning should not be issued for size-1 collections. In dotnet, you should use SortedDictionary with putAll. Regards, -- Ilya Kasnacheev сб, 13 июн. 2020 г. в 09:43, Raymond Wilson : > If the answer is that the consumer of the C# client should order the items > before calling

Re: HashMap warning when using PutAll()

2020-06-13 Thread Raymond Wilson
If the answer is that the consumer of the C# client should order the items before calling PutAll(), how does the consumer of the C# client ensure that is the case before calling PutAll()? On Sat, Jun 13, 2020 at 4:13 PM Raymond Wilson wrote: > Hi Evgenii, > > Thanks for the quick response and

Re: HashMap warning when using PutAll()

2020-06-12 Thread Raymond Wilson
Hi Evgenii, Thanks for the quick response and clarification :) Does this mean the C# client is looking at the collection provided to it and choosing treemap vs hashmap for an internal call to the Ignite Java layer based on whether the content of the collection provided is sorted? Thanks,

Re: HashMap warning when using PutAll()

2020-06-12 Thread Evgenii Zhuravlev
The same works for other operations too(like removeAll). Evgenii пт, 12 июн. 2020 г. в 07:22, Evgenii Zhuravlev : > Raymond, > > Collections used in putAll should be sorted, because otherwise if they > have the same entries but in a different order, it can lead to the classic > deadlock. It is

Re: HashMap warning when using PutAll()

2020-06-12 Thread Evgenii Zhuravlev
Raymond, Collections used in putAll should be sorted, because otherwise if they have the same entries but in a different order, it can lead to the classic deadlock. It is expected behavior. Best Regards, Evgenii чт, 11 июн. 2020 г. в 21:38, Raymond Wilson : > We are using Ignite v2.8.0 and the

HashMap warning when using PutAll()

2020-06-11 Thread Raymond Wilson
We are using Ignite v2.8.0 and the C# client. Some of our operations use PutAll() to save a collection of items in a single operation. This operation is emitting the following warning into the log: 2020-06-10 15:04:14,199 [77] WRN [ImmutableClientServer] Unordered map java.util.HashMap is used