[jira] [Assigned] (IGNITE-12303) Change comment for an enumeration item CACHE_DESTROY

2019-11-05 Thread Albert Iskhakov (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-12303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Albert Iskhakov reassigned IGNITE-12303:


Assignee: Albert Iskhakov

> Change comment for an enumeration item CACHE_DESTROY
> 
>
> Key: IGNITE-12303
> URL: https://issues.apache.org/jira/browse/IGNITE-12303
> Project: Ignite
>  Issue Type: Wish
>  Components: documentation, security
>Reporter: Surkov Aleksandr
>Assignee: Albert Iskhakov
>Priority: Minor
>  Labels: newbie
>
> For the _org.apache.ignite.plugin.security.SecurityPermission#CACHE_DESTROY_ 
> enumeration element it would be worth changing the comment. "Cache create 
> permission." it's not very good.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Assigned] (IGNITE-12278) Add metric showing how many nodes may safely leave the cluster wihout partition loss

2019-11-05 Thread Albert Iskhakov (Jira)


 [ 
https://issues.apache.org/jira/browse/IGNITE-12278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Albert Iskhakov reassigned IGNITE-12278:


Assignee: Albert Iskhakov

> Add metric showing how many nodes may safely leave the cluster wihout 
> partition loss
> 
>
> Key: IGNITE-12278
> URL: https://issues.apache.org/jira/browse/IGNITE-12278
> Project: Ignite
>  Issue Type: Improvement
>Reporter: Ivan Rakov
>Assignee: Albert Iskhakov
>Priority: Major
>  Labels: IEP-35, newbie
> Fix For: 2.8
>
>
> We already have CacheGroupMetricsMXBean#getMinimumNumberOfPartitionCopies 
> metrics that shows partitions redundancy number for a specific cache group.
> It would be handy if user has single aggregated metric for all cache groups 
> showing how many nodes may leave the cluster without partition loss in any 
> cache.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Assigned] (IGNITE-10398) CacheMetrics always return 0 for local cache

2018-11-26 Thread Albert Iskhakov (JIRA)


 [ 
https://issues.apache.org/jira/browse/IGNITE-10398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Albert Iskhakov reassigned IGNITE-10398:


Assignee: Albert Iskhakov

> CacheMetrics always return 0 for local cache
> 
>
> Key: IGNITE-10398
> URL: https://issues.apache.org/jira/browse/IGNITE-10398
> Project: Ignite
>  Issue Type: Bug
>Reporter: Evgenii Zhuravlev
>Assignee: Albert Iskhakov
>Priority: Major
>
> However, it shows the right offHeapEntriesCnt.
> Short code snippet:
> {code:java}
> IgniteConfiguration igniteConfig = new IgniteConfiguration();
> CacheConfiguration cacheConfig = new CacheConfiguration("testCache");
> cacheConfig.setStatisticsEnabled(true);
> igniteConfig.setCacheConfiguration(cacheConfig);
> cacheConfig.setCacheMode(CacheMode.LOCAL);
> try (Ignite ignite = Ignition.start(igniteConfig)) {
> IgniteCache cache = ignite. String>getOrCreateCache(cacheConfig.getName());
> cache.put("key", "val");
> cache.put("key2", "val2");
> cache.remove("key2");
> System.out.println(cache.localMetrics());
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (IGNITE-10184) Missed TODO: IGNITE-5380 uncomment after fix

2018-11-20 Thread Albert Iskhakov (JIRA)


[ 
https://issues.apache.org/jira/browse/IGNITE-10184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16693006#comment-16693006
 ] 

Albert Iskhakov commented on IGNITE-10184:
--

[~dpavlov], I changed the ticket status.

> Missed TODO: IGNITE-5380 uncomment after fix
> 
>
> Key: IGNITE-10184
> URL: https://issues.apache.org/jira/browse/IGNITE-10184
> Project: Ignite
>  Issue Type: Test
>Reporter: Ryabov Dmitrii
>Assignee: Albert Iskhakov
>Priority: Trivial
>  Labels: newbie
> Fix For: 2.8
>
>
> Ticket is resolved, so test 
> {{SqlSchemaSelfTest._testTypeConflictInPublicSchema}} should be renamed 
> (remove "\_" symbol) and fixed - this test should check that second cache 
> creation throws exception about conflict in the schema.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (IGNITE-10265) PDOStatement::rowCount returns 0

2018-11-15 Thread Albert Iskhakov (JIRA)


[ 
https://issues.apache.org/jira/browse/IGNITE-10265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16687996#comment-16687996
 ] 

Albert Iskhakov commented on IGNITE-10265:
--

I suggest changing the issue type to "Wish" and lower the priority because the 
[PHP documentation|http://php.net/manual/en/pdostatement.rowcount.php] says 
that this behavior is not guaranteed by most databases.

> PDOStatement::rowCount returns 0
> 
>
> Key: IGNITE-10265
> URL: https://issues.apache.org/jira/browse/IGNITE-10265
> Project: Ignite
>  Issue Type: Bug
>  Components: odbc
>Affects Versions: 2.6
> Environment: CentOS, unixODBC
>Reporter: Roman Shtykh
>Priority: Major
>
> How to reproduce:
> {noformat}
> $ cat ~/odbc.php
>   
> try {
> echo PHP_EOL,PHP_EOL,"# Using PDO",PHP_EOL;
> $dbh = new PDO('odbc:DRIVER={ApacheIgnite};Server=127.0.0.1;PORT=10800');
> $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
>  
> $sql = 'SELECT * FROM "Person".Person';
> $statement = $dbh->prepare($sql);
> $statement->execute();
>  
> $data = $statement->fetchAll();
>  
> foreach($data as $row) {
> var_dump($row);
> }
>  
> echo "array Count : " . count($data) . "\n";
> echo "rowCount : " . $statement->rowCount() . "\n";
>  
> } catch (PDOException $e) {
> print "Error!: " . $e->getMessage() . "\n";
> die();
> }
>  
> $ php ~/odbc.php
>  
> # Using PDO
> array(10) {
>   ["ORGID"]=>
>   string(1) "1"
>   [0]=>
>   string(1) "1"
>   ["FIRSTNAME"]=>
>   string(4) "John"
>   [1]=>
>   string(4) "John"
>   ["LASTNAME"]=>
>   string(3) "Doe"
>   [2]=>
>   string(3) "Doe"
>   ["RESUME"]=>
>   string(14) "Master Degree."
>   [3]=>
>   string(14) "Master Degree."
>   ["SALARY"]=>
>   string(4) "2200"
>   [4]=>
>   string(4) "2200"
> }
> ・
> ・
> ・
> array(10) {
>   ["ORGID"]=>
>   string(1) "2"
>   [0]=>
>   string(1) "2"
>   ["FIRSTNAME"]=>
>   string(4) "Mary"
>   [1]=>
>   string(4) "Mary"
>   ["LASTNAME"]=>
>   string(5) "Major"
>   [2]=>
>   string(5) "Major"
>   ["RESUME"]=>
>   string(16) "Bachelor Degree."
>   [3]=>
>   string(16) "Bachelor Degree."
>   ["SALARY"]=>
>   string(4) "1200"
>   [4]=>
>   string(4) "1200"
> }
> array Count : 6
> rowCount : 0
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Assigned] (IGNITE-10184) Missed TODO: IGNITE-5380 uncomment after fix

2018-11-10 Thread Albert Iskhakov (JIRA)


 [ 
https://issues.apache.org/jira/browse/IGNITE-10184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Albert Iskhakov reassigned IGNITE-10184:


Assignee: Albert Iskhakov

> Missed TODO: IGNITE-5380 uncomment after fix
> 
>
> Key: IGNITE-10184
> URL: https://issues.apache.org/jira/browse/IGNITE-10184
> Project: Ignite
>  Issue Type: Test
>Reporter: Ryabov Dmitrii
>Assignee: Albert Iskhakov
>Priority: Trivial
>  Labels: newbie
> Fix For: 2.8
>
>
> Ticket is resolved, so test 
> {{SqlSchemaSelfTest._testTypeConflictInPublicSchema}} should be renamed 
> (remove "\_" symbol) and fixed - this test should check that second cache 
> creation throws exception about conflict in the schema.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)