Re: Problem with dropping the index

2021-07-06 Thread ткаленко кирилл
>> Can you clarify what it means to rename root index trees ? Replacing org.apache.ignite.internal.processors.cache.persistence.IndexStorageImpl.IndexItem, changing IndexItem#idxName, but keeping fIndexItem#pageId. Suggested solution is not suitable for the situation: add index -> drop index

Re: IEP-76 Thin Client Protocol for Ignite 3.0

2021-07-06 Thread Valentin Kulichenko
The proposal looks good to me. -Val On Tue, Jul 6, 2021 at 2:24 AM Ivan Daschinsky wrote: > I suppose, that general idea is great. Some details are missing, but I > suppose during implementation of clients we will add more details and > redefine some parts. > > вт, 6 июл. 2021 г., 09:59 Pavel

[MTCGA]: new failures in builds [6071614] needs to be handled

2021-07-06 Thread dpavlov . tasks
Hi Igniters, I've detected some new issue on TeamCity to be handled. You are more than welcomed to help. *Test with high flaky rate in master ZookeeperDiscoveryConcurrentStartAndStartStopTest.testConcurrentStartStop2

Re: MOVING Partitions and Rebalancing

2021-07-06 Thread Atri Sharma
Gentle ping. Please help with context here. On Mon, 5 Jul 2021, 13:03 Atri Sharma, wrote: > Hi All, > > As part of the text queries overhaul effort, I am looking into the > following ticket: > > https://issues.apache.org/jira/browse/IGNITE-12401 > > As I understand it, the problem lies in the

Re: Ignite 3.0 Tuple API: how to check if value is null?

2021-07-06 Thread Valentin Kulichenko
Pavel, Optionals are available in Java and we can use them. This is still boxing though, and I don't know what the performance impact would be. In addition, optional API is redundant for non-nullable fields. Perhaps, we can provide both options (e.g. having intValue() and intValueOptional()

Re: Ignite 3.0 Tuple API: how to check if value is null?

2021-07-06 Thread Ivan Daschinsky
> Out of curiosity, what would this code do if the value is NULL? What is the type of the 'weight' variable? float of course. https://www.c-sharpcorner.com/article/out-parameter-in-c-sharp-7/ вт, 6 июл. 2021 г., 22:30 Valentin Kulichenko : > Pavel, > > Optionals are available in Java and we

Re: Ignite 3.0 Tuple API: how to check if value is null?

2021-07-06 Thread Valentin Kulichenko
So what happens if the value is NULL? Exception? -Val On Tue, Jul 6, 2021 at 1:52 PM Ivan Daschinsky wrote: > > Out of curiosity, what would this code do if the value is NULL? What is > the > type of the 'weight' variable? > > float of course. >

Re: Ignite 3.0 Tuple API: how to check if value is null?

2021-07-06 Thread Ivan Daschinsky
Sorry, but what is wrong with simple method isNull() вт, 6 июл. 2021 г., 09:55 Pavel Tupitsyn : > Val, > > > I don't think there is a significantly better way > > of doing this in Java. > > Yep looks like there is no way to return two values without boxing. > No ref, no out, no value types. > >

Re: IEP-76 Thin Client Protocol for Ignite 3.0

2021-07-06 Thread Pavel Tupitsyn
Ivan, Val, and others - are there any open objections or questions? Can we accept the proposal? On Mon, Jul 5, 2021 at 1:28 PM Pavel Tupitsyn wrote: > Igniters, > > I've updated the IEP to support "Live Schema" [1] from IEP-54. > Some operations now have schemaless variants, where tuples are

Re: Ignite 3.0 Tuple API: how to check if value is null?

2021-07-06 Thread Pavel Tupitsyn
Val, > I don't think there is a significantly better way > of doing this in Java. Yep looks like there is no way to return two values without boxing. No ref, no out, no value types. > Schema already provides this information, doesn't it? It does, though we don't have an agreement on how to

Re: Ignite 3.0 Tuple API: how to check if value is null?

2021-07-06 Thread Pavel Tupitsyn
Ivan, Nothing wrong except for performance concerns. The following code looks up the column by name twice: if (!tuple.isNull("weight")) doSomething(tuple.floatValue("weight")) Whereas in other languages you could do it in one shot: if (tuple.TryGetFloatValue("weight", out var weight))

Data out of sync between maillist and nabble.com

2021-07-06 Thread 18624049226
Hi team, It seems that since mid June, the data between maillist and nabble.com is no longer synchronized, which affects the user experience. Is this a configuration error, or is a rule changed?

[ANNOUNCE] Apache Ignite spring-data-all-ext extensions 1.0.0 released

2021-07-06 Thread Nikita Amelchev
The Apache Ignite Community is pleased to announce the release of Apache Ignite Spring Data extensions 1.0.0. The following integrations were migrated to the Apache Ignite Extensions repository: - Spring Data 2.2 extension. - Spring Data 2.0 extension. - Spring Data extension. Release notes:

[ANNOUNCE] Apache Ignite performance-statistics-ext extension 1.0.0 released

2021-07-06 Thread Nikita Amelchev
The Apache Ignite Community is pleased to announce the release of Apache Ignite Performance Statistics extension 1.0.0. Apache Ignite provides a built-in tool for cluster profiling: https://ignite.apache.org/docs/2.10.0/monitoring-metrics/performance-statistics The extension provides utilities

Re: Ignite 3.0 Tuple API: how to check if value is null?

2021-07-06 Thread Ivan Daschinsky
Function basically returns two values. if value is null, it returns smth like false, NaN, otherwise ,smth like true, 4.5. Syntax is a bit weird as for me, but it is better than nothing. In golang it looks like this: if isValid, val:= getVal; isValid { } ср, 7 июл. 2021 г., 00:28

Re: Defrag?

2021-07-06 Thread Vladimir Steshin
            Hi, Ryan. Current implementation doesn’t share free pages among cache partitions when persistence is enabled. This happens because page is bound to certain partition file and cannot be ‘moved’ and reused in another partition. And there is no share of free pages among caches. Each

Re: Ignite 3.0 Tuple API: how to check if value is null?

2021-07-06 Thread Ivan Daschinsky
Ah, I see, you meant Optionals family. Yep, it is worth to think about. вт, 6 июл. 2021 г., 10:06 Pavel Tupitsyn : > Ivan, > > Nothing wrong except for performance concerns. > The following code looks up the column by name twice: > > if (!tuple.isNull("weight")) >

Re: IEP-76 Thin Client Protocol for Ignite 3.0

2021-07-06 Thread Ivan Daschinsky
I suppose, that general idea is great. Some details are missing, but I suppose during implementation of clients we will add more details and redefine some parts. вт, 6 июл. 2021 г., 09:59 Pavel Tupitsyn : > Ivan, Val, and others - are there any open objections or questions? > Can we accept the

Problem with dropping the index

2021-07-06 Thread ткаленко кирилл
Hello everyone! Currently, dropping indexes consists of the following steps (based on SchemaAbstractDiscoveryMessage's): Step 1: Removing the index from the SQL engine and starting DurableBackgroundCleanupIndexTreeTask, which removes the index trees in the background; Step 1.1:

Re: Problem with dropping the index

2021-07-06 Thread Alexei Scherbakov
Can you clarify what it means to rename root index trees ? The simple solution which immediately comes to me is 1) write logical record on index creation - on reading it create an index during logical recovery 2) write logical record on index deletion - on reading it delete an index during