ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dean (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-7338) can get value by entry.getValue but cann't get value by cache.get(entry.getKey)
Date Fri, 29 Dec 2017 01:14:00 GMT

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

dean updated IGNITE-7338:
-------------------------
    Description: 
if(cacheName.equalsIgnoreCase("tariff-ccb_cdr_charge_rule")){
    CcbCdrChargeRuleKey ccbCdrChargeRuleKey = new CcbCdrChargeRuleKey();
    ccbCdrChargeRuleKey.setFileType("573");
    ccbCdrChargeRuleKey.setSourceType("5");
    Object cacheDate = ignite.cache(cacheName).get(ccbCdrChargeRuleKey);
    logger.debug(LogProperty.LOGTYPE_DETAIL, ccbCdrChargeRuleKey+"Object eKey:" + cacheDate
);
    ccbCdrChargeRuleKey.setFileType("1233");
    ccbCdrChargeRuleKey.setSourceType("14");
    Object cacheDate1 = ignite.cache(cacheName).get(ccbCdrChargeRuleKey);
    logger.debug(LogProperty.LOGTYPE_DETAIL, "Object1:" + cacheDate1      +"ccbCdrChargeRuleKey"+ccbCdrChargeRuleKey.hashCode());
    IgniteCache<Object, Object> cacheDate3 = ignite.cache(cacheName);
    for (Cache.Entry<Object, Object> e : cacheDate3) {	
         List<ICacheModel> cacheModelList = (List<ICacheModel>) cacheDate3.get(e.getKey());
        {color:#d04437}logger.debug(LogProperty.LOGTYPE_DETAIL,"e.getKey():"+e.getKey() +"
cacheModelList:" + cacheModelList );
        logger.debug(LogProperty.LOGTYPE_DETAIL,"e.getValue():"+e.getValue() );{color}
   }
}
results:
2017-12-2819:17:36,322||DEBUG||frame_thread_nodestart| com.newland.boss.cloud.commons.igniteclient.PlatformInitIgniteClient.test(PlatformInitIgniteClient.java:337)|
||||||||||||{color:#d04437}e.getKey():573,5 cacheModelList:null{color}
2017-12-2819:17:36,323||DEBUG||frame_thread_nodestart| com.newland.boss.cloud.commons.igniteclient.PlatformInitIgniteClient.test(PlatformInitIgniteClient.java:338)|
||||||||||||{color:#d04437}e.getValue():[CcbCdrChargeRule{ccbCdrChargeRuleKey=573,5, bizDomainCode='3',
conditionGroupId=999999999999, fileType='573', preProcessUnitClass='PreProcessGprs', priority=1,
rateItemTypes='6', ratingClass='RatingGprs', ruleDesc='国际出访GPRS 专网', sourceType='5',
userTariffClass='GetUserTariffInfoGprs', version='0.0.1'}]{color}

  was:
if(cacheName.equalsIgnoreCase("tariff-ccb_cdr_charge_rule")){
CcbCdrChargeRuleKey ccbCdrChargeRuleKey = new CcbCdrChargeRuleKey();
ccbCdrChargeRuleKey.setFileType("573");
ccbCdrChargeRuleKey.setSourceType("5");
Object cacheDate = ignite.cache(cacheName).get(ccbCdrChargeRuleKey);
logger.debug(LogProperty.LOGTYPE_DETAIL, ccbCdrChargeRuleKey+"Object eKey:" + cacheDate );
ccbCdrChargeRuleKey.setFileType("1233");
ccbCdrChargeRuleKey.setSourceType("14");
Object cacheDate1 = ignite.cache(cacheName).get(ccbCdrChargeRuleKey);
logger.debug(LogProperty.LOGTYPE_DETAIL, "Object1:" + cacheDate1 +"ccbCdrChargeRuleKey"+ccbCdrChargeRuleKey.hashCode());
IgniteCache<Object, Object> cacheDate3 = ignite.cache(cacheName);
for (Cache.Entry<Object, Object> e : cacheDate3) {	
List<ICacheModel> cacheModelList = (List<ICacheModel>) cacheDate3.get(e.getKey());
logger.debug(LogProperty.LOGTYPE_DETAIL,"e.getKey():"+e.getKey() +" cacheModelList:" + cacheModelList
);
logger.debug(LogProperty.LOGTYPE_DETAIL,"e.getValue():"+e.getValue() );
}
}
results:
2017-12-2819:17:36,322||DEBUG||frame_thread_nodestart| com.newland.boss.cloud.commons.igniteclient.PlatformInitIgniteClient.test(PlatformInitIgniteClient.java:337)|
||||||||||||e.getKey():573,5 cacheModelList:null
2017-12-2819:17:36,323||DEBUG||frame_thread_nodestart| com.newland.boss.cloud.commons.igniteclient.PlatformInitIgniteClient.test(PlatformInitIgniteClient.java:338)|
||||||||||||e.getValue():[CcbCdrChargeRule{ccbCdrChargeRuleKey=573,5, bizDomainCode='3', conditionGroupId=999999999999,
fileType='573', preProcessUnitClass='PreProcessGprs', priority=1, rateItemTypes='6', ratingClass='RatingGprs',
ruleDesc='国际出访GPRS 专网', sourceType='5', userTariffClass='GetUserTariffInfoGprs',
version='0.0.1'}]


> can get value by entry.getValue but cann't get value by cache.get(entry.getKey)
> -------------------------------------------------------------------------------
>
>                 Key: IGNITE-7338
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7338
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 1.9
>            Reporter: dean
>            Priority: Critical
>
> if(cacheName.equalsIgnoreCase("tariff-ccb_cdr_charge_rule")){
>     CcbCdrChargeRuleKey ccbCdrChargeRuleKey = new CcbCdrChargeRuleKey();
>     ccbCdrChargeRuleKey.setFileType("573");
>     ccbCdrChargeRuleKey.setSourceType("5");
>     Object cacheDate = ignite.cache(cacheName).get(ccbCdrChargeRuleKey);
>     logger.debug(LogProperty.LOGTYPE_DETAIL, ccbCdrChargeRuleKey+"Object eKey:" + cacheDate
);
>     ccbCdrChargeRuleKey.setFileType("1233");
>     ccbCdrChargeRuleKey.setSourceType("14");
>     Object cacheDate1 = ignite.cache(cacheName).get(ccbCdrChargeRuleKey);
>     logger.debug(LogProperty.LOGTYPE_DETAIL, "Object1:" + cacheDate1      +"ccbCdrChargeRuleKey"+ccbCdrChargeRuleKey.hashCode());
>     IgniteCache<Object, Object> cacheDate3 = ignite.cache(cacheName);
>     for (Cache.Entry<Object, Object> e : cacheDate3) {	
>          List<ICacheModel> cacheModelList = (List<ICacheModel>) cacheDate3.get(e.getKey());
>         {color:#d04437}logger.debug(LogProperty.LOGTYPE_DETAIL,"e.getKey():"+e.getKey()
+" cacheModelList:" + cacheModelList );
>         logger.debug(LogProperty.LOGTYPE_DETAIL,"e.getValue():"+e.getValue() );{color}
>    }
> }
> results:
> 2017-12-2819:17:36,322||DEBUG||frame_thread_nodestart| com.newland.boss.cloud.commons.igniteclient.PlatformInitIgniteClient.test(PlatformInitIgniteClient.java:337)|
||||||||||||{color:#d04437}e.getKey():573,5 cacheModelList:null{color}
> 2017-12-2819:17:36,323||DEBUG||frame_thread_nodestart| com.newland.boss.cloud.commons.igniteclient.PlatformInitIgniteClient.test(PlatformInitIgniteClient.java:338)|
||||||||||||{color:#d04437}e.getValue():[CcbCdrChargeRule{ccbCdrChargeRuleKey=573,5, bizDomainCode='3',
conditionGroupId=999999999999, fileType='573', preProcessUnitClass='PreProcessGprs', priority=1,
rateItemTypes='6', ratingClass='RatingGprs', ruleDesc='国际出访GPRS 专网', sourceType='5',
userTariffClass='GetUserTariffInfoGprs', version='0.0.1'}]{color}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message