You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by "kirklund (GitHub)" <gi...@apache.org> on 2019/03/04 23:40:11 UTC
[GitHub] [geode] kirklund opened pull request #3266: Geode 6442
statistics numeric id text
The previous commit for GEODE-6442 was correct but incomplete. There are still instances of statistics shown in VSD that should display the pid in the pid column but instead show either nothing (zero) or a membership port.
The commit for GEODE-6269: Extract StatisticsRegistry from IDS (#3068) removed the correct defaults of textId and numericId. When textId is empty, the textId should default to the member name (StatisticsManager.getName). When numericId is zero, the numericId should default to the pid (StatisticsManager.getPid).
```
commit b93f3904d70c85f2c8d3a93529437a6899179793
Author: Kirk Lund <kl...@apache.org>
Date: Mon Mar 4 15:25:48 2019 -0800
GEODE-6442: Fix Statistics textId and numericId
* Move getPid from StatSampler to StatisticsManager
* Default textId to StatisticsManager.getName if textId is empty
* Default numericId to StatisticsManager.getPid if numericId is zero
```
```
commit 4c833ede3ddea1eb9447fc6a7c80baa7dbc8e1b4
Author: Kirk Lund <kl...@apache.org>
Date: Mon Mar 4 13:49:32 2019 -0800
GEODE-6442: Fixup StatisticsImpl and StatisticsImplTest
Fixup StatisticsImpl:
* Fix IDE warnings in StatisticsImpl
* Make closed volatile
* Fixup field and method ordering
Fixup StatisticsImplTest:
* Replace mutable static logger with testable interface.
* Use AssertJ in test.
* Use simple implementation of StatisticsImpl instead of
LocalStatisticsImpl
```
@demery-pivotal please review
[ Full content available at: https://github.com/apache/geode/pull/3266 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org
[GitHub] [geode] kirklund closed pull request #3266: GEODE-6442: Fix
Statistics textId and numericId
Posted by "kirklund (GitHub)" <gi...@apache.org>.
[ pull request closed by kirklund ]
[ Full content available at: https://github.com/apache/geode/pull/3266 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org
[GitHub] [geode] kirklund commented on issue #3266: GEODE-6442: Fix
Statistics textId and numericId
Posted by "kirklund (GitHub)" <gi...@apache.org>.
In VSD, I can see every statistics instance showing the PID now in the PID column with one exception: StatSamplerStats. If I review the constructor of StatSamplerStats, I see that it uses InternalDistributedSystem.getId() for the numericId both before and after GEODE-6269: Extract StatisticsRegistry from IDS (#3068) so I don't think we changed the behavior for StatSamplerStats. I could change it to be the PID as well, but that's new behavior rather than restoring what was previously there.
[ Full content available at: https://github.com/apache/geode/pull/3266 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org
[GitHub] [geode] kirklund commented on issue #3266: GEODE-6442: Fix
Statistics textId and numericId
Posted by "kirklund (GitHub)" <gi...@apache.org>.
I filed an improvement ticket to change the numericId of StatSamplerStats: https://issues.apache.org/jira/browse/GEODE-6486
I'd like to keep this PR focused on fixing GEODE-6442.
[ Full content available at: https://github.com/apache/geode/pull/3266 ]
This message was relayed via gitbox.apache.org for notifications@geode.apache.org