[jira] [Created] (IGNITE-11817) org.apache.ignite.client.ClientCache#removeAll() and org.apache.ignite.client.ClientCache#clear missed Java Doc

2019-04-26 Thread kcheng.mvp (JIRA)
kcheng.mvp created IGNITE-11817:
---

 Summary: org.apache.ignite.client.ClientCache#removeAll() and 
org.apache.ignite.client.ClientCache#clear missed Java Doc
 Key: IGNITE-11817
 URL: https://issues.apache.org/jira/browse/IGNITE-11817
 Project: Ignite
  Issue Type: Improvement
  Components: thin client
Affects Versions: 2.7
Reporter: kcheng.mvp
Assignee: kcheng.mvp
 Fix For: 2.8


Use would be confused about the these api, need to address the difference in 
the java doc.
please see the mail list
http://apache-ignite-users.70518.x6.nabble.com/What-s-the-difference-between-ClientCache-removeAll-and-ClientCache-clear-td28002.html



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


java.lang.IllegalAccessError: tried to access field org.h2.util.LocalDateTimeUtils.LOCAL_DATE from class org.apache.ignite.internal.processors.query.h2.H2DatabaseType

2018-12-09 Thread kcheng.mvp


There are total 82 unite test for my system.

this unit test works well in ignite 2.6.

when I switch to ignite 2.7, I got below error for my unit tests

I logged a ticket here https://issues.apache.org/jira/browse/IGNITE-10612



java.lang.IllegalAccessError: tried to access field
org.h2.util.LocalDateTimeUtils.LOCAL_DATE from class
org.apache.ignite.internal.processors.query.h2.H2DatabaseType
at
org.apache.ignite.internal.processors.query.h2.H2DatabaseType.fromClass(H2DatabaseType.java:147)
at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.dbTypeFromClass(IgniteH2Indexing.java:2972)
at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.createTable(IgniteH2Indexing.java:2869)
at
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.registerType(IgniteH2Indexing.java:2809)
at
org.apache.ignite.internal.processors.query.GridQueryProcessor.registerCache0(GridQueryProcessor.java:1633)
at
org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart0(GridQueryProcessor.java:805)
at
org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart(GridQueryProcessor.java:866)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCache(GridCacheProcessor.java:1330)
at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:2165)
at
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.processCacheStartRequests(CacheAffinitySharedManager.java:898)
at
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.onCacheChangeRequest(CacheAffinitySharedManager.java:798)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onCacheChangeRequest(GridDhtPartitionsExchangeFuture.java:1231)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:738)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2667)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2539)
at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
at java.lang.Thread.run(Thread.java:748)
2018-12-10 11:47:21 INFO  o.a.i.i.p.c.d.d.p.GridDhtPartitionsExchangeFuture
- Finish exchange future [startVer=AffinityTopologyVersion [topVer=1,
minorTopVer=2], resVer=null, err=java.lang.IllegalAccessError: tried to
access field org.h2.util.LocalDateTimeUtils.LOCAL_DATE from class
org.apache.ignite.internal.processors.query.h2.H2DatabaseType]
2018-12-10 11:47:21 ERROR  - Critical system error detected. Will be handled
accordingly to configured handler [hnd=StopNodeOrHaltFailureHandler
[tryStop=false, timeout=0, super=AbstractFailureHandler
[ignoredFailureTypes=[SYSTEM_WORKER_BLOCKED]]], failureCtx=FailureContext
[type=SYSTEM_WORKER_TERMINATION, err=java.lang.AssertionError: Missing user
future for cache: GIFT]]
java.lang.AssertionError: Missing user future for cache: GIFT
at
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.rebuildIndexesIfNeeded(GridCacheDatabaseSharedManager.java:1364)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java:2151)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java:138)
at
org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:464)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:860)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2667)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2539)
at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
at java.lang.Thread.run(Thread.java:748)





--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


[jira] [Created] (IGNITE-10612) java.lang.IllegalAccessError: tried to access field org.h2.util.LocalDateTimeUtils.LOCAL_DATE from class org.apache.ignite.internal.processors.query.h2.H2DatabaseType

2018-12-09 Thread kcheng.mvp (JIRA)
kcheng.mvp created IGNITE-10612:
---

 Summary: java.lang.IllegalAccessError: tried to access field 
org.h2.util.LocalDateTimeUtils.LOCAL_DATE from class 
org.apache.ignite.internal.processors.query.h2.H2DatabaseType
 Key: IGNITE-10612
 URL: https://issues.apache.org/jira/browse/IGNITE-10612
 Project: Ignite
  Issue Type: Bug
  Components: cache
Affects Versions: 2.7
Reporter: kcheng.mvp


below is my environment

ignite 2.7

 

There are about 82 unit test for my system. it works fine in ignite 2.7

 

when I switch to 2.7 I got below error for my unit test.

 

 

 

java.lang.IllegalAccessError: tried to access field 
org.h2.util.LocalDateTimeUtils.LOCAL_DATE from class 
org.apache.ignite.internal.processors.query.h2.H2DatabaseType
 at 
org.apache.ignite.internal.processors.query.h2.H2DatabaseType.fromClass(H2DatabaseType.java:147)
 at 
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.dbTypeFromClass(IgniteH2Indexing.java:2972)
 at 
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.createTable(IgniteH2Indexing.java:2869)
 at 
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.registerType(IgniteH2Indexing.java:2809)
 at 
org.apache.ignite.internal.processors.query.GridQueryProcessor.registerCache0(GridQueryProcessor.java:1633)
 at 
org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart0(GridQueryProcessor.java:805)
 at 
org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart(GridQueryProcessor.java:866)
 at 
org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCache(GridCacheProcessor.java:1330)
 at 
org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:2165)
 at 
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.processCacheStartRequests(CacheAffinitySharedManager.java:898)
 at 
org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.onCacheChangeRequest(CacheAffinitySharedManager.java:798)
 at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onCacheChangeRequest(GridDhtPartitionsExchangeFuture.java:1231)
 at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:738)
 at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2667)
 at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2539)
 at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
 at java.lang.Thread.run(Thread.java:748)
2018-12-10 11:47:21 INFO o.a.i.i.p.c.d.d.p.GridDhtPartitionsExchangeFuture - 
Finish exchange future [startVer=AffinityTopologyVersion [topVer=1, 
minorTopVer=2], resVer=null, err=java.lang.IllegalAccessError: tried to access 
field org.h2.util.LocalDateTimeUtils.LOCAL_DATE from class 
org.apache.ignite.internal.processors.query.h2.H2DatabaseType]
2018-12-10 11:47:21 ERROR - Critical system error detected. Will be handled 
accordingly to configured handler [hnd=StopNodeOrHaltFailureHandler 
[tryStop=false, timeout=0, super=AbstractFailureHandler 
[ignoredFailureTypes=[SYSTEM_WORKER_BLOCKED]]], failureCtx=FailureContext 
[type=SYSTEM_WORKER_TERMINATION, err=java.lang.AssertionError: Missing user 
future for cache: GIFT]]
java.lang.AssertionError: Missing user future for cache: GIFT
 at 
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.rebuildIndexesIfNeeded(GridCacheDatabaseSharedManager.java:1364)
 at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java:2151)
 at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java:138)
 at 
org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:464)
 at 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:860)
 at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2667)
 at 
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2539)
 at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120)
 at java.lang.Thread.run(Thread.java:748)

 



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


[jira] [Created] (IGNITE-10501) javax.cache.CacheException: Failed to execute map query on the node: fddb7640-dc6b-467b-989f-7ea799710a52, class java.lang.ArrayIndexOutOfBoundsException:null

2018-12-01 Thread kcheng.mvp (JIRA)
kcheng.mvp created IGNITE-10501:
---

 Summary: javax.cache.CacheException: Failed to execute map query 
on the node: fddb7640-dc6b-467b-989f-7ea799710a52, class 
java.lang.ArrayIndexOutOfBoundsException:null
 Key: IGNITE-10501
 URL: https://issues.apache.org/jira/browse/IGNITE-10501
 Project: Ignite
  Issue Type: Bug
  Components: cache
Affects Versions: 2.6
Reporter: kcheng.mvp


Runs into this error,  with below sql

select u._key, u.nickName, u.photoUrl from USER_BASIC.user u, table(uid bigint 
= ?) tuids where u._key = tuids.uid

 

 

query = new SqlFieldsQuery(GET_USER_BASIC_INFO);
query.setArgs(createdByList.stream().toArray(Long[]::new));

 

when *createdByList* is an empty list, then above sql will run into error.

 

here is the full stack

 

 

Caused by: javax.cache.CacheException: Failed to execute map query on the node: 
fddb7640-dc6b-467b-989f-7ea799710a52, class 
java.lang.ArrayIndexOutOfBoundsException:null
 at 
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.fail(GridReduceQueryExecutor.java:274)
 at 
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.onFail(GridReduceQueryExecutor.java:264)
 at 
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.onMessage(GridReduceQueryExecutor.java:243)
 at 
org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor$2.onMessage(GridReduceQueryExecutor.java:187)
 at 
org.apache.ignite.internal.managers.communication.GridIoManager$ArrayListener.onMessage(GridIoManager.java:2333)
 at 
org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1556)
 at 
org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:1184)
 at 
org.apache.ignite.internal.managers.communication.GridIoManager.access$4200(GridIoManager.java:125)
 at 
org.apache.ignite.internal.managers.communication.GridIoManager$9.run(GridIoManager.java:1091)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

 

 

 



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


Re: java.lang.ClassCastException: org.apache.ignite.internal.pagemem.impl.PageMemoryNoStoreImpl cannot be cast to org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryEx

2018-09-23 Thread kcheng.mvp
 


please see the screenshot, I have three data region definition.

the default region persistence setting is false, the other two are true.



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: java.lang.ClassCastException: org.apache.ignite.internal.pagemem.impl.PageMemoryNoStoreImpl cannot be cast to org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryEx

2018-09-23 Thread kcheng.mvp
I am using springboot + ignite. it's very simple.
you can reproduce this issue with below code

Bean definition

-

@Bean
public CommandLineRunner commandLineRunner(@Autowired ApplicationContext
context) {
return args -> {
logger.info("Start ignite database ..");
logger.info("Region name is: {}", regionName);
IgniteSpringBean igniteSpringBean =
context.getBean("igniteSpringBean", IgniteSpringBean.class);

igniteSpringBean.active(true);
logger.info("Init ignite database ..");

CacheConfiguration cacheCfg = cacheCfg();
logger.info("Cache name is {}", cacheCfg.getName());
cacheCfg.setIndexedTypes(String.class, Article.class,
ArticleAffKey.class, Comment.class, CommentAffKey.class, Reply.class);
igniteSpringBean.getOrCreateCache(cacheCfg);
};
}

@Bean
public CacheConfiguration cacheCfg() {
CacheConfiguration cacheCfg = new CacheConfiguration<>(IgDef.DOCS);
cacheCfg.setBackups(1);
   
cacheCfg.setWriteSynchronizationMode(CacheWriteSynchronizationMode.PRIMARY_SYNC);
if
(!Arrays.asList(environment.getActiveProfiles()).contains("test")) {
cacheCfg.setDataRegionName(regionName);
}
return cacheCfg;
}


--

ignite.xml

-

http://www.springframework.org/schema/beans";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:util="http://www.springframework.org/schema/util";
   xsi:schemaLocation="http://www.springframework.org/schema/beans
   
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util
   
http://www.springframework.org/schema/util/spring-util.xsd";>






























































--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: About work around for https://issues.apache.org/jira/browse/IGNITE-5795

2018-09-23 Thread kcheng.mvp
Thank you very much!



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


java.lang.ClassCastException: org.apache.ignite.internal.pagemem.impl.PageMemoryNoStoreImpl cannot be cast to org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryEx

2018-09-23 Thread kcheng.mvp
I ran into this error with below configuration(IgniteSpringBean)

I set * defaultDataRegionConfiguration* as   * * for unit test. If I set this to
true then everything goes well.















   * *





   * *








   * *








here is the full error stack


Caused by: class org.apache.ignite.IgniteException: Failed to activate
cluster
at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:990)
at
org.apache.ignite.internal.cluster.IgniteClusterImpl.active(IgniteClusterImpl.java:315)
at 
org.apache.ignite.internal.IgniteKernal.active(IgniteKernal.java:3399)
at org.apache.ignite.IgniteSpringBean.active(IgniteSpringBean.java:615)
at
com.nfhd.data.Application.lambda$commandLineRunner$0(Application.java:90)
at
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:797)
... 30 more
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
activate cluster
Suppressed: java.lang.ClassCastException:
org.apache.ignite.internal.pagemem.impl.PageMemoryNoStoreImpl cannot be cast
to
org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryEx
at
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.getPageMemoryForCacheGroup(GridCacheDatabaseSharedManager.java:2154)
at
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.restoreMemory(GridCacheDatabaseSharedManager.java:2007)
at
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.restoreMemory(GridCacheDatabaseSharedManager.java:1929)
at
org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager.readCheckpointAndRestoreMemory(GridCacheDatabaseSharedManager.java:755)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onClusterStateChangeRequest(GridDhtPartitionsExchangeFuture.java:894)
at
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:641)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:2419)
at
org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2299)
at
org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at java.lang.Thread.run(Thread.java:748)




--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: About work around for https://issues.apache.org/jira/browse/IGNITE-5795

2018-09-18 Thread kcheng.mvp
I checked the source code just now and found *AffinityKey* is using
*@AffinityKeyMapped*
that's to  say *AffinityKey* has the same issue. 
am I right?



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


About work around for https://issues.apache.org/jira/browse/IGNITE-5795

2018-09-18 Thread kcheng.mvp
I ran into the same issue as
http://apache-ignite-users.70518.x6.nabble.com/SQL-SELECT-with-AffinityKeyMapped-no-results-td23141.html#a24232


from the document https://apacheignite.readme.io/docs/affinity-collocation,
there are two ways to achieve *Affinity*.  I would like to confirm that use
*AffinityKey* has the same issue or not?


Thanks.



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: how to use kafka 2.0 in ignite-kafka

2018-09-17 Thread kcheng.mvp
Thank you very much!
 I just wondering is there any way to decouple with the kafka version. As
right now it was bound tightly api call directly.



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


how to use kafka 2.0 in ignite-kafka

2018-09-16 Thread kcheng.mvp
Is there any plan to migrate kafka 2.0 in ignite-kafka?



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


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

2018-07-16 Thread kcheng.mvp
I checked the source code and found that this issue may be caused by this
line

org.apache.ignite.internal.processors.cache.GridCacheProcessor #1452

CacheEvictionManager evictMgr = (nearEnabled || cfg.isOnheapCacheEnabled())
? new GridCacheEvictionManager() : new CacheOffheapEvictionManager();

as in this case a new CacheOffheapEvictionManager() will return, but this
implementation does not do any eviction bean register/unregister, as there
are no any policy.

are my findings wrong?



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: PR Reivew https://github.com/apache/ignite/pull/4300

2018-07-12 Thread kcheng.mvp
Here is the latest TC result


The high-lighted part shows as  "no changes", which mean my changes would
not cause the failure, right?



https://ci.ignite.apache.org/viewLog.html?buildId=1480732&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_RunAll
 



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


PR Reivew https://github.com/apache/ignite/pull/4300

2018-07-10 Thread kcheng.mvp
Dear igniters,

please help do the code review for jira 
https://issues.apache.org/jira/browse/IGNITE-8776
https://github.com/apache/ignite/pull/4300

Thanks,
kcheng.mvp



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: Add cluster (de)activation events IGNITE-8376

2018-07-09 Thread kcheng.mvp
I left a comments on jira. can you  clarify it,please?



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: PR for https://issues.apache.org/jira/browse/IGNITE-8956

2018-07-08 Thread kcheng.mvp
Dear igniters,

does anyone can help do the code review?

As this ticket is created by myself, I need someone else to help me do the
code review.


Thanks,
kcmvp



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


PR for https://issues.apache.org/jira/browse/IGNITE-8956

2018-07-07 Thread kcheng.mvp
Hi Dmitriy Govorukhin,

I have fixed the javadoc error, can you please review the PR?



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


[jira] [Created] (IGNITE-8956) Javadoc Warnings:core/src/main/java/org/apache/ignite/internal/processors/cache/WalStateManager.java:1271: warning - @inheritDoc used but check() does not override or im

2018-07-06 Thread kcheng.mvp (JIRA)
kcheng.mvp created IGNITE-8956:
--

 Summary: Javadoc 
Warnings:core/src/main/java/org/apache/ignite/internal/processors/cache/WalStateManager.java:1271:
 warning - @inheritDoc used but check() does not override or implement any 
method.
 Key: IGNITE-8956
 URL: https://issues.apache.org/jira/browse/IGNITE-8956
 Project: Ignite
  Issue Type: Bug
Reporter: kcheng.mvp


Checked the history, seems it's caused by the checkin for 
https://issues.apache.org/jira/browse/IGNITE-8827



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


Re: Platform .NET (Core Linux) Exit code 1 (new) On TeamCity

2018-07-06 Thread kcheng.mvp
Eventually, everything is green!

https://ci.ignite.apache.org/viewLog.html?buildId=1462771&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_RunBasicTests


thank you all very much!



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: Platform .NET (Core Linux) Exit code 1 (new) On TeamCity

2018-07-06 Thread kcheng.mvp
In the console of TeamCity, I noticed some message


 Some dependencies of this build are hanging: … Platform .NET (Core Linux),
build #1094


it's hanging about 20 hours. is there anyway to cancel or stop it?



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Platform .NET (Core Linux) Exit code 1 (new) On TeamCity

2018-07-05 Thread kcheng.mvp
I have triggered my tests many times on TeamCity. every time I get the same
result.

Platform .NET (Core Linux)  pull/4300/head  #1109   Exit code 1 (new) 

https://ci.ignite.apache.org/viewLog.html?buildId=1460429&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_RunBasicTests.

I checked the history of 'Platform .NET (Core Linux) ' and found there are
many other build also runs into the same result.





--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Why GridCacheEvictionManager always use cfg.getEvictionPolicy/cfg.getEvictionPolicyFactory even there is NearEvictionPolicy configured?

2018-07-04 Thread kcheng.mvp
As the method
*org.apache.ignite.internal.processors.cache.GridCacheAdapter#isNear* always
returns false, it will make the near cache eviction policy don't take
effect. Here is the code from
*org.apache.ignite.internal.processors.cache.GridCacheEvictionManager#start0*.
is this an expected behavior ? 
==
CacheConfiguration cfg = cctx.config();

if (cctx.isNear()) {
plc = (cfg.getNearConfiguration().getNearEvictionPolicyFactory()
!= null) ?
   
(EvictionPolicy)cfg.getNearConfiguration().getNearEvictionPolicyFactory().create()
:
cfg.getNearConfiguration().getNearEvictionPolicy();
}
else if (cfg.getEvictionPolicyFactory() != null)
plc = (EvictionPolicy)cfg.getEvictionPolicyFactory().create();
else
plc = cfg.getEvictionPolicy();

plcEnabled = plc != null;

filter = cfg.getEvictionFilter();
==



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: is these correct?

2018-07-02 Thread kcheng.mvp
Hi dkarachentsev,


oh, my fault. I did not notice this part when I look through the document.

I am supposed to post such question to user mail list.


Thank you very much.



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Add cluster (de)activation events IGNITE-8376

2018-07-02 Thread kcheng.mvp
Dear igniters,I am going to pick up
https://issues.apache.org/jira/browse/IGNITE-8376, and did some research
based on the comments.based on my understanding, if we want to know this
action is triggered by which way(rest, mbean, auto or visocmd)  then we need
to change the core method's signature.I am not sure my understanding is
correct or not. Can anybody help to clarify this? Thank you very much.By the
way, I commented this in jira as well.Thanks youkcvmp



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/

Re: Please Subscribe me

2018-06-29 Thread kcheng.mvp
Thank you very much! I can see my post now.

by the way, can you take a look about my question?
http://apache-ignite-developers.2346864.n4.nabble.com/is-these-correct-td32111.html




--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


is these correct?

2018-06-29 Thread kcheng.mvp
here is the environment : 1 server node + 1 client node

executed below code
===
IgniteCache igniteCache =
igniteSpringBean.getOrCreateCache("HappyFlow");
igniteCache.put("hello", "hello1");
Assert.assertEquals("hello1",igniteCache.get("hello"));

for (int i = 0;i < 100; i ++) {
igniteCache.get("hello");
}
===

I got below screenshot in ignitevisorcmd.sh


 




--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: DiscoverySpi based on Apache ZooKeeper

2018-03-07 Thread kcheng.mvp
There is a section in the document
https://apacheignite.readme.io/docs/cluster-config#zookeeper-based-discovery. 

but I found below two tickets.

https://issues.apache.org/jira/browse/IGNITE-1203

https://issues.apache.org/jira/browse/IGNITE-7222

I am a bit confused about which version supports this feature.

mean while I found there are 3 open issues in this wiki page.


https://cwiki.apache.org/confluence/display/IGNITE/Discovery+SPI+by+ZooKeeper




--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: Caused by: class org.apache.ignite.internal.processors.query.IgniteSQLException: Failed to find SQL table for type: UserAppInfo

2017-12-08 Thread kcheng.mvp
thank you very much.

as I had the settings as below, ignite should have enough information to
figure out key and value type,right?

 @QuerySqlField(index = true) 
private String appId; 

@QuerySqlField(index = true) 
private String uid; 





--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: Are there any access control for ignite rest api

2017-12-08 Thread kcheng.mvp
Thank you, I will have a try



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Re: Caused by: class org.apache.ignite.internal.processors.query.IgniteSQLException: Failed to find SQL table for type: UserAppInfo

2017-12-02 Thread kcheng.mvp
by the way, here is my maven dependency.

the unit test starts two server node local and a client node.


org.apache.ignite
ignite-core
${ignite.version}



org.apache.ignite
ignite-spring
${ignite.version}



org.apache.ignite
ignite-indexing
${ignite.version}







--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


Caused by: class org.apache.ignite.internal.processors.query.IgniteSQLException: Failed to find SQL table for type: UserAppInfo

2017-12-02 Thread kcheng.mvp
I run into this issue, cache.put/cache.get works well. 

here is my configuration.

http://www.springframework.org/schema/beans";
xsi:schemaLocation=" http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
Main Spring file for ignite configuration.
  
  



  

  

  

  

  

  


  


  

  


  

  
  
  
  


  
  
  
  


  
  
  
  


  
  
  
  

  

  


  http://www.springframework.org/schema/util";
id="caches" value-type="org.apache.ignite.configuration.CacheConfiguration"
list-class="java.util.ArrayList">

  
  


  
  


  
  


  
  

  

  
  


  


UserAppInfo.java

public class UserAppInfo implements Serializable{
private static final long serialVersionUID = -6137971973241293268L;

@QuerySqlField(index = true)
private String appId;

@QuerySqlField(index = true)
private String uid;


@QuerySqlField
private String platform;


@QuerySqlField
private Date registerTime;

@QuerySqlField
private Date lastAuthTime;

@QuerySqlField
private Integer authCount;


public String getAppId() {
return appId;
}

public void setAppId(String appId) {
this.appId = appId;
}

public String getUid() {
return uid;
}

public void setUid(String uid) {
this.uid = uid;
}

public String getPlatform() {
return platform;
}

public void setPlatform(String platform) {
this.platform = platform;
}

public Date getRegisterTime() {
return registerTime;
}

public void setRegisterTime(Date registerTime) {
this.registerTime = registerTime;
}

public Date getLastAuthTime() {
return lastAuthTime;
}

public void setLastAuthTime(Date lastAuthTime) {
this.lastAuthTime = lastAuthTime;
}

public Integer getAuthCount() {
return authCount;
}

public void setAuthCount(Integer authCount) {
this.authCount = authCount;
}


@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

UserAppInfo that = (UserAppInfo) o;

if (appId != null ? !appId.equals(that.appId) : that.appId != null)
return false;
return uid != null ? uid.equals(that.uid) : that.uid == null;
}

@Override
public int hashCode() {
int result = appId != null ? appId.hashCode() : 0;
result = 31 * result + (uid != null ? uid.hashCode() : 0);
return result;
}

public AffinityKey affinityKey(){
return new AffinityKey(appId, uid);
}
}

3: test code

 @Test
public void happyFlow(){
UserAppInfo userAppInfo = dynamicUserAppInfo();
userAppInfoService.put(userAppInfo);
UserAppInfo userAppInfo1 =
userAppInfoService.get(userAppInfo.getAppId(), userAppInfo.getUid());
Assert.assertNotNull(userAppInfo1);
Assert.assertEquals(userAppInfo1, userAppInfo); //works well
SqlQuery sql = new SqlQuery(UserAppInfo.class, "appid =
?").setArgs(userAppInfo.getAppId());
   
userAppInfoService.getCache(PersistenceService.CacheName.USER_APP_INFO).query(sql);
// runs into the issue
}



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/


[jira] [Created] (IGNITE-3204) java.lang.NoClassDefFoundError: org/h2/constant/SysProperties

2016-05-26 Thread kcheng.mvp (JIRA)
kcheng.mvp created IGNITE-3204:
--

 Summary: java.lang.NoClassDefFoundError: 
org/h2/constant/SysProperties
 Key: IGNITE-3204
 URL: https://issues.apache.org/jira/browse/IGNITE-3204
 Project: Ignite
  Issue Type: Bug
  Components: cache
Affects Versions: 1.6
Reporter: kcheng.mvp
Assignee: kcheng.mvp


Hi All,

I ran into above issue. here is the error stack


Caused by: java.lang.NoClassDefFoundError: org/h2/constant/SysProperties
at 
org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.start(IgniteH2Indexing.java:1487)
 ~[ignite-indexing-1.6.0.jar:1.6.0]
at 
org.apache.ignite.internal.processors.query.GridQueryProcessor.start(GridQueryProcessor.java:171)
 ~[ignite-core-1.6.0.jar:1.6.0]
at 
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1549) 
~[ignite-core-1.6.0.jar:1.6.0]
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:869) 
~[ignite-core-1.6.0.jar:1.6.0]
at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1736)
 ~[ignite-core-1.6.0.jar:1.6.0]
at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1589)
 ~[ignite-core-1.6.0.jar:1.6.0]
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1042) 
~[ignite-core-1.6.0.jar:1.6.0]
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:549) 
~[ignite-core-1.6.0.jar:1.6.0]
at org.apache.ignite.IgniteSpring.start(IgniteSpring.java:66) 
~[ignite-spring-1.6.0.jar:1.6.0]
at 
org.apache.ignite.IgniteSpringBean.afterPropertiesSet(IgniteSpringBean.java:128)
 ~[ignite-spring-1.6.0.jar:1.6.0]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
 ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
 ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
... 21 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.h2.constant.SysProperties
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) 
~[na:1.8.0_77]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_77]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) 
~[na:1.8.0_77]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_77]


I am using v1.6.0


org.apache.ignite
ignite-core
${ignite.version}


org.apache.ignite
ignite-spring
${ignite.version}


org.apache.ignite
ignite-indexing
${ignite.version}


below is the dependency tree
[INFO] +- org.apache.ignite:ignite-core:jar:1.6.0:compile
[INFO] |  +- javax.cache:cache-api:jar:1.0.0:compile
[INFO] |  \- org.gridgain:ignite-shmem:jar:1.0.0:compile
[INFO] +- org.apache.ignite:ignite-spring:jar:1.6.0:compile
[INFO] |  +- org.springframework:spring-core:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.springframework:spring-aop:jar:4.2.6.RELEASE:compile
[INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
[INFO] |  +- org.springframework:spring-beans:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.springframework:spring-context:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.springframework:spring-expression:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.springframework:spring-tx:jar:4.2.6.RELEASE:compile
[INFO] |  +- org.springframework:spring-jdbc:jar:4.2.6.RELEASE:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] \- org.apache.ignite:ignite-indexing:jar:1.6.0:compile
[INFO]+- commons-codec:commons-codec:jar:1.6:compile
[INFO]+- org.apache.lucene:lucene-core:jar:3.5.0:compile
[INFO]\- com.h2database:h2:jar:1.4.191:compile




I check there is no org/h2/constant/SysProperties, on the contrary 
there is org.h2.engine.SysProperties





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Created] (IGNITE-1290) Build Failure with java version "1.8.0_40"

2015-08-24 Thread kcheng.mvp (JIRA)
kcheng.mvp created IGNITE-1290:
--

 Summary: Build Failure with java version "1.8.0_40"
 Key: IGNITE-1290
 URL: https://issues.apache.org/jira/browse/IGNITE-1290
 Project: Ignite
  Issue Type: Bug
  Components: cache
 Environment: 1: mac os
2: java
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
3: master branch 

    Reporter: kcheng.mvp


{code}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on 
project ignite-indexing: Compilation failure: Compilation failure:
[ERROR] 
/Users/kcheng/sandbox/ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlQueryParser.java:[567,35]
 reference to Parameter is ambiguous
[ERROR] both class java.lang.reflect.Parameter in java.lang.reflect and class 
org.h2.expression.Parameter in org.h2.expression match
[ERROR] 
/Users/kcheng/sandbox/ignite/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/sql/GridSqlQueryParser.java:[568,43]
 reference to Parameter is ambiguous
[ERROR] both class java.lang.reflect.Parameter in java.lang.reflect and class 
org.h2.expression.Parameter in org.h2.expression match
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :ignite-indexing
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)