-
Notifications
You must be signed in to change notification settings - Fork 171
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
question about getting chunk data #234
Comments
QFS client read from a “logical” chunk position's would obviously fetch chunk data, though with replicated file there is no control which replica will be used. KfsClient::CompareChunkReplicas() fetches all chunk replicas data and compares it. KfsClient::VerifyDataChecksums() fetches chunk checksum vectors and compares them, instead of the actual data. These QFS client methods are used by qfsdataverify tool. |
Thanks for clarification. |
KfsClient::GetDataLocation() can be used to retrieve chunks / stripes location. Chink / stripe boundaries are always at fixed positions / locations / offsets, i.e. they are independent of file content. In other words, the assumption that the row boundaries of csv file will coincide with chunk boundaries will not hold true. Small files are obvious special case where data fits in one chunk or in one stripe for striped files. |
Thanks for your reply @mikeov |
QFS client attempts to read from the "local" (same node as client) chunk server when possible. |
I read the code but did not find a function to get a chunk/block data. Is there a good way to read the block by given that block's information? The block information like:
blocks: 2
BlockInfo:
offset: 67108864
kfsChunkId_t: 262186
int64_t: 1
ServerLocation: 127.0.0.1 21001
chunkOff_t: 16777216
The text was updated successfully, but these errors were encountered: