Commit 431d7cd3 authored by Sean McGivern's avatar Sean McGivern Committed by Quang-Minh Nguyen

Apply 2 suggestion(s) to 2 file(s)

parent 4bcc3573
......@@ -2,4 +2,4 @@
title: Compress oversized Sidekiq job payload before dispatching into Redis
merge_request: 61667
author:
type: performance
type: added
......@@ -41,7 +41,7 @@ module Gitlab
def self.validate_args!(job)
if job['args'] && job['args'].length != 1
exception = PayloadDecompressionConflictError.new('Sidekiq argument list should include 1 argument.\
There should be a middleware interferes the job payload.\
This means that there is another a middleware interfering with the job payload.\
That conflicts with the payload compressor')
::Gitlab::ErrorTracking.track_and_raise_exception(exception)
end
......
......@@ -91,7 +91,7 @@ RSpec.describe Gitlab::SidekiqMiddleware::SizeLimiter::Compressor do
context 'job payload is not compressed' do
let(:payload) { base_payload.merge("args" => ['hello']) }
it 'reserves the payload after decompression' do
it 'preserves the payload after decompression' do
original_payload = payload.deep_dup
described_class.decompress(payload)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment