{"action":"created","issue":{"url":"https://api.github.com/repos/SequoiaDB/SequoiaDB/issues/87","repository_url":"https://api.github.com/repos/SequoiaDB/SequoiaDB","labels_url":"https://api.github.com/repos/SequoiaDB/SequoiaDB/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/SequoiaDB/SequoiaDB/issues/87/comments","events_url":"https://api.github.com/repos/SequoiaDB/SequoiaDB/issues/87/events","html_url":"https://github.com/SequoiaDB/SequoiaDB/pull/87","id":367515840,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwOTIzOTU4","number":87,"title":"Revision: 34338","user":{"login":"RobertVannn","id":43613132,"node_id":"MDQ6VXNlcjQzNjEzMTMy","avatar_url":"https://avatars3.githubusercontent.com/u/43613132?v=4","gravatar_id":"","url":"https://api.github.com/users/RobertVannn","html_url":"https://github.com/RobertVannn","followers_url":"https://api.github.com/users/RobertVannn/followers","following_url":"https://api.github.com/users/RobertVannn/following{/other_user}","gists_url":"https://api.github.com/users/RobertVannn/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertVannn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertVannn/subscriptions","organizations_url":"https://api.github.com/users/RobertVannn/orgs","repos_url":"https://api.github.com/users/RobertVannn/repos","events_url":"https://api.github.com/users/RobertVannn/events{/privacy}","received_events_url":"https://api.github.com/users/RobertVannn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-10-07T03:01:29Z","updated_at":"2018-10-08T07:45:47Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/SequoiaDB/SequoiaDB/pulls/87","html_url":"https://github.com/SequoiaDB/SequoiaDB/pull/87","diff_url":"https://github.com/SequoiaDB/SequoiaDB/pull/87.diff","patch_url":"https://github.com/SequoiaDB/SequoiaDB/pull/87.patch"},"body":"【new】【story】【固定集合】在固定集合中插入96M记录后全部正向pop后，再次插入96M记录，2个备节点异常重启\r\n\r\n【重现步骤】 \r\n1.创建固定集合，其中参数指定：Size:96，OverWrite:false \r\ndb.createCS(\"cs\",{Capped:true}).createCL(\"cl\",{Capped:true,Size:96,AutoIndexId:false, OverWrite:false}) \r\n2.插入98301条长度为969B的记录； \r\ndb = new Sdb; \r\ndbcl = db.getCS(\"cs\").getCL(\"cl\"); \r\ninsertFixedLengthDatas( dbcl, 98301, 969, \"a\" ); \r\ndb.cs.cl.count() \r\n98301 \r\n3.将记录全部正向pop \r\ndb.cs.cl.pop({LogicalID:100661176,Direction:1}) \r\nTakes 0.014416s. \r\ndb.cs.cl.count() \r\n0 \r\n4.再次插入步骤2中的记录，检查结果 \r\n【预期结果】 \r\n1.正向pop，块不能够被重用，报-307的错误码 \r\n【实际结果】 \r\n1.部分记录插入成功，导致2个备节点异常重启，生成trap文件见附件，没有core文件；步骤4后再次执行如下命令行，感觉cs被删除重建？ \r\ndb.cs.cl.count() \r\n49154 \r\nTakes 3.629056s. \r\ndb.cs.cl.count() \r\n49154 \r\nTakes 0.060569s. \r\ndb.cs.cl.find().sort({_id:1}).limit(1) \r\n(nofile):0 uncaught exception: -34 \r\nCollection space does not exist \r\nTakes 0.229385s. \r\ndb.cs.cl.find().sort({_id:1}).limit(1) \r\nReturn 0 row(s). \r\nTakes 0.700498s. \r\ndb.cs.cl.count() \r\n0 \r\n【备注】 \r\n在ci的环境上，执行insert_overSize_11777_2.js报错，执行日志如下： \r\ninsertNum:98301 \r\n--insert data success! insertNum: 98301 \r\n--insert data up to limit! \r\nskipNum:65534 \r\n--get logicalID success!logicalID:67108792 \r\n--pop logicalID: 67108792, Direction: -1 \r\n--count success!expectCount: 65534 \r\n--find data success! \r\ninsertNum:32767 \r\nshell:4 uncaught exception: -307----逆向pop后，空间能够被重用，此处不应该报错的，此时查询记录的_id字段值是正确的，并没有超过最大的Size限制 \r\ndb.cs.cl.find().sort({_id:1}).limit(1) \r\n{ \r\n  \"_id\": 0, \r\n  \"a\": \"aaaaaaaaaaaaaaaaaaaaaaaaa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github.com/repos/SequoiaDB/SequoiaDB/issues/comments/427746142","html_url":"https://github.com/SequoiaDB/SequoiaDB/pull/87#issuecomment-427746142","issue_url":"https://api.github.com/repos/SequoiaDB/SequoiaDB/issues/87","id":427746142,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzc0NjE0Mg==","user":{"login":"DebbieMadisonS","id":42732495,"node_id":"MDQ6VXNlcjQyNzMyNDk1","avatar_url":"https://avatars0.githubusercontent.com/u/42732495?v=4","gravatar_id":"","url":"https://api.github.com/users/DebbieMadisonS","html_url":"https://github.com/DebbieMadisonS","followers_url":"https://api.github.com/users/DebbieMadisonS/followers","following_url":"https://api.github.com/users/DebbieMadisonS/following{/other_user}","gists_url":"https://api.github.com/users/DebbieMadisonS/gists{/gist_id}","starred_url":"https://api.github.com/users/DebbieMadisonS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DebbieMadisonS/subscriptions","organizations_url":"https://api.github.com/users/DebbieMadisonS/orgs","repos_url":"https://api.github.com/users/DebbieMadisonS/repos","events_url":"https://api.github.com/users/DebbieMadisonS/events{/privacy}","received_events_url":"https://api.github.com/users/DebbieMadisonS/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T07:45:47Z","updated_at":"2018-10-08T07:45:47Z","author_association":"CONTRIBUTOR","body":"请验证"}}
{"actor":{"display_login":"DebbieMadisonS"}}