ps-dont-set-content-to-nil-while-aggregating Run COALESCE on log parts aggregate

If there're no parts for a given log array_to_string will return NULL
and in consequence concatenation will also return NULL (because as it
turns out `'' || NULL` returns NULL). This theoretically shouldn't
happen, because aggregate service gets only logs that contain parts, but
if a restart is performed while the aggregate service runs, it can
potentially clear log parts for a log that is already scheduled for
aggregation.

Piotr Sarnacki avatar Piotr Sarnacki

Push event #1585 passed

  • Ran for
  • Total time
The .travis.yml file used for this job is not available
Build Config
{
  "rvm": [
    "2.4.2"
  ],
  "dist": "trusty",
  "jobs": {
    "include": [
      {
        "stage": "Testing time"
      },
      {
        "dist": "trusty",
        "sudo": "required",
        "stage": ":ship: it to Quay.io",
        "script": "./script/docker-build-and-push",
        "install": "skip",
        "before_script": "skip"
      }
    ]
  },
  "sudo": "required",
  "cache": {
    "bundler": true,
    "directories": [
      "${HOME}/perl5",
      "${HOME}/.cache"
    ]
  },
  "addons": {
    "apt": {
      "packages": [
        "postgresql-server-dev-9.6"
      ]
    },
    "postgresql": 9.6
  },
  "language": "ruby",
  "services": [
    "redis",
    "rabbitmq"
  ],
  "before_script": [
    "bundle exec rake setup"
  ],
  "before_install": [
    "script/install-sqitch",
    "script/install-partman",
    "eval \"$(perl -I ~/perl5/lib/perl5/ '-Mlocal::lib')\"",
    "gem update bundler"
  ]
}