Page MenuHomeDevCentral

Correct typo in sentry_post_process_forwarder_transactions
ClosedPublic

Authored by dereckson on Apr 2 2023, 11:43.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 04:32
Unknown Object (File)
Sat, Nov 16, 00:45
Unknown Object (File)
Tue, Nov 12, 03:29
Unknown Object (File)
Mon, Nov 11, 21:39
Unknown Object (File)
Mon, Nov 11, 17:15
Unknown Object (File)
Sun, Nov 10, 16:29
Unknown Object (File)
Wed, Nov 6, 06:28
Unknown Object (File)
Sun, Nov 3, 00:18
Subscribers
None

Details

Summary

This is a follow-up for 3674f069.

Test Plan
  • Stop and delete container sentry_post_process_forwarder_transations
  • Deploy this change

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Apr 2 2023, 11:43

A Kafka offset reset was needed:

docker-002
$ docker stop sentry_post_process_forwarder_transations
$ docker rm sentry_post_process_forwarder_transations
$ docker exec sentry_kafka kafka-consumer-groups --bootstrap-server localhost:9092 --group snuba-post-processor -describe

GROUP                TOPIC           PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID                                  HOST            CLIENT-ID
snuba-post-processor events          0          52              52              0               rdkafka-2455812f-6810-440c-86ab-0c068604da4f /172.18.3.24    rdkafka
snuba-post-processor transactions    0          887             888             1               -                                            -               -
$ docker stop sentry_post_process_forwarder_errors
$ docker exec sentry_kafka kafka-consumer-groups --bootstrap-server localhost:9092 --group snuba-post-processor --topic transactions --reset-offsets --to-latest --execute --export
transactions,0,888
$ sudo salt-call state.sls_id sentry_post_process_forwarder_transactions roles/paas-docker/containers/sentry
local:
----------
          ID: sentry_post_process_forwarder_transactions
    Function: docker_container.running
      Result: True
     Comment: Created container 'sentry_post_process_forwarder_transactions'
     Started: 11:55:55.547541
    Duration: 3409.624 ms
     Changes:
              ----------
              container:
                  ----------
                  Networks:
                      ----------
                      bridge:
                          ----------
                          IPConfiguration:
                              ----------
                              new:
                                  not connected
                              old:
                                  automatic
                      sentry:
                          ----------
                          Gateway:
                              ----------
                              new:
                                  172.18.3.1
                              old:
                                  None
                          IPAddress:
                              ----------
                              new:
                                  172.18.3.24
                              old:
                                  None
              container_id:
                  ----------
                  added:
                      3a61b05ec1b2d1d4b9c54a1f16d096acffb2d6b1e2f61eb399686d5aa82e74f9
              state:
                  ----------
                  new:
                      running
                  old:
                      None

Summary for local
------------
Succeeded: 1 (changed=1)
Failed:    0
------------
Total states run:     1
Total run time:   3.410 s
$ docker start sentry_post_process_forwarder_errors
sentry_post_process_forwarder_errors

A few seconds after sentry_post_process_forwarder_transactions container launch:

$ kafka-consumer-groups --bootstrap-server localhost:9092 --group snuba-post-processor -describe

GROUP                TOPIC           PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID                                  HOST            CLIENT-ID
snuba-post-processor events          0          52              52              0               rdkafka-20c02ea7-440f-45ab-8adf-2f40c4f70b8f /172.18.3.23    rdkafka
snuba-post-processor transactions    0          888             888             0               rdkafka-063876c1-2a2c-4431-a052-8b12bc25e1fd /172.18.3.24    rdkafka