-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new status check for ability to deserialize the internal karafka …
…states (#133) * more status reporting * remarks
- Loading branch information
Showing
8 changed files
with
251 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
lib/karafka/web/ui/views/status/failures/_consumers_reports.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<p> | ||
At least one consumer report appears to be corrupted. | ||
</p> | ||
|
||
<p> | ||
This issue typically arises when invalid messages have been sent to the Karafka consumers' reports topic or when the topic has been populated with data from a newer Karafka Web UI without updating it. | ||
</p> | ||
|
||
<p class="mb-0"> | ||
To resolve this, please first attempt to upgrade the Karafka Web UI. If the problem persists, execute <code>bundle exec karafka-web reset</code> to reset the Web UI. | ||
</p> |
32 changes: 23 additions & 9 deletions
32
lib/karafka/web/ui/views/status/failures/_initial_consumers_metrics.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
<p> | ||
The initial consumers metrics for the Web UI were not created. | ||
</p> | ||
<% if details[:issue_type] == :deserialization %> | ||
<p> | ||
The initial state of the consumers metrics appears to be corrupted. | ||
</p> | ||
|
||
<p> | ||
It means that the <code>bundle exec karafka-web migrate</code> was not executed or failed. | ||
</p> | ||
<p> | ||
This issue typically arises when invalid messages have been sent to the Karafka consumers' metrics topic or when the topic has been populated with data from a newer Karafka Web UI without updating it. | ||
</p> | ||
|
||
<p class="mb-0"> | ||
To fix this, you need to ensure that the <code>bundle exec karafka-web migrate</code> runs successfully. | ||
</p> | ||
<p class="mb-0"> | ||
To resolve this, please first attempt to upgrade the Karafka Web UI. If the problem persists, execute <code>bundle exec karafka-web reset</code> to reset the Web UI. | ||
</p> | ||
<% else %> | ||
<p> | ||
The initial consumers metrics for the Web UI were not created. | ||
</p> | ||
|
||
<p> | ||
It means that the <code>bundle exec karafka-web migrate</code> was not executed or failed. | ||
</p> | ||
|
||
<p class="mb-0"> | ||
To fix this, you need to ensure that the <code>bundle exec karafka-web migrate</code> runs successfully. | ||
</p> | ||
<% end %> |
32 changes: 23 additions & 9 deletions
32
lib/karafka/web/ui/views/status/failures/_initial_consumers_state.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
<p> | ||
The initial consumers state for the Web UI was not created. | ||
</p> | ||
<% if details[:issue_type] == :deserialization %> | ||
<p> | ||
The initial state of the consumers appears to be corrupted. | ||
</p> | ||
|
||
<p> | ||
It means that the <code>bundle exec karafka-web install</code> was not executed or failed. | ||
</p> | ||
<p> | ||
This issue typically arises when invalid messages have been sent to the Karafka consumers' state topic or when the topic has been populated with data from a newer Karafka Web UI without updating it. | ||
</p> | ||
|
||
<p class="mb-0"> | ||
To fix this, you need to ensure that the <code>bundle exec karafka-web migrate</code> runs successfully. | ||
</p> | ||
<p class="mb-0"> | ||
To resolve this, please first attempt to upgrade the Karafka Web UI. If the problem persists, execute <code>bundle exec karafka-web reset</code> to reset the Web UI. | ||
</p> | ||
<% else %> | ||
<p> | ||
The initial consumers state for the Web UI was not created. | ||
</p> | ||
|
||
<p> | ||
It means that the <code>bundle exec karafka-web migrate</code> was not executed or failed. | ||
</p> | ||
|
||
<p class="mb-0"> | ||
To fix this, you need to ensure that the <code>bundle exec karafka-web migrate</code> runs successfully. | ||
</p> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.