Can you share a reproducer?

On Fri, Sep 16, 2022 at 3:13 PM Charlin S <[email protected]> wrote:

> Hi,
> Data loss is not possible, because some other time I am able to read data
> with the same key.
>
> FYI: data update not in our workflow(Please ignore my previous mail
> statement it is possible to update the cache by another process/workflow).
> Always data read only once cache inserted by key.
>
> Regards,
> Charlin
>
>
> On Fri, 16 Sept 2022 at 17:21, Pavel Tupitsyn <[email protected]>
> wrote:
>
>> Ok, so the issue is that the key is not present in the cache, and this is
>> not expected.
>> Data loss is possible if one of Ignite nodes goes down, and backups [1]
>> are not configured.
>> Please check server logs for errors.
>>
>> [1]
>> https://ignite.apache.org/docs/latest/configuring-caches/configuring-backups
>>
>> On Fri, Sep 16, 2022 at 2:38 PM Charlin S <[email protected]> wrote:
>>
>>> Hi,
>>> There is no exception and executing the else part. it is possible to
>>> update the cache by another process/workflow.
>>> //response is custom class object
>>> var model = (T)Activator.CreateInstance(typeof(T));
>>> IgniteCache.TryGet(Key, out var value);
>>>                     if (null != value)
>>>                     {
>>>                         model = (T)value;
>>>                         response.SingleObject = model;
>>>                         response.Status = true;
>>>                         response.StatusCode =
>>> System.Net.HttpStatusCode.OK;
>>>                     }
>>>                     else
>>>                     {
>>>                         response.Status = false;
>>>                         response.Message = "Given key " + Key + " not
>>> present in the cache.";
>>>                         response.StatusCode =
>>> System.Net.HttpStatusCode.NoContent;
>>>                     }
>>>
>>> Regards,
>>> Charlin
>>>
>>> On Fri, 16 Sept 2022 at 16:53, Pavel Tupitsyn <[email protected]>
>>> wrote:
>>>
>>>> Hi Charlin,
>>>>
>>>> Please provide full exception details.
>>>>
>>>> On Fri, Sep 16, 2022 at 2:04 PM Charlin S <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi All,
>>>>> Cache.TryGet failed to read intermittently and was unable to read some
>>>>> time later.
>>>>>
>>>>> having 3 server nodes and 11 client nodes. cache mode is partition and
>>>>> atomicitymode not been set.
>>>>>
>>>>> Regards,
>>>>> Charlin
>>>>>
>>>>>

Reply via email to