Skip to content

Commit a5749ee

Browse files
author
Henrik Adamski
authored
ITADMIN-2187 - Fix Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table (#19)
* Fix Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table * Fix build
1 parent 830c960 commit a5749ee

File tree

4 files changed

+30
-3
lines changed

4 files changed

+30
-3
lines changed

.github/workflows/review.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
review:
9+
timeout-minutes: 30
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v1
15+
16+
- name: project-version-check
17+
id: project_version_check
18+
uses: avides/actions-project-version-check@v1
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
file-to-check: version.txt
22+
additional-files-to-check: README.md
23+
24+
- name: build-image
25+
run: |
26+
export PROJECT_VERSION=${{ steps.project_version_check.outputs.version }}
27+
docker build -t ${GITHUB_REPOSITORY}:${PROJECT_VERSION} -t ${GITHUB_REPOSITORY}:latest .

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ docker run \
2626
--env MYSQL_BACKUP_USER="root" \
2727
--env MYSQL_BACKUP_PASS="MYSQL_BACKUP_PASS" \
2828
-p 9300:9300 \
29-
avides/mysql-s3-backup:2.5.0
29+
avides/mysql-s3-backup:2.5.1
3030
```
3131

3232
### Build & Test

functions.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function backup_mysql
4646
tail -n1 pipe > dump_logs/$databaseName/$tableName.log &
4747
PIDOF_SUCCESS_CHECK=$!
4848

49-
mysqldump --host=$DB_HOST --port=$DB_PORT --user=$DB_USER --password=$DB_PASSWORD $databaseName $tableName | tee pipe | gzip > $STORAGE_PATH/$databaseName/$tableName.sql.gz
49+
mysqldump --max_allowed_packet=512M --host=$DB_HOST --port=$DB_PORT --user=$DB_USER --password=$DB_PASSWORD $databaseName $tableName | tee pipe | gzip > $STORAGE_PATH/$databaseName/$tableName.sql.gz
5050
rm pipe
5151
wait $PIDOF_SUCCESS_CHECK
5252

version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.0
1+
2.5.1

0 commit comments

Comments
 (0)