From: nobu@... Date: 2020-05-22T01:39:00+00:00 Subject: [ruby-core:98478] [Ruby master Bug#8446] sdbm fails to fetch existing key if many elements in it Issue #8446 has been updated by nobu (Nobuyoshi Nakada). Agreed on removal. Sdbm seems unmaintained 30 years, and having other bugs (or limitations) on storing large values too. ---------------------------------------- Bug #8446: sdbm fails to fetch existing key if many elements in it https://bugs.ruby-lang.org/issues/8446#change-85753 * Author: arton (Akio Tajima) * Status: Assigned * Priority: Normal * Assignee: hsbt (Hiroshi SHIBATA) * ruby -v: ruby 2.1.0dev (2013-05-24 trunk 40916) [x86_64-linux] ---------------------------------------- =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]: <"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@1878" > expected but was . Finished tests in 0.089022s, 11.2332 tests/s, 21095.8954 assertions/s. 1 tests, 1878 assertions, 1 failures, 0 errors, 0 skips =end ---Files-------------------------------- test_sdbm_many.rb (873 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: