apache / apache/tsfile

[CPP]. Open and close TsFile without writing data will meet error code 2.

Open
#206 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
203
Forks
104
Avg merge
2d 6h
Merged PRs (30d)
33

Description

Test code as below:
```c++
CTsFileWriter writer = ts_writer_open(TSFILE_NAME, &code);
ASSERT_EQ(code, 0);
ASSERT_NE(writer, nullptr);
code = ts_writer_close(writer);
ASSERT_EQ(access(TSFILE_NAME, F_OK), 0);
ASSERT_EQ(code, E_OK); // assert failed
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with the shown C++ calls to ts_writer_open and ts_writer_close, then trace the empty-writer close path and the returned error code. Done means closing a successfully opened file without written data returns E_OK and the file still exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.