Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In statistics request the "notifQueue"."in" is returned with negative values #2744

Closed
iariasleon opened this issue Dec 1, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@iariasleon
Copy link
Contributor

iariasleon commented Dec 1, 2016

In statistics request the "notifQueue"."in" is returned with negative values

How reproduce this failure

CB config

contextBroker -port 1026 -logDir /var/log/contextBroker -pidpath /var/run/contextBroker/contextBroker.pid -dbhost localhost -db orion -reqMutexPolicy none -writeConcern 0 -notificationMode threadpool:60000:300 -statTiming -statSemWait -statCounters -statNotifQueue -multiservice -subCacheIval 5 -fg

The JMeter script used with this config:

sh jmeter.sh -n  -t orion_soak_test_ngsiv1_ngsiv2.jmx -JHOST=localhost -JTEST_TIME=172800 -JTHREADS=300 -JSERVICE="soak_test_1_5_0_next" -JATTRIBUTES=15 -JSUBSC_REFERENCE="http://localhost:8090/notify" -JSUBSC_DURATION=8000 -JVERSION_PERCENTAGE=0

CB version

"git_hash": "7388d9f1a6a2342a76090431a93276c20726b158",
"version": "1.5.0_20161129094630"

request used:

curl localhost:1026/statistics | python -mjson.tool

some reports obtained

 "notifQueue": {
        "avgTimeInQueue": 0.001538384,
        "in": -180599643,
        "out": 51377,
        "reject": 0,
        "sentError": 0,
        "sentOk": 51377,
        "size": 0,
        "timeInQueue": 79.037536621
    },
   "notifQueue": {
        "avgTimeInQueue": 0.001566873,
        "in": -1274516242,
        "out": 72511,
        "reject": 0,
        "sentError": 0,
        "sentOk": 72511,
        "size": 0,
        "timeInQueue": 113.615509033
    }
@iariasleon iariasleon added this to the 1.7.0 milestone Dec 1, 2016
@kzangeli
Copy link
Member

kzangeli commented Dec 1, 2016

Probably, all these counters should be unsigned long long or double

@fgalan
Copy link
Member

fgalan commented Dec 19, 2016

Pls, @iariasleon have a look and close it if you find fixed.

@fgalan fgalan reopened this Dec 19, 2016
@iariasleon
Copy link
Contributor Author

LGTM
After several executions, the "in" field never is negative.

        "notifQueue": {
                "avgTimeInQueue": 0.006964049,
                "in": 858388,
                "out": 858388,
                "reject": 0,
                "sentError": 78357,
                "sentOk": 780031,
                "size": 0,
                "timeInQueue": 5977.856445312
            }, 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants