[jira] [Commented] (IGNITE-3810) FileSwapSpaceSpi can hang when large value is written

2016-09-14 Thread Dmitriy Govorukhin (JIRA)

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

Dmitriy Govorukhin commented on IGNITE-3810:


[~sboikov] fix is ready in 
[ignite-3810|https://github.com/gridgain/apache-ignite/tree/ignite-3810]

> FileSwapSpaceSpi can hang when large value is written
> -
>
> Key: IGNITE-3810
> URL: https://issues.apache.org/jira/browse/IGNITE-3810
> Project: Ignite
>  Issue Type: Bug
>  Components: swap
>Affects Versions: 1.7
>Reporter: Valentin Kulichenko
>Assignee: Dmitriy Govorukhin
> Fix For: 1.8
>
> Attachments: SwapSpaceTest.java
>
>
> Test reproducing the issue is attached.
> Weirdly, the value of size {{1024 * 1024 - 48}} is successfully written, but 
> when it is only one byte bigger, the swap space hangs.



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


[jira] [Commented] (IGNITE-3810) FileSwapSpaceSpi can hang when large value is written

2016-09-14 Thread Dmitriy Govorukhin (JIRA)

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

Dmitriy Govorukhin commented on IGNITE-3810:


Got it, I will prepare six soon.

> FileSwapSpaceSpi can hang when large value is written
> -
>
> Key: IGNITE-3810
> URL: https://issues.apache.org/jira/browse/IGNITE-3810
> Project: Ignite
>  Issue Type: Bug
>  Components: swap
>Affects Versions: 1.7
>Reporter: Valentin Kulichenko
>Assignee: Dmitriy Govorukhin
> Fix For: 1.8
>
> Attachments: SwapSpaceTest.java
>
>
> Test reproducing the issue is attached.
> Weirdly, the value of size {{1024 * 1024 - 48}} is successfully written, but 
> when it is only one byte bigger, the swap space hangs.



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


[jira] [Commented] (IGNITE-3810) FileSwapSpaceSpi can hang when large value is written

2016-09-14 Thread Semen Boikov (JIRA)

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

Semen Boikov commented on IGNITE-3810:
--

As I understand the purpose of 'maxWriteQueueSize' is throttling (avoid file 
writer overload when there are to many writes), it defenetely should not case 
hangs. We can fix it this way: if value size is large than 'maxWriteQueueSize' 
print warning that this paremeter should be increased, then such large values 
should just wait when write queue is empty.

> FileSwapSpaceSpi can hang when large value is written
> -
>
> Key: IGNITE-3810
> URL: https://issues.apache.org/jira/browse/IGNITE-3810
> Project: Ignite
>  Issue Type: Bug
>  Components: swap
>Affects Versions: 1.7
>Reporter: Valentin Kulichenko
>Assignee: Dmitriy Govorukhin
> Fix For: 1.8
>
> Attachments: SwapSpaceTest.java
>
>
> Test reproducing the issue is attached.
> Weirdly, the value of size {{1024 * 1024 - 48}} is successfully written, but 
> when it is only one byte bigger, the swap space hangs.



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


[jira] [Commented] (IGNITE-3810) FileSwapSpaceSpi can hang when large value is written

2016-09-13 Thread Valentin Kulichenko (JIRA)

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

Valentin Kulichenko commented on IGNITE-3810:
-

Dmitriy, can we automatically increase the queue size in this case? This 
definitely should not hang. At the very least we should throw an exception with 
a proper message, but this is not good either because the fix will require full 
cluster restart.

> FileSwapSpaceSpi can hang when large value is written
> -
>
> Key: IGNITE-3810
> URL: https://issues.apache.org/jira/browse/IGNITE-3810
> Project: Ignite
>  Issue Type: Bug
>  Components: swap
>Affects Versions: 1.7
>Reporter: Valentin Kulichenko
>Assignee: Dmitriy Govorukhin
> Fix For: 1.8
>
> Attachments: SwapSpaceTest.java
>
>
> Test reproducing the issue is attached.
> Weirdly, the value of size {{1024 * 1024 - 48}} is successfully written, but 
> when it is only one byte bigger, the swap space hangs.



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


[jira] [Commented] (IGNITE-3810) FileSwapSpaceSpi can hang when large value is written

2016-09-12 Thread Dmitriy Govorukhin (JIRA)

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

Dmitriy Govorukhin commented on IGNITE-3810:


Hi [~vkulichenko], i found problem. It happened because you try to add byte 
buffer with size more than write thread can process to swap file. 
Option in FileSwapSpaceSpi  name DFLT_QUE_SIZE, by deffault 1024 * 1024, you 
can set more if you need.

> FileSwapSpaceSpi can hang when large value is written
> -
>
> Key: IGNITE-3810
> URL: https://issues.apache.org/jira/browse/IGNITE-3810
> Project: Ignite
>  Issue Type: Bug
>  Components: swap
>Affects Versions: 1.7
>Reporter: Valentin Kulichenko
>Assignee: Dmitriy Govorukhin
> Fix For: 1.8
>
> Attachments: SwapSpaceTest.java
>
>
> Test reproducing the issue is attached.
> Weirdly, the value of size {{1024 * 1024 - 48}} is successfully written, but 
> when it is only one byte bigger, the swap space hangs.



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