Skip to content

Conversation

@wHoIsDReAmer
Copy link
Collaborator

@wHoIsDReAmer wHoIsDReAmer commented Nov 21, 2024

resolves: #159

WAL

  • WALManager 구현
  • 대용량 파일 처리 구현

@wHoIsDReAmer wHoIsDReAmer added the enhancement New feature or request label Nov 21, 2024
@wHoIsDReAmer wHoIsDReAmer self-assigned this Nov 21, 2024
@wHoIsDReAmer wHoIsDReAmer linked an issue Nov 21, 2024 that may be closed by this pull request
@github-actions
Copy link

Pull reviewers stats

Stats of the last 14 days for rrdb:

User Total reviews Time to review Total comments

⚡️ Pull request stats

@myyrakle
Copy link
Owner

Total Coverage: 55.06%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@myyrakle
Copy link
Owner

Total Coverage: 54.64%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@myyrakle
Copy link
Owner

Total Coverage: 54.95%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@myyrakle
Copy link
Owner

Total Coverage: 54.64%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@myyrakle
Copy link
Owner

Total Coverage: 54.67%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

wal_enabled = true
wal_directory = "/var/lib/rrdb/wal"
wal_segment_size = 16777216
wal_extension = "log"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: 추후에는 yaml 이든, 자체 포맷 구현이든 포맷 하나 골라서 구조체 형태로 기본값 정의하기

@myyrakle
Copy link
Owner

Total Coverage: 54.56%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@myyrakle
Copy link
Owner

Total Coverage: 54.48%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@myyrakle
Copy link
Owner

Total Coverage: 54.47%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@myyrakle
Copy link
Owner

Total Coverage: 54.15%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@myyrakle
Copy link
Owner

Total Coverage: 55.14%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@myyrakle
Copy link
Owner

Total Coverage: 54.81%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@myyrakle
Copy link
Owner

Total Coverage: 54.81%
🔗 Coverage View (최대 몇분 정도의 지연시간이 발생할 수 있습니다.)

@wHoIsDReAmer
Copy link
Collaborator Author

단순히 초기에 값을 불러오는 것을 넘어서,
해당 역할은 복구 영역으로 바뀌어야 할 듯

Copy link
Owner

@myyrakle myyrakle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGBTM

pub entry_type: EntryType,
pub data: Option<Vec<u8>>,
pub timestamp: u128,
pub transaction_id: Option<u64>,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

u64 넘는 경우는 일단 상정하지 않는걸로?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 우선은 그렇게 생각중이에요. 추후 변동 가능

where
T: WALEncoder<Vec<WALEntry>>,
{
/// The sequence number of the WAL file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

한국어로 쓸거면 그냥 다 한국어로 쓰죠

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 주석 싹 다 한국어로 바꿔놓을게요

let last_entry = match saved_entries.last() {
Some(entry) => entry,
None => return Ok((max_sequence + 1, Vec::new())),
};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 어떤가요

let Some(last_entry) = saved_entries.last() else {
    return Ok((max_sequence + 1, Vec::new()))
};

호불호 갈릴 수 있긴 한데

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋은 것 같습니다. 한번도 안 써봤던 문법이네요

@wHoIsDReAmer wHoIsDReAmer merged commit 48ea54c into master Aug 28, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] WAL 로그 저장 포맷 선택 및 구현

3 participants