Skip to content

Conversation

@github-actions
Copy link
Contributor

No description provided.

mmaybee and others added 8 commits February 25, 2021 17:56
Streamline the per-vdev histogram reporting by directly using the
data in vdev_mg->mg_histogram rather than "rolling up" the data from
individual metaslab histogram data.
Addresses issue #258

The function used for a null pointer check is sdb.get_typed_null()
e.g.
	if msp.ms_sm == sdb_get_typed_null(msp.ms_sm.type_):

This is awkward and confusing. The new sdb.is_null() iterface
simplifies the null check:

	if sdb.is_null(msp.ms_sm):
W0221: Parameters differ from overridden 'pretty_print' method (arguments-differ)

Occurring at:
sdb/commands/zfs/vdev.py:72
sdb/commands/zfs/metaslab.py:163
sdb/commands/zfs/spa.py:68
sdb/commands/zfs/dbuf.py:84

When overriding methods the arguments must match exactly. Introduced
print_indented() method for Metaslab and Vdev classes.
Some jobs have been failing recently because the local Azure repos
in the containers that our actions run were out of date and missing
packages.
gh-actions: always update apt repos before installing packages
[1] Point out the common pitfall for libkdumpfile support in drgn
[2] Point out that there is a project wiki
@codecov-io
Copy link

codecov-io commented Mar 9, 2021

Codecov Report

Merging #262 (db1b967) into 6.0/stage (bdd67b8) will decrease coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##           6.0/stage     #262      +/-   ##
=============================================
- Coverage      87.60%   87.51%   -0.09%     
=============================================
  Files             62       62              
  Lines           2541     2523      -18     
=============================================
- Hits            2226     2208      -18     
  Misses           315      315              
Impacted Files Coverage Δ
sdb/__init__.py 100.00% <100.00%> (ø)
sdb/commands/spl/avl.py 100.00% <100.00%> (ø)
sdb/commands/zfs/dbuf.py 86.11% <100.00%> (ø)
sdb/commands/zfs/histograms.py 98.55% <100.00%> (ø)
sdb/commands/zfs/metaslab.py 95.55% <100.00%> (+0.10%) ⬆️
sdb/commands/zfs/spa.py 97.77% <100.00%> (ø)
sdb/commands/zfs/vdev.py 90.32% <100.00%> (-2.37%) ⬇️
sdb/target.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdd67b8...db1b967. Read the comment docs.

The histogram approximate median is calculated as about double what it
should be.  When we are on the bucket that goes past the median, the
histogram is the *previous* bucket, plus part of this bucket.

Signed-off-by: Matthew Ahrens <[email protected]>
@sdimitro sdimitro merged commit f00b322 into 6.0/stage Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

6 participants