Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update partition map file format to be more robust #437

Closed
ctb opened this issue May 23, 2014 · 3 comments
Closed

Update partition map file format to be more robust #437

ctb opened this issue May 23, 2014 · 3 comments
Milestone

Comments

@ctb
Copy link
Member

ctb commented May 23, 2014

The partition map file format (see SubsetPartition::merge_from_disk) is not robust to truncation. In particular, the loading function just reads until it encounters an EOF. Most of our other file formats store the number of items to read in the header info.

@mr-c, I can fix this as part of #333, but I was unsure as to whether our file formats are covered by semantic versioning. Your thoughts? I don't think it's urgent.

@mr-c
Copy link
Contributor

mr-c commented May 23, 2014

Our file formats are indeed covered by the semantic versioning agreement,
yep.

How about outputting the number of records after reading or writing the
partition map?
On May 23, 2014 2:57 AM, "C. Titus Brown" notifications@github.com wrote:

The partition map file format (see SubsetPartition::merge_from_disk) is
not robust to truncation. In particular, the loading function just reads
until it encounters an EOF. Most of our other file formats store the number
of items to read in the header info.

@mr-c https://github.com/mr-c, I can fix this as part of #333#333,
but I was unsure as to whether our file formats are covered by semantic
versioning. Your thoughts? I don't think it's urgent.


Reply to this email directly or view it on GitHubhttps://github.com//issues/437
.

@ctb
Copy link
Member Author

ctb commented May 24, 2014

On Fri, May 23, 2014 at 09:05:17AM -0700, Michael R. Crusoe wrote:

Our file formats are indeed covered by the semantic versioning agreement,
yep.

How about outputting the number of records after reading or writing the
partition map?

What, to stdout? I suppose we could do that but it's hardly a fix ;).

OK, well, we'll put it on the list for 2.0, then!

cheers,
--titus

On May 23, 2014 2:57 AM, "C. Titus Brown" notifications@github.com wrote:

The partition map file format (see SubsetPartition::merge_from_disk) is
not robust to truncation. In particular, the loading function just reads
until it encounters an EOF. Most of our other file formats store the number
of items to read in the header info.

@mr-c https://github.com/mr-c, I can fix this as part of #333#333,
but I was unsure as to whether our file formats are covered by semantic
versioning. Your thoughts? I don't think it's urgent.

???
Reply to this email directly or view it on GitHubhttps://github.com//issues/437
.


Reply to this email directly or view it on GitHub:

#437 (comment)

C. Titus Brown, ctb@msu.edu

@mr-c mr-c added this to the 2.0 milestone Jul 18, 2014
@mr-c
Copy link
Contributor

mr-c commented Jun 8, 2015

Fixed in #1048

@mr-c mr-c closed this as completed Jun 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants