karafka-web 0.11.0.beta1 → 0.11.0.beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -1
  3. data/Gemfile.lock +1 -1
  4. data/Rakefile +4 -0
  5. data/karafka-web.gemspec +0 -5
  6. data/lib/karafka/web/errors.rb +0 -12
  7. data/lib/karafka/web/pro/ui/controllers/consumers/consumers_controller.rb +1 -3
  8. data/lib/karafka/web/pro/ui/views/consumers/consumers/_consumer.erb +47 -56
  9. data/lib/karafka/web/pro/ui/views/consumers/consumers/_consumer_performance.erb +59 -68
  10. data/lib/karafka/web/pro/ui/views/consumers/controls/_controls.erb +82 -91
  11. data/lib/karafka/web/pro/ui/views/jobs/_job.erb +38 -47
  12. data/lib/karafka/web/processing/consumer.rb +7 -7
  13. data/lib/karafka/web/processing/consumers/aggregators/state.rb +14 -14
  14. data/lib/karafka/web/ui/base.rb +1 -5
  15. data/lib/karafka/web/ui/models/process.rb +3 -1
  16. data/lib/karafka/web/ui/models/processes.rb +27 -6
  17. data/lib/karafka/web/ui/models/status.rb +1 -1
  18. data/lib/karafka/web/ui/public/javascripts/application.min.js.gz +0 -0
  19. data/lib/karafka/web/ui/public/stylesheets/application.min.css +61 -48
  20. data/lib/karafka/web/ui/public/stylesheets/application.min.css.br +0 -0
  21. data/lib/karafka/web/ui/public/stylesheets/application.min.css.gz +0 -0
  22. data/lib/karafka/web/ui/public/stylesheets/libs/tailwind.css +0 -6
  23. data/lib/karafka/web/ui/views/consumers/_consumer.erb +30 -39
  24. data/lib/karafka/web/ui/views/jobs/_job.erb +29 -38
  25. data/lib/karafka/web/ui/views/ux/_status_rows.erb +0 -6
  26. data/lib/karafka/web/version.rb +1 -1
  27. data/package-lock.json +3 -3
  28. metadata +7 -39
  29. checksums.yaml.gz.sig +0 -0
  30. data/certs/cert.pem +0 -26
  31. data/lib/karafka/web/ui/views/consumers/_incompatible.erb +0 -13
  32. data/lib/karafka/web/ui/views/shared/exceptions/incompatible_schema.erb +0 -34
  33. data.tar.gz.sig +0 -0
  34. metadata.gz.sig +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70c1492ea1073bf499055b4a6db1090e8fede2fd6a89d0fca7c5085669170863
4
- data.tar.gz: 52cffaec446f588e4c3508e9b4085f7e911b68961cd2430406bd7c5b49a99f74
3
+ metadata.gz: 2dbb446937174f7dd3cab032906c346093d389ec59084557f05e56294f127b3c
4
+ data.tar.gz: 02b0435ccb4a655bd1870a508ac9173d310e8f82442af82b6e1e35a573b6ae4e
5
5
  SHA512:
6
- metadata.gz: 9a766d94df43a6f8bf61c2331d48ef21bd1e26860123268441838ce75cc298d0f957d459ff2d6c180acca01b90bb3bf6199554b5abbb74d6255f2d57aac95948
7
- data.tar.gz: 0b8fbeef52a71372088d8d2d24420e5336028ab9a443c5b537ebb55d1faf61a2cb4f69f855c91421175c277a0a2e5192aac39586673493a3a14eabf15cc6fa5d
6
+ metadata.gz: dfeaf8bc767470dd2a90619757bf57ab9e7695f2487006658d8cc186c83e4bfd8786924e0b622013ff6c366dfa5a669e12fd782f1cbfcd26d179c81a14ec93c9
7
+ data.tar.gz: dc043752038cf5225319453dd6f2471115824d56961cd6016e2f7d753c56fdfc0788bd59ea75d266cf6ed3872c2b9782d226e72b5ec3c9a29c505d44f266b8e9
data/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## 0.11.0 (Unreleased)
4
4
  - **[Feature]** Provide ability to pause/resume partitions on running consumers via the UI (Pro).
5
5
  - **[Feature]** Provide ability to edit offsets of running consumers (Pro).
6
- - **[Feature]** Support consumers that have mismatching schema.
6
+ - **[Feature]** Support consumers that have mismatching schema in the Status page.
7
7
  - **[Feature]** Provide ability to navigate to a timestamp in the Explorer (Pro).
8
8
  - **[Feature]** Provide ability to create and delete topics from the Web UI (Pro).
9
9
  - **[Feature]** Provide ability to manage topics configuration from the Web UI (Pro).
@@ -29,6 +29,7 @@
29
29
  - [Enhancement] Improve error handling in the commanding iterator listener (Pro).
30
30
  - [Change] Do not fully hide config-disabled features but make them disabled.
31
31
  - [Change] Remove per-consumer process duplicated details from Subscriptions and Jobs tabs.
32
+ - [Change] Move to trusted-publishers and remove signing since no longer needed.
32
33
  - [Refactor] Make sure all temporary topics have a `it-` prefix in their name.
33
34
  - [Refactor] Introduce a `bin/verify_topics_naming` script to ensure proper test topics naming convention.
34
35
  - [Fix] Closest time based lookup redirect fails.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- karafka-web (0.11.0)
4
+ karafka-web (0.11.0.beta3)
5
5
  erubi (~> 1.4)
6
6
  karafka (>= 2.5.0.beta1, < 2.6.0)
7
7
  karafka-core (>= 2.5.0, < 2.6.0)
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/setup'
4
+ require 'bundler/gem_tasks'
data/karafka-web.gemspec CHANGED
@@ -26,11 +26,6 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.required_ruby_version = '>= 3.1.0'
28
28
 
29
- if $PROGRAM_NAME.end_with?('gem')
30
- spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
31
- end
32
-
33
- spec.cert_chain = %w[certs/cert.pem]
34
29
  spec.executables = %w[karafka-web]
35
30
  spec.require_paths = %w[lib]
36
31
 
@@ -54,18 +54,6 @@ module Karafka
54
54
 
55
55
  # Similar to the one related to consumers states
56
56
  MissingConsumersMetricsTopicError = Class.new(BaseError)
57
-
58
- # This error occurs when consumer running older version of the web-ui tries to materialize
59
- # states from newer versions. Karafka Web-UI provides only backwards compatibility, so
60
- # you need to have an up-to-date consumer materializing reported states.
61
- #
62
- # If you see this error, please make sure that the consumer process that is materializing
63
- # your states is running at least the same version as the consumers that are reporting
64
- # the states
65
- #
66
- # If you see this error do not worry. When you get a consumer with up-to-date version,
67
- # all the historical metrics will catch up.
68
- IncompatibleSchemaError = Class.new(BaseError)
69
57
  end
70
58
 
71
59
  # Ui related errors
@@ -71,9 +71,7 @@ module Karafka
71
71
  current_state = Models::ConsumersState.current!
72
72
  @process = Models::Process.find(current_state, process_id)
73
73
 
74
- return render if @process.schema_compatible?
75
-
76
- raise Errors::Ui::IncompatibleSchemaError
74
+ render
77
75
  end
78
76
 
79
77
  # @param process_id [String] id of the process we're interested in
@@ -1,59 +1,50 @@
1
1
  <%# This code is part of Karafka Pro, a commercial component not licensed under LGPL. %>
2
2
  <%# See LICENSE for details. %>
3
3
 
4
- <% if process.schema_compatible? %>
5
- <tr class="status-row-<%= process.status %>">
6
- <td>
7
- <p>
8
- <a href="<%= consumer_path(process.id, 'subscriptions') %>">
9
- <%== truncate(process.id, strategy: :middle) %>
10
- </a>
11
- </p>
12
-
13
- <p class="mt-1">
14
- <%== partial 'consumers/assignments_badges', locals: { process: process } %>
15
- </p>
16
-
17
- <p>
18
- <%== tags(process.tags) %>
19
- </p>
20
- </td>
21
-
22
- <td>
23
- <%== relative_time process.started_at %>
24
- </td>
25
-
26
- <td>
27
- <%== badge_primary_sm format_memory process.memory_usage %>
28
- <%== badge_primary_sm format_memory process.memory_total_usage %>
29
- <%== badge_primary_sm format_memory process.memory_size %>
30
- </td>
31
-
32
- <td>
33
- <span class="badge badge-primary">
34
- <%= process.utilization.round(1) %>%
35
- </span>
36
- <span class="badge badge-primary">
37
- <%= process.workers %> /
38
- <%= process.busy %>
39
- </span>
40
- </td>
41
-
42
- <td>
43
- <% process.cpu_usage.each do |metric| %>
44
- <%== badge_primary_sm metric %>
45
- <% end %>
46
- </td>
47
-
48
- <td>
49
- <%= process.lag_hybrid %>
50
- </td>
51
- </tr>
52
- <% else %>
53
- <%==
54
- partial(
55
- 'consumers/incompatible',
56
- locals: { colspan: 5, process: process }
57
- )
58
- %>
59
- <% end %>
4
+ <tr class="status-row-<%= process.status %>">
5
+ <td>
6
+ <p>
7
+ <a href="<%= consumer_path(process.id, 'subscriptions') %>">
8
+ <%== truncate(process.id, strategy: :middle) %>
9
+ </a>
10
+ </p>
11
+
12
+ <p class="mt-1">
13
+ <%== partial 'consumers/assignments_badges', locals: { process: process } %>
14
+ </p>
15
+
16
+ <p>
17
+ <%== tags(process.tags) %>
18
+ </p>
19
+ </td>
20
+
21
+ <td>
22
+ <%== relative_time process.started_at %>
23
+ </td>
24
+
25
+ <td>
26
+ <%== badge_primary_sm format_memory process.memory_usage %>
27
+ <%== badge_primary_sm format_memory process.memory_total_usage %>
28
+ <%== badge_primary_sm format_memory process.memory_size %>
29
+ </td>
30
+
31
+ <td>
32
+ <span class="badge badge-primary">
33
+ <%= process.utilization.round(1) %>%
34
+ </span>
35
+ <span class="badge badge-primary">
36
+ <%= process.workers %> /
37
+ <%= process.busy %>
38
+ </span>
39
+ </td>
40
+
41
+ <td>
42
+ <% process.cpu_usage.each do |metric| %>
43
+ <%== badge_primary_sm metric %>
44
+ <% end %>
45
+ </td>
46
+
47
+ <td>
48
+ <%= process.lag_hybrid %>
49
+ </td>
50
+ </tr>
@@ -1,71 +1,62 @@
1
1
  <%# This code is part of Karafka Pro, a commercial component not licensed under LGPL. %>
2
2
  <%# See LICENSE for details. %>
3
3
 
4
- <% if process.schema_compatible? %>
5
- <tr class="status-row-<%= process.status %>">
6
- <td>
7
- <a href="<%= consumer_path(process.id, 'subscriptions') %>">
8
- <%== truncate(process.id, strategy: :middle) %>
9
- </a>
10
-
11
- <p class="mt-1">
12
- <%== tags(process.tags) %>
13
- </p>
14
- </td>
15
-
16
- <td>
17
- <%= format_memory process.memory_usage %>
18
- </td>
19
-
20
- <td>
21
- <%= process.utilization.round(1) %>%
22
- </td>
23
-
24
- <td>
25
- <%= process.threads %>
26
- </td>
27
-
28
- <td>
29
- <%= process.cpu_usage[0].to_f %>
30
- </td>
31
-
32
- <td>
33
- <%= process.cpu_usage[1].to_f %>
34
- </td>
35
-
36
- <td>
37
- <%= process.cpu_usage[2].to_f %>
38
- </td>
39
-
40
- <td>
41
- <%= process.workers %>
42
- </td>
43
-
44
- <td>
45
- <%= process.busy %>
46
- </td>
47
-
48
- <td>
49
- <%= process.listeners.fetch(:active) %>
50
- </td>
51
-
52
- <td>
53
- <%= process.listeners.fetch(:standby) %>
54
- </td>
55
-
56
- <td>
57
- <%= process.jobs.running.count %>
58
- </td>
59
-
60
- <td>
61
- <%= process.jobs.pending.count %>
62
- </td>
63
- </tr>
64
- <% else %>
65
- <%==
66
- partial(
67
- 'consumers/incompatible',
68
- locals: { colspan: 12, process: process }
69
- )
70
- %>
71
- <% end %>
4
+ <tr class="status-row-<%= process.status %>">
5
+ <td>
6
+ <a href="<%= consumer_path(process.id, 'subscriptions') %>">
7
+ <%== truncate(process.id, strategy: :middle) %>
8
+ </a>
9
+
10
+ <p class="mt-1">
11
+ <%== tags(process.tags) %>
12
+ </p>
13
+ </td>
14
+
15
+ <td>
16
+ <%= format_memory process.memory_usage %>
17
+ </td>
18
+
19
+ <td>
20
+ <%= process.utilization.round(1) %>%
21
+ </td>
22
+
23
+ <td>
24
+ <%= process.threads %>
25
+ </td>
26
+
27
+ <td>
28
+ <%= process.cpu_usage[0].to_f %>
29
+ </td>
30
+
31
+ <td>
32
+ <%= process.cpu_usage[1].to_f %>
33
+ </td>
34
+
35
+ <td>
36
+ <%= process.cpu_usage[2].to_f %>
37
+ </td>
38
+
39
+ <td>
40
+ <%= process.workers %>
41
+ </td>
42
+
43
+ <td>
44
+ <%= process.busy %>
45
+ </td>
46
+
47
+ <td>
48
+ <%= process.listeners.fetch(:active) %>
49
+ </td>
50
+
51
+ <td>
52
+ <%= process.listeners.fetch(:standby) %>
53
+ </td>
54
+
55
+ <td>
56
+ <%= process.jobs.running.count %>
57
+ </td>
58
+
59
+ <td>
60
+ <%= process.jobs.pending.count %>
61
+ </td>
62
+ </tr>
@@ -1,107 +1,98 @@
1
1
  <%# This code is part of Karafka Pro, a commercial component not licensed under LGPL. %>
2
2
  <%# See LICENSE for details. %>
3
3
 
4
- <% if process.schema_compatible? %>
5
- <tr class="status-row-<%= process.status %>">
6
- <td>
7
- <a href="<%= consumer_path(process.id, 'subscriptions') %>">
8
- <%== truncate(process.id, strategy: :middle) %>
9
- </a>
4
+ <tr class="status-row-<%= process.status %>">
5
+ <td>
6
+ <a href="<%= consumer_path(process.id, 'subscriptions') %>">
7
+ <%== truncate(process.id, strategy: :middle) %>
8
+ </a>
10
9
 
11
- <p class="mt-1">
12
- <%== tags(process.tags) %>
13
- </p>
14
- </td>
10
+ <p class="mt-1">
11
+ <%== tags(process.tags) %>
12
+ </p>
13
+ </td>
15
14
 
16
- <td>
17
- <div class="badge <%= status_badge(process.status) %>">
18
- <%= process.status %>
19
- </div>
20
- </td>
15
+ <td>
16
+ <div class="badge <%= status_badge(process.status) %>">
17
+ <%= process.status %>
18
+ </div>
19
+ </td>
21
20
 
22
- <td>
23
- <%== partial 'consumers/assignments_badges', locals: { process: process } %>
24
- </td>
21
+ <td>
22
+ <%== partial 'consumers/assignments_badges', locals: { process: process } %>
23
+ </td>
25
24
 
26
- <td>
27
- <%== relative_time process.started_at %>
28
- </td>
25
+ <td>
26
+ <%== relative_time process.started_at %>
27
+ </td>
29
28
 
30
- <td>
31
- <span class="badge badge-primary">
32
- <%= format_memory process.memory_usage %>
33
- </span>
34
- </td>
29
+ <td>
30
+ <span class="badge badge-primary">
31
+ <%= format_memory process.memory_usage %>
32
+ </span>
33
+ </td>
35
34
 
36
- <td>
37
- <span class="badge badge-primary">
38
- <%= process.utilization.round(1) %>%
39
- </span>
40
- <span class="badge badge-primary">
41
- <%= process.workers %> /
42
- <%= process.busy %>
43
- </span>
44
- </td>
35
+ <td>
36
+ <span class="badge badge-primary">
37
+ <%= process.utilization.round(1) %>%
38
+ </span>
39
+ <span class="badge badge-primary">
40
+ <%= process.workers %> /
41
+ <%= process.busy %>
42
+ </span>
43
+ </td>
45
44
 
46
- <td>
47
- <%= process.lag_hybrid %>
48
- </td>
45
+ <td>
46
+ <%= process.lag_hybrid %>
47
+ </td>
49
48
 
50
- <td class="commands-inline-3">
51
- <%
52
- trace_path = consumers_path('commanding', process.id, 'trace')
53
- disabled_class = process.status != 'stopped' ? '' : 'btn-disabled'
54
- %>
55
- <form action="<%= trace_path %>" method="post" class="inline" title="Trace">
56
- <%== csrf_tag(trace_path) %>
49
+ <td class="commands-inline-3">
50
+ <%
51
+ trace_path = consumers_path('commanding', process.id, 'trace')
52
+ disabled_class = process.status != 'stopped' ? '' : 'btn-disabled'
53
+ %>
54
+ <form action="<%= trace_path %>" method="post" class="inline" title="Trace">
55
+ <%== csrf_tag(trace_path) %>
57
56
 
58
- <button type="submit" class="btn btn-info btn-sm btn-lockable <%= disabled_class %>">
59
- <%== icon(:gear) %>
60
- </button>
61
- </form>
57
+ <button type="submit" class="btn btn-info btn-sm btn-lockable <%= disabled_class %>">
58
+ <%== icon(:gear) %>
59
+ </button>
60
+ </form>
62
61
 
63
- <%
64
- quiet_path = consumers_path('commanding', process.id, 'quiet')
65
- disabled_class = process.status == 'running' ? '' : 'btn-disabled'
62
+ <%
63
+ quiet_path = consumers_path('commanding', process.id, 'quiet')
64
+ disabled_class = process.status == 'running' ? '' : 'btn-disabled'
66
65
 
67
- if process.execution_mode == 'standalone'
68
- title = 'Quiet'
69
- else
70
- disabled_class = 'btn-disabled'
71
- title = 'Supported only in standalone consumer processes'
72
- end
73
- %>
74
- <form action="<%= quiet_path %>" method="post" class="inline" title="<%= title %>">
75
- <%== csrf_tag(quiet_path) %>
76
- <button type="submit" class="btn btn-warning btn-sm btn-lockable <%= disabled_class %>">
77
- <%== icon(:pause) %>
78
- </button>
79
- </form>
66
+ if process.execution_mode == 'standalone'
67
+ title = 'Quiet'
68
+ else
69
+ disabled_class = 'btn-disabled'
70
+ title = 'Supported only in standalone consumer processes'
71
+ end
72
+ %>
73
+ <form action="<%= quiet_path %>" method="post" class="inline" title="<%= title %>">
74
+ <%== csrf_tag(quiet_path) %>
75
+ <button type="submit" class="btn btn-warning btn-sm btn-lockable <%= disabled_class %>">
76
+ <%== icon(:pause) %>
77
+ </button>
78
+ </form>
80
79
 
81
- <%
82
- stop_path = consumers_path('commanding', process.id, 'stop')
83
- disabled_class = process.status != 'stopping' && process.status != 'stopped' ? '' : 'btn-disabled'
80
+ <%
81
+ stop_path = consumers_path('commanding', process.id, 'stop')
82
+ disabled_class = process.status != 'stopping' && process.status != 'stopped' ? '' : 'btn-disabled'
84
83
 
85
- if process.execution_mode == 'standalone'
86
- title = 'Stop'
87
- else
88
- disabled_class = 'btn-disabled'
89
- title = 'Supported only in standalone consumer processes'
90
- end
91
- %>
92
- <form action="<%= stop_path %>" method="post" class="inline" title="<%= title %>">
93
- <%== csrf_tag(stop_path) %>
94
- <button type="submit" class="btn btn-error btn-sm btn-lockable <%= disabled_class %>">
95
- <%== icon(:stop) %>
96
- </button>
97
- </form>
98
- </td>
99
- </tr>
100
- <% else %>
101
- <%==
102
- partial(
103
- 'consumers/incompatible',
104
- locals: { colspan: 7, process: process }
105
- )
106
- %>
107
- <% end %>
84
+ if process.execution_mode == 'standalone'
85
+ title = 'Stop'
86
+ else
87
+ disabled_class = 'btn-disabled'
88
+ title = 'Supported only in standalone consumer processes'
89
+ end
90
+ %>
91
+ <form action="<%= stop_path %>" method="post" class="inline" title="<%= title %>">
92
+ <%== csrf_tag(stop_path) %>
93
+ <button type="submit" class="btn btn-error btn-sm btn-lockable <%= disabled_class %>">
94
+ <%== icon(:stop) %>
95
+ </button>
96
+ </form>
97
+ </td>
98
+ </tr>
@@ -1,51 +1,42 @@
1
1
  <%# This code is part of Karafka Pro, a commercial component not licensed under LGPL. %>
2
2
  <%# See LICENSE for details. %>
3
3
 
4
- <% if job.process.schema_compatible? %>
5
- <tr>
6
- <td>
7
- <a href="<%= consumer_path(job.process.id, 'subscriptions') %>">
8
- <%== truncate(job.process.id, strategy: :middle) %>
9
- </a>
10
- </td>
11
- <td>
12
- <span class="badge badge-secondary" title="Consumer group: <%= job.consumer_group %>">
13
- <%= job.topic %>:
14
- <%= job.partition %>
15
- </span>
16
- </td>
17
- <td>
18
- <code><%= job.consumer %></code>
4
+ <tr>
5
+ <td>
6
+ <a href="<%= consumer_path(job.process.id, 'subscriptions') %>">
7
+ <%== truncate(job.process.id, strategy: :middle) %>
8
+ </a>
9
+ </td>
10
+ <td>
11
+ <span class="badge badge-secondary" title="Consumer group: <%= job.consumer_group %>">
12
+ <%= job.topic %>:
13
+ <%= job.partition %>
14
+ </span>
15
+ </td>
16
+ <td>
17
+ <code><%= job.consumer %></code>
19
18
 
20
- <% unless job.tags.empty? %>
21
- <br/>
22
- <%== tags(job.tags) %>
23
- <% end %>
24
- </td>
25
- <td>
26
- <code>#<%= job.type %></code>
27
- </td>
28
- <td>
29
- <%= job.messages %>
30
- </td>
31
- <td>
32
- <%== offset_with_label job.topic, job.partition, job.first_offset, explore: true %>
33
- </td>
34
- <td>
35
- <%== offset_with_label job.topic, job.partition, job.last_offset, explore: true %>
36
- </td>
37
- <td>
38
- <%== offset_with_label job.topic, job.partition, job.committed_offset %>
39
- </td>
40
- <td>
41
- <%== relative_time job.updated_at %>
42
- </td>
43
- </tr>
44
- <% else %>
45
- <%==
46
- partial(
47
- 'consumers/incompatible',
48
- locals: { colspan: 8, process: job.process }
49
- )
50
- %>
51
- <% end %>
19
+ <% unless job.tags.empty? %>
20
+ <br/>
21
+ <%== tags(job.tags) %>
22
+ <% end %>
23
+ </td>
24
+ <td>
25
+ <code>#<%= job.type %></code>
26
+ </td>
27
+ <td>
28
+ <%= job.messages %>
29
+ </td>
30
+ <td>
31
+ <%== offset_with_label job.topic, job.partition, job.first_offset, explore: true %>
32
+ </td>
33
+ <td>
34
+ <%== offset_with_label job.topic, job.partition, job.last_offset, explore: true %>
35
+ </td>
36
+ <td>
37
+ <%== offset_with_label job.topic, job.partition, job.committed_offset %>
38
+ </td>
39
+ <td>
40
+ <%== relative_time job.updated_at %>
41
+ </td>
42
+ </tr>
@@ -29,14 +29,14 @@ module Karafka
29
29
 
30
30
  raise ::Karafka::Web::Errors::Processing::IncompatibleSchemaError
31
31
  # Older reports mean someone is in the middle of upgrade. Schema change related
32
- # upgrades always should happen without a rolling-upgrade, hence we can reject those
33
- # requests without significant or any impact on data quality but without having to
34
- # worry about backwards compatibility. Errors are tracked independently, so it should
35
- # not be a problem.
36
- #
37
- # In case user wants to do a rolling upgrade, the user docs state that this can happen
38
- # and it is something user should be aware
32
+ # upgrades always should happen without a rolling-upgrade. For such, since we cannot
33
+ # reason about their statistics structure, we only track state, so we can provide
34
+ # basic upgrade reporting details in the status page. All other data is rejected and
35
+ # since in most cases this is intermediate due to rolling upgrades, this should not
36
+ # significantly impact the state tracking and processing.
39
37
  when :older
38
+ @state_aggregator.add_state(message.payload, message.offset)
39
+
40
40
  next
41
41
  else
42
42
  raise ::Karafka::Errors::UnsupportedCaseError