Compaction fails with {badmatch,none} on macOS High Sierra
Description
Components
Affects versions
Fix versions
Labels
Environment
Link to Log File, atop/blg, CBCollectInfo, Core dump
Release Notes Description
Attachments
- 24 Jul 2017, 11:30 AM
Activity
CB robot July 27, 2017 at 4:21 PM
Build 5.1.0-1039 contains ns_server commit 390c7aa1860b00d2baf733276e217ebef852abbf with commit message:
https://couchbasecloud.atlassian.net/browse/MB-25380#icft=MB-25380: Fix OSX disksup to include the new Apple File System
https://github.com/couchbase/ns_server/commit/390c7aa1860b00d2baf733276e217ebef852abbf
Dave Finlay July 27, 2017 at 2:56 PM
Dave R has verified the fix.
Dave Rigby July 27, 2017 at 9:11 AMEdited
Note: To be able to build on High Sierra (to verify) I needed to make the following hack to the Go makefile:
diff --git a/cmake/Modules/go-install.cmake b/cmake/Modules/go-install.cmake
index 003a42d..88f135b 100644
--- a/cmake/Modules/go-install.cmake
+++ b/cmake/Modules/go-install.cmake
@@ -24,6 +24,8 @@ ENDMACRO (EXPORT_FLAGS)
EXPORT_FLAGS (CGO_INCLUDE_DIRS CGO_CPPFLAGS "-I")
EXPORT_FLAGS (CGO_LIBRARY_DIRS CGO_LDFLAGS "-L")
+SET (ENV{CGO_CFLAGS} "-Wno-nullability-completeness")
+
IF (CGO_LDFLAGS)
SET (ENV{CGO_LDFLAGS} "$ENV{CGO_LDFLAGS} ${CGO_LDFLAGS}")
ENDIF ()
Otherwise I hit the following error(s):
-- Executing: /Users/dave/.cbdepscache/exploded/x86_64/go-1.7.3/go/bin/go install -pkgdir /Users/dave/repos/couchbase/server/build/gopkg/go-1.7.3 -tags="jemalloc community" -gcflags="" -ldflags="-s -extldflags '-Wl,-rpath,@executable_path/../lib'" github.com/couchbase/indexing/secondary/cmd/indexer
# runtime/cgo
In file included from $WORK/runtime/cgo/_obj/_cgo_export.c:2:
/usr/include/stdlib.h:139:25: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness]
/usr/include/stdlib.h:139:25: note: insert '_Nullable' if the pointer may be null
/usr/include/stdlib.h:139:25: note: insert '_Nonnull' if the pointer should never be null
Poonam Dhavale July 26, 2017 at 9:38 PM
Hi DaveR,
I have uploaded a patch to Gerrit with potential fix. Can you please verify it on High Sierra?
Poonam
Aliaksey Artamonau July 25, 2017 at 9:39 PM
I think a better approach is to move this logic back to ns_disksup (it was created to work around some previous issue that we had on Mac OS X) and submit a patch upstream.
Details
Details
Assignee
Reporter
Is this a Regression?
Triage
Operating System
Priority
Instabug
PagerDuty
PagerDuty Incident
PagerDuty

Sentry
Linked Issues
Sentry
Zendesk Support
Linked Tickets
Zendesk Support

Tested build 5.0.0-3357 on High Sierra Beta (17A306f).
Most things work - successfully initialised the cluster, loaded some sample buckets, queried them etc.
However, I see an error with compaction:
[user:error,2017-07-24T12:16:40.547+01:00,ns_1@127.0.0.1:compaction_new_daemon<0.484.0>:compaction_new_daemon:handle_info:411]User-triggered compaction of bucket `beer-sample` failed: {badmatch,none}. See logs for detailed reason.
There are similar messages for auto-compaction.
Logs attached:
(See https://couchbasecloud.atlassian.net/browse/MB-24741#icft=MB-24741 for previous issues with macOS High Sierra beta).