-
Bug
-
Resolution: Unresolved
-
Low (View bug fix roadmap)
-
9.12.12, 10.3.0
-
9.12
-
2
-
Severity 3 - Minor
-
4
-
Issue Summary
The DVCS stats logging for inbound webhook statistics fails to generate accurate metrics. Webhook stats such as `hookCount` and `pushHookInMillis` are logged as zero or minimal, even when webhooks are successfully executed.
This is reproducible on Data Center: Yes
Steps to Reproduce
1. Integrate Jira with GitHub Enterprise and GitLab Enterprise servers.
2. Create test repositories on both platforms, ensuring Jira properly creates the webhooks.
3. Execute the following script to create and push 10,000 commits to the test repository:
#!/bin/bash NUM_COMMITS=10000 FILE="README.md" PREFIX="KANBAN-" REMOTE_BRANCH="main" if [ ! -f "$FILE" ]; then echo "# README" > "$FILE" git add "$FILE" git commit -m "Initialize README.md" git push origin "$REMOTE_BRANCH" fi for ((i=1; i<=NUM_COMMITS; i++)); do echo "Change $i" >> "$FILE" git add "$FILE" git commit -m "${PREFIX}${i}" git push origin "$REMOTE_BRANCH" done echo "Completed $NUM_COMMITS commits and pushed them to $REMOTE_BRANCH!"
4 Verify on both platforms that webhook responses are recorded (204 responses for each push).
- GitHub: Check the webhook log in the repository settings (e.g., `.../settings/hooks/7`).
- GitLab: Check the webhook delivery logs (e.g., `.../-/hooks`)
5. Wait for the Jira stats to log (interval: 5 minutes).
Expected Results
Webhook statistics in the inbound section of DVCS stats should reflect actual webhook activity, including `hookCount` and timing metrics (e.g., `pushHookInMillis`).
Actual Results
The following log entry is recorded, showing zero or minimal values in the `inbound` section:
2024-12-19 10:23:23,167+0000 jira-stats-0 INFO [c.a.j.util.stats.JiraStats] [JIRA-STATS] [DVCS-HTTP] total stats: duration=PT2H55M0.029S, ... "inbound": { "legacyHookCount": 0, "hookCount": 0, "pushHookInMillis": { "count": 0, "min": 0, "max": 0, "sum": 0, "avg": 0, ... } ... }
Despite successful webhook execution and 204 responses from the remote repositories, the stats remain empty.
note: If you view the stats after first integrating the org you will see 2 hits on hookCount per number of repositories as it appears the hooks that test the security key are counted on creation.
Versions Tested
Jira Version | Tested | Status |
---|---|---|
9.8.0 | Yes | Works |
9.12.12 | Yes | Does Not Work |
10.3.0 | Yes | Does Not Work |
Workaround
Currently, there is no known workaround for this behavior. A workaround will be added here when available.
- links to
- mentioned in
-
Page Failed to load