sajeeval opened a new issue #758: Compaction fails due to a file corruption URL: https://github.com/apache/couchdb/issues/758 <!--- Provide a general summary of the issue in the Title above --> We have a couch database which is 3.5G in size. Whenever compaction is initiated (automatically or scheduled) it fails, and log files suggest that is due to a file corruption. ## Expected Behavior Ideally compaction should be successful, regardless of hot it is invoked. ## Current Behavior <!--- If describing a bug, tell us what happens instead of the expected behavior --> <!--- If suggesting a change/improvement, explain the difference from current behavior --> As of now compaction fails with following error and database continues to grow. `[Thu, 17 Aug 2017 05:01:18 GMT] [info] [<0.1704.0>] Starting compaction for db "mydb" [Thu, 17 Aug 2017 05:01:18 GMT] [info] [<0.1745.0>] 127.0.0.1 - - POST /mydb/_compact 202 [Thu, 17 Aug 2017 05:01:18 GMT] [error] [<0.1704.0>] ** Generic server <0.1704.0> terminating ** Last message in was {'EXIT',<0.1971.0>, {file_corruption,<<"file corruption">>}} ** When Server state == {db,<0.1703.0>,<0.1704.0>,<0.1971.0>, <<"1502945833413845">>,<0.1705.0>,<0.1701.0>, <0.1707.0>, {db_header,6,979677,0, {3446674981,{23249,141097,705848231},50545772}, {3446676970,164346,12782565}, {3446689924,[],8484}, 287,3151060956,1178745538,1000}, 979677, {btree,<0.1701.0>, {3446674981,{23249,141097,705848231},50545772}, #Fun<couch_db_updater.10.21234455>, #Fun<couch_db_updater.11.21234455>, #Fun<couch_btree.5.131744168>, #Fun<couch_db_updater.12.21234455>,snappy}, {btree,<0.1701.0>, {3446676970,164346,12782565}, #Fun<couch_db_updater.13.21234455>, #Fun<couch_db_updater.14.21234455>, #Fun<couch_btree.5.131744168>, #Fun<couch_db_updater.15.21234455>,snappy}, {btree,<0.1701.0>, {3446689924,[],8484}, #Fun<couch_btree.3.131744168>, #Fun<couch_btree.4.131744168>, #Fun<couch_btree.5.131744168>,nil,snappy}, 979677,<<"mydb">>, "/var/lib/couchdb/mydb.couch", [#Fun<couch_doc.8.104915127>], [{<<"admins">>, {[{<<"names">>, [<<"mydbSYNCUSER54CB0F41">>]}, {<<"roles">>,[<<"admin">>]}]}}, {<<"readers">>, {[{<<"names">>, [<<"mydbSYNCUSER54CB0F41">>]}, {<<"roles">>,[<<"reader">>]}]}}], 1178745538, {user_ctx,null,[],undefined}, nil,1000, [before_header,after_header,on_file_open], [{user_ctx, {user_ctx,<<"support">>, [<<"_admin">>], <<"{couch_httpd_auth, cookie_authentication_handler}">>}}], snappy,nil,nil} ** Reason for termination == ** {file_corruption,<<"file corruption">>}` ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> <!--- or ideas how to implement the addition or change --> ## Steps to Reproduce (for bugs) This is easy to reproduce when we already have a database with a corrupted document. But we really need to find why there is a corruption at the first place. ## Context <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> Since compaction is failing, database size continues to grow. This affect the performance and user experience ## Your Environment <!--- Include as many relevant details about the environment you experienced the bug in --> * Version used:1.6.1 * Operating System and version (desktop or mobile): Ubuntu 14.04 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
