History log of /5.5.2/forestdb/utils/debug.cc (Results 1 - 22 of 22)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# effd4872 20-Sep-2017 Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>

MB-26165:[utils/debug.cc] Use ucontext_t instead of ucontext.

In recent glibc versions the struct ucontext was renamed to
ucontext_t. The details can be found at [1].

The change

MB-26165:[utils/debug.cc] Use ucontext_t instead of ucontext.

In recent glibc versions the struct ucontext was renamed to
ucontext_t. The details can be found at [1].

The change is compatible with older glibc versions because the typedef
for the struct has been called ucontext_t for a long while. So it will
be picked up instead of the struct tag.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=21457

Change-Id: I6096e1576a973e8bcb33cad3a7cc94c2009d390d
Reviewed-on: http://review.couchbase.org/83579
Reviewed-by: Sundararaman Sridharan <sundar@couchbase.com>
Tested-by: Sundararaman Sridharan <sundar@couchbase.com>

show more ...


Revision tags: v1.2
# acc133d7 06-May-2016 abhinavdangeti <abhinav@couchbase.com>

Extend usecase tests to cover multiple file scenario

===== Avg Latencies (10H, 5F, 4RW, 4RO - Seperate Pool test) - 2214662 samples (ms) ===

Percenti

Extend usecase tests to cover multiple file scenario

===== Avg Latencies (10H, 5F, 4RW, 4RO - Seperate Pool test) - 2214662 samples (ms) ===

Percentile
Median 95th 99th Std Dev Histogram of samples

set 0.002 0.016 0.188 0.061 ▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
commit 0.150 0.251 1.127 1.072 ▁█▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
in-mem snapshot 2.414 5.208 6.142 1.599 ▁▆▇▆▇█▇▇▇▇▇▆▆▆▇▆▆▆▆▆▆▆▆▆▆▅▆▅▅▄▄▄
clone snapshot 0.002 0.005 0.008 0.007 ▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
iterator-init 0.006 0.012 0.018 0.005 ▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
iterator-seek 0.007 0.012 0.018 0.005 ▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
iterator-get 0.001 0.002 0.003 0.004 ▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
iterator-close 0.002 0.004 0.007 0.004 ▁█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁
0 ms 5
=======================================================================================

Change-Id: I7cc1e212fa9cb74248b3bb0fef0ddc3f471954b5
Reviewed-on: http://review.couchbase.org/63801
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# e984c92f 13-Apr-2016 Sundar Sridharan <sundar.sridharan@gmail.com>

Enable HANG_ON_CRASH for segfault+assertion debugging

Change-Id: Icd0eca89fe341c9d6bfd1e943b493e31ade15712
Reviewed-on: http://review.couchbase.org/62761
Reviewed-by: abhinav dangeti

Enable HANG_ON_CRASH for segfault+assertion debugging

Change-Id: Icd0eca89fe341c9d6bfd1e943b493e31ade15712
Reviewed-on: http://review.couchbase.org/62761
Reviewed-by: abhinav dangeti <abhinav@couchbase.com>
Reviewed-by: Sundararaman Sridharan <sundar@couchbase.com>
Tested-by: Sundararaman Sridharan <sundar@couchbase.com>

show more ...


# d18182a1 13-Apr-2016 Chiyoung Seo <chiyoung.seo@gmail.com>

Remove verbose log messages from utils/debug

Change-Id: Ic576039ce01bcd78d163a049ef6fbe8a8ece1199
Reviewed-on: http://review.couchbase.org/62766
Reviewed-by: Jung-Sang Ahn <jungsang.

Remove verbose log messages from utils/debug

Change-Id: Ic576039ce01bcd78d163a049ef6fbe8a8ece1199
Reviewed-on: http://review.couchbase.org/62766
Reviewed-by: Jung-Sang Ahn <jungsang.ahn@gmail.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# b84960c2 05-Apr-2016 Jung-Sang Ahn <jungsang.ahn@gmail.com>

Log error messages through stderr if log callback is not given

- If error log callback function is not given, print error messages
through stderr.

- _fdb_restore_wal() may repor

Log error messages through stderr if log callback is not given

- If error log callback function is not given, print error messages
through stderr.

- _fdb_restore_wal() may report some false alarms due to circular
block reuse, we temporarily disable it.

Change-Id: I501c05e4926b4c94d47ef5ebc63de5692565652f
Reviewed-on: http://review.couchbase.org/62399
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# b0502530 12-Apr-2016 Sundar Sridharan <sundar.sridharan@gmail.com>

fix build breakage for 32-bit linux (use %eip vs %rip)

Change-Id: I4f3e8de2a1468b07b07e06c5a24a8f691ec69d93
Reviewed-on: http://review.couchbase.org/62696
Tested-by: buildbot <build@

fix build breakage for 32-bit linux (use %eip vs %rip)

Change-Id: I4f3e8de2a1468b07b07e06c5a24a8f691ec69d93
Reviewed-on: http://review.couchbase.org/62696
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# 6d85230b 11-Apr-2016 abhinavdangeti <abhinav@couchbase.com>

MB-19152: Generate backtrace when linked with platform directory

Backtrace has a lot of dependencies that platform and
tlm cater to. Removing backtrace support from standalone
forest

MB-19152: Generate backtrace when linked with platform directory

Backtrace has a lot of dependencies that platform and
tlm cater to. Removing backtrace support from standalone
forestdb, to avoid compilation errors seen on windows:

Linking CXX executable forestdb_dump.exe
backtrace.cc.obj : error LNK2019: unresolved external symbol
__imp__SymGetModuleInfo64@16 reference in function
"void __cdecl describe_address(char *, unsigned int, void *)"
(?describe_address@@YAXPADIPAX@Z)
...

Change-Id: I7f860f8130f131754603fc5a6113b1c653fc979e
Reviewed-on: http://review.couchbase.org/62671
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: buildbot <build@couchbase.com>

show more ...


# 90aea095 11-Apr-2016 Sundar Sridharan <sundar.sridharan@gmail.com>

Backtrace forestdb segfaults with co-operative signal handling

When forestdb is invoked from golang segmentation faults in
forestdb have no line numbers or backtraces printed out.
Th

Backtrace forestdb segfaults with co-operative signal handling

When forestdb is invoked from golang segmentation faults in
forestdb have no line numbers or backtraces printed out.
This change installs signal handler for SIGSEGV on linux.
If segfault is in forestdb code, invoke breakpad,
else call golang's signal handler to ensure proper functioning.
Follows rules by Ian at https://golang.org/src/os/signal/doc.go

Change-Id: Ie50d4c40d7e3afecbd3c182362ab42d556573964
Reviewed-on: http://review.couchbase.org/62589
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


# b95738ed 23-Mar-2016 abhinavdangeti <abhinav@couchbase.com>

MB-18837: BreakPAD & Backtrace Support with ForestDB

+ fdb_assert() will print the backtrace.
+ Integrating breakpad support for Windows and Linux,
generates minidump only in case

MB-18837: BreakPAD & Backtrace Support with ForestDB

+ fdb_assert() will print the backtrace.
+ Integrating breakpad support for Windows and Linux,
generates minidump only in case of fdb_assert.

Change-Id: Ic6fc0cb796fb8acbfe78018605fc595cdfcb3a67
Reviewed-on: http://review.couchbase.org/61897
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>

show more ...


Revision tags: v1.1, v1.0
# 2406d681 25-Aug-2015 Dave Rigby <daver@couchbase.com>

MB-16154: Add new API to trigger a callback upon a fatal error

Add a new API to forestdb: fdb_set_fatal_error_callback(). This allows
users of forestdb to optionally specify a callback t

MB-16154: Add new API to trigger a callback upon a fatal error

Add a new API to forestdb: fdb_set_fatal_error_callback(). This allows
users of forestdb to optionally specify a callback to be invoked in
the event of a fatal error inside forestdb; before forestdb raises a
SIGABRT.

This replaces the previous manditory dumping of thread backtraces,
which is not suitable for all users of forestdb (it was added for GSI,
but kv-engine doesn't want or need it as it uses Google Breakpad to
catch all fatal errors.

Change-Id: I5408b597e4d1073ab78153ccb4f3d2091bb8160e

show more ...


# 2822739b 25-Aug-2015 Dave Rigby <daver@couchbase.com>

Revert "Spawn gdb to get backtrace of all threads on assert (Linux only)"

A more robust crash catching mechanism (using Breakpad) will replace
it.

This reverts commit bda6f4266c

Revert "Spawn gdb to get backtrace of all threads on assert (Linux only)"

A more robust crash catching mechanism (using Breakpad) will replace
it.

This reverts commit bda6f4266cc36ca3b387e410d9add1b91484f5ba.

show more ...


# ec28c22f 05-Aug-2015 Sundar Sridharan <sundar.sridharan@gmail.com>

MB-15913: New api to estimate disk space used by multiple snapshots

fdb_estimate_space_used_from() helps callers of
fdb_compact_upto() to estimate how much space is used in user
docu

MB-15913: New api to estimate disk space used by multiple snapshots

fdb_estimate_space_used_from() helps callers of
fdb_compact_upto() to estimate how much space is used in user
documents & indexes in a forestdb file over multiple persisted
snapshots.
Between every commit ForestDB now tracks amount of new
information written to the file in the kvstore stat and DB header.
The api then retrieves the deltas adding up to the estimate of space
used by multiple commit snapshots.
Add versioning support by extending FILEMGR_MAGIC

Change-Id: I59476f64744c760e8d0913f000b8d52ef6479c99

show more ...


# bda6f426 24-Jul-2015 Sundar Sridharan <sundar.sridharan@gmail.com>

Spawn gdb to get backtrace of all threads on assert (Linux only)

Change-Id: I8507161d13a23d2ca08398f13cf4d586f0ad449c


# 4178fbe1 23-Jul-2015 Sundar Sridharan <sundar.sridharan@gmail.com>

dump backtrace on assert

Change-Id: I369f10269f2bc17228f1214eb7399c4821f8acdf


# eda2b6e5 17-Jul-2015 Sundar Sridharan <sundar.sridharan@gmail.com>

hang process instead of crash if env HANG_ON_ASSERTION set

Change-Id: I477bbf0169ec8b5981f2e172aa2ef2607c85c2f4


# ceb27a9f 02-Apr-2015 Sundar Sridharan <sundar.sridharan@gmail.com>

include stdio.h in debug.cc for windows

Change-Id: Icb479e940426b64f3cfeac479c115067c77c9f45


# a53fc9e9 02-Apr-2015 Sundar Sridharan <sundar.sridharan@gmail.com>

don't use __func__ & avoid fdb_errors in unit tests for windows build

Change-Id: I00193e49c598a31f37c7cc561ecf18b802c4e355


# bc5884e7 13-Jan-2015 Chiyoung Seo <chiyoung.seo@gmail.com>

Remove unreachable code paths from lcov coverage.

Change-Id: Ib4952a3c93642962ef86b41258a4f11adf5bad3a


# ac643f1d 16-Jul-2014 Jens Alfke <jens@couchbase.com>

Added missing #includes to fix compiler warnings in Clang

Change-Id: I6432a6609edd31b215bc734abdead7b7cc059fd9


# 8e1b9ec2 21-Mar-2014 Jung-Sang Ahn <jungsang.ahn@gmail.com>

Windows compatibility support

- File extensions are switched from .c to .cc
- Shell commands (mv, cp, rm) are generalized.
- forestdb_test program successfully passes all tests after

Windows compatibility support

- File extensions are switched from .c to .cc
- Shell commands (mv, cp, rm) are generalized.
- forestdb_test program successfully passes all tests after
compilation using MSVC.
- MSVC compatible test programs: bcache_test, btreeblock_test,
crc_test, docio_test, filemgr_test, forestdb_test, hash_test,
hbtrie_test

Change-Id: Ia472925002ba5756ccf530f593df3ed462f1b99e

show more ...


# 9ceccb2c 17-Jan-2014 Jung-Sang Ahn <jungsang.ahn@gmail.com>

Block cache bug fix

1) After a block is evicted, the block becomes free block. When the free
block is re-cached, it should be inserted into clean LRU list or dirty RB-tree.
There was

Block cache bug fix

1) After a block is evicted, the block becomes free block. When the free
block is re-cached, it should be inserted into clean LRU list or dirty RB-tree.
There was a bug that the flag of freed block is not cleared so that the block
is neither inserted into list nor tree. This causes the corruption of list and
segmentation fault. The bug is fixed by clearing the flag when a block is freed.

2) Extra white space is removed in some files.

show more ...


# 818cce61 17-Aug-2013 Jung-Sang Ahn <jungsang.ahn@gmail.com>

Critical bug on block cache has been fixed
- After compaction, when old file is removed and new file is opened, buffer cache may not recognize owner of blocks. This causes crash because it incorr

Critical bug on block cache has been fixed
- After compaction, when old file is removed and new file is opened, buffer cache may not recognize owner of blocks. This causes crash because it incorrectly reads requested block.
- In block cache, hash value of each filename is calculated using crc32 of last 8 bytes.

show more ...