[jira] [Updated] (RATIS-76) Add loading policy for RaftLogCache

2017-04-25 Thread Jing Zhao (JIRA)

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

Jing Zhao updated RATIS-76:
---
Attachment: RATIS-76.003.patch

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

> Add loading policy for RaftLogCache
> ---
>
> Key: RATIS-76
> URL: https://issues.apache.org/jira/browse/RATIS-76
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: Jing Zhao
>Assignee: Jing Zhao
> Attachments: RATIS-76.000.patch, RATIS-76.001.patch, 
> RATIS-76.002.patch, RATIS-76.003.patch
>
>
> RATIS-70 separates term/index/offset and entry content in {{LogSegment}}. Now 
> {{LogSegment}} can always holds term/index/offset part in memory as index, 
> and load log entry into a cache only when necessary. In this jira we will add 
> a cache loading policy in {{LogSegment}}.



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


[jira] [Updated] (RATIS-76) Add loading policy for RaftLogCache

2017-04-21 Thread Jing Zhao (JIRA)

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

Jing Zhao updated RATIS-76:
---
Attachment: RATIS-76.002.patch

Update the patch with some simple tests. Also let the SegmentedRaftLog call 
cache.load explicitly so that we can avoid disk IO within the 
SegmentedRaftLog's lock.

> Add loading policy for RaftLogCache
> ---
>
> Key: RATIS-76
> URL: https://issues.apache.org/jira/browse/RATIS-76
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: Jing Zhao
>Assignee: Jing Zhao
> Attachments: RATIS-76.000.patch, RATIS-76.001.patch, 
> RATIS-76.002.patch
>
>
> RATIS-70 separates term/index/offset and entry content in {{LogSegment}}. Now 
> {{LogSegment}} can always holds term/index/offset part in memory as index, 
> and load log entry into a cache only when necessary. In this jira we will add 
> a cache loading policy in {{LogSegment}}.



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


[jira] [Updated] (RATIS-76) Add loading policy for RaftLogCache

2017-04-20 Thread Jing Zhao (JIRA)

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

Jing Zhao updated RATIS-76:
---
Attachment: RATIS-76.001.patch

Added RaftLogIOException for Exception thrown while loading log entries from 
log files.

> Add loading policy for RaftLogCache
> ---
>
> Key: RATIS-76
> URL: https://issues.apache.org/jira/browse/RATIS-76
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: Jing Zhao
>Assignee: Jing Zhao
> Attachments: RATIS-76.000.patch, RATIS-76.001.patch
>
>
> RATIS-70 separates term/index/offset and entry content in {{LogSegment}}. Now 
> {{LogSegment}} can always holds term/index/offset part in memory as index, 
> and load log entry into a cache only when necessary. In this jira we will add 
> a cache loading policy in {{LogSegment}}.



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


[jira] [Updated] (RATIS-76) Add loading policy for RaftLogCache

2017-04-13 Thread Jing Zhao (JIRA)

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

Jing Zhao updated RATIS-76:
---
Attachment: RATIS-76.000.patch

Initial patch to demo the idea. The patch depends on RATIS-70. Will add more 
tests later.

> Add loading policy for RaftLogCache
> ---
>
> Key: RATIS-76
> URL: https://issues.apache.org/jira/browse/RATIS-76
> Project: Ratis
>  Issue Type: Sub-task
>Reporter: Jing Zhao
>Assignee: Jing Zhao
> Attachments: RATIS-76.000.patch
>
>
> RATIS-70 separates term/index/offset and entry content in {{LogSegment}}. Now 
> {{LogSegment}} can always holds term/index/offset part in memory as index, 
> and load log entry into a cache only when necessary. In this jira we will add 
> a cache loading policy in {{LogSegment}}.



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