From: "arton (Akio Tajima)" Date: 2013-05-24T23:22:25+09:00 Subject: [ruby-core:55154] [ruby-trunk - Bug #8446][Open] sdbm fails to fetch existing key if many elements in it Issue #8446 has been reported by arton (Akio Tajima). ---------------------------------------- Bug #8446: sdbm fails to fetch existing key if many elements in it https://bugs.ruby-lang.org/issues/8446 Author: arton (Akio Tajima) Status: Open Priority: Normal Assignee: Category: ext Target version: current: 2.1.0 ruby -v: ruby 2.1.0dev (2013-05-24 trunk 40916) [x86_64-linux] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN =begin When I store many keys in SDBM, it may fail to fetch the value and returns nil. The maximum number of all readable keys is varied by the value size. I believe it's best to be able to store and restore as many as disk size is not full, and it's better to raise an exception while storing time if it can't handle the key. ((|Below is the output of the attached test.|)) Run options: # Running tests: [1/1] TestManyValues#test_many = 0.08 s 1) Failure: TestManyValues#test_many [test_sdbm_many.rb:38]: <"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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