[jira] [Updated] (RATIS-82) Add cache eviction policy

2017-05-03 Thread Jing Zhao (JIRA)

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

Jing Zhao updated RATIS-82:
---
Attachment: RATIS-82.000.patch

The initial patch for review. Will add more tests later.

> Add cache eviction policy
> -
>
> Key: RATIS-82
> URL: https://issues.apache.org/jira/browse/RATIS-82
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: Jing Zhao
>Assignee: Jing Zhao
> Attachments: RATIS-82.000.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (RATIS-82) Add cache eviction policy

2017-05-04 Thread Jing Zhao (JIRA)

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

Jing Zhao updated RATIS-82:
---
Attachment: RATIS-82.001.patch

Added some basic tests.

> Add cache eviction policy
> -
>
> Key: RATIS-82
> URL: https://issues.apache.org/jira/browse/RATIS-82
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: Jing Zhao
>Assignee: Jing Zhao
> Attachments: RATIS-82.000.patch, RATIS-82.001.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (RATIS-82) Add cache eviction policy

2017-05-04 Thread Jing Zhao (JIRA)

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

Jing Zhao updated RATIS-82:
---
Attachment: RATIS-82.001.patch

Add more tests.

> Add cache eviction policy
> -
>
> Key: RATIS-82
> URL: https://issues.apache.org/jira/browse/RATIS-82
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: Jing Zhao
>Assignee: Jing Zhao
> Attachments: RATIS-82.000.patch, RATIS-82.001.patch, 
> RATIS-82.001.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (RATIS-82) Add cache eviction policy

2017-05-08 Thread Jing Zhao (JIRA)

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

Jing Zhao updated RATIS-82:
---
Attachment: (was: RATIS-82.001.patch)

> Add cache eviction policy
> -
>
> Key: RATIS-82
> URL: https://issues.apache.org/jira/browse/RATIS-82
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: Jing Zhao
>Assignee: Jing Zhao
> Attachments: RATIS-82.000.patch, RATIS-82.001.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (RATIS-82) Add cache eviction policy

2017-05-08 Thread Jing Zhao (JIRA)

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

Jing Zhao updated RATIS-82:
---
Attachment: RATIS-82.002.patch

Thanks a lot for the review, Nicholas! Update the patch to address your 
comments.

bq. final long minToRead = Math.min(followerNextIndices[0], lastAppliedIndex);

We've checked if followerNextIndices is null or empty before running into this 
part. So the single server case should be fine.

> Add cache eviction policy
> -
>
> Key: RATIS-82
> URL: https://issues.apache.org/jira/browse/RATIS-82
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: Jing Zhao
>Assignee: Jing Zhao
> Attachments: RATIS-82.000.patch, RATIS-82.001.patch, 
> RATIS-82.002.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)