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
qry_buffers: generate small file names for temp tables #1626
qry_buffers: generate small file names for temp tables #1626
Conversation
to prevent "file name too long" errors
Thanks @hmmr! Settings---
minimum_reviewers: 2
merge: true
build_steps:
- make clean
- make deps
- make compile
- make test
- make xref
- make dialyzer
org_mode: true
timeout: 1800 |
Looks good! 👍✅ MERGE
✅ MAKE_CLEAN
✅ MAKE_DEPS
✅ MAKE_COMPILE
✅ MAKE_TEST
✅ MAKE_XREF
✅ MAKE_DIALYZER
⬜ 0 of 2 Code reviews from organization basho |
👍 |
Looks good! 👍✅ MERGE
✅ MAKE_CLEAN
✅ MAKE_DEPS
✅ MAKE_COMPILE
✅ MAKE_TEST
✅ MAKE_XREF
✅ MAKE_DIALYZER
⬜ 0 of 2 Code reviews from organization basho |
Looks good! 👍✅ MERGE
✅ MAKE_CLEAN
✅ MAKE_DEPS
✅ MAKE_COMPILE
✅ MAKE_TEST
✅ MAKE_XREF
✅ MAKE_DIALYZER
⬜ 0 of 2 Code reviews from organization basho |
@hmmr Where does the binary come from which generates the |
It's a simple integer, incremented for each qbuf, printed as a decimal of base 36, giving a short printable string. That string will be unique until the integer overflows, which won't happen within our lifetime. And, we don't need to care about stomping over any buffers if the query buffer manager crashes -- any leftovers will be discarded anyway. Of course |
Only failures were:
👍 |
+1 |
thumbot retry |
Looks good! 👍✅ MERGE
✅ MAKE_CLEAN
✅ MAKE_DEPS
✅ MAKE_COMPILE
✅ MAKE_TEST
✅ MAKE_XREF
✅ MAKE_DIALYZER
⬜ 0 of 2 Code reviews from organization basho |
+1 |
1 similar comment
+1 |
Merging and closing this pr |
Successfully merged basho/riak_kv/pulls/1626 (173a783 on to riak_ts-develop-1.5) ---
:sha: d00471f5586348dd7c08c14c12bda0df51b3a7f7
:merged: true
:message: Pull Request successfully merged
|
* qry_buffers: generate small file names for temp tables to prevent "file name too long" errors * qry_buffers: use make_ref instead of faking now/0 * qry_buffers: demystify make_qbuf_id # Conflicts: # src/riak_kv_qry_buffers.erl
* qry_buffers: generate small file names for temp tables (#1626) * qry_buffers: generate small file names for temp tables to prevent "file name too long" errors * qry_buffers: use make_ref instead of faking now/0 * qry_buffers: demystify make_qbuf_id # Conflicts: # src/riak_kv_qry_buffers.erl
* qry_buffers: generate small file names for temp tables to prevent "file name too long" errors * qry_buffers: use make_ref instead of faking now/0 * qry_buffers: demystify make_qbuf_id
RTS-1760 (#1625), #1625.
Avoid creating temp table names by stringing field names, which is gratuitously stupid.
Note that 1.6 is going to have #1601 whereby this issue autocloses in mainline.