Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Colossus] fix: upload aborted error #5094

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@oclif/test": "^1.2.5",
"@types/chai": "^4.2.11",
"@types/mocha": "^5.2.7",
"@types/node": "^10.17.18",
"@types/node": "^18.6.0",
"chai": "^4.2.0",
"eslint": "^7.6.0",
"eslint-config-oclif": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/argus/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eks-cluster",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/aws": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/node-network/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "joystream-node-network",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/aws": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/orion/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eks-cluster",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/awsx": "^0.30.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/pulumi-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pulumi-common",
"version": "1.0.0",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/kubernetes": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/query-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "query-node",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/aws": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion devops/kubernetes/storage-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eks-cluster",
"devDependencies": {
"@types/node": "^10.0.0"
"@types/node": "^18.6.0"
},
"dependencies": {
"@pulumi/aws": "^4.0.0",
Expand Down
4 changes: 4 additions & 0 deletions distributor-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 2.0.0

- Replaced `Query-Node` API with `Storage-Squid` Graphql API. This is a breaking change and requires the `endpoints.queryNode` configuration option to be replaced with `endpoints.storageSquid`.

## 1.5.1

- Added parsing of Axios errors on logger level so that we never log the whole Axios client instance (which is a circular object and causes the node to crash)
Expand Down
2 changes: 1 addition & 1 deletion distributor-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@types/inquirer": "^8.1.1",
"@types/mime": "^3.0.1",
"@types/mocha": "^5",
"@types/node": "^14",
"@types/node": "^18.6.0",
"@types/node-cache": "^4.2.5",
"@types/node-cleanup": "^2.1.1",
"@types/send": "^0.17.0",
Expand Down
9 changes: 9 additions & 0 deletions storage-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
### 4.0.1

- Set the `server.requestTimeout` option in `http.Server` instance to 0 to disable the timeout. This was default behaviour pre Node.js `18.x`

### 4.0.0

- Replaced `Query-Node` API with `Storage-Squid` Graphql API. This is a breaking change and requires the `--queryNodeEndpoint` configuration option to be replaced with `--storageSquidEndpoint`.

### 3.10.2

- Fix processing large arrays causing high cpu during sync and cleanup runs [#5033](https://github.com/Joystream/joystream/pull/5033)

- Fix task runner to avoid ending prematurely on individual task failure [#5033](https://github.com/Joystream/joystream/pull/5033)
Expand Down
4 changes: 2 additions & 2 deletions storage-node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "storage-node",
"description": "Joystream storage subsystem.",
"version": "4.0.0",
"version": "4.0.1",
"author": "Joystream contributors",
"bin": {
"storage-node": "./bin/run"
Expand Down Expand Up @@ -79,7 +79,7 @@
"@types/chai": "^4",
"@types/cors": "^2.8.12",
"@types/mocha": "^5",
"@types/node": "^10",
"@types/node": "^18.6.0",
"@types/pg": "^8.6.1",
"@types/swagger-ui-express": "^4.1.2",
"@types/ws": "^5.1.2",
Expand Down
6 changes: 5 additions & 1 deletion storage-node/src/commands/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,11 @@ Supported values: warn, error, debug, info. Default:debug`,
},
x_host_id: X_HOST_ID,
})
app.listen(port, () => logger.info(`Listening on http://localhost:${port}`))
const server = app.listen(port, () => logger.info(`Listening on http://localhost:${port}`))

// INFO: https://nodejs.org/dist/latest-v18.x/docs/api/http.html#serverrequesttimeout
// Set the server request timeout to 0 to disable it. This was default behaviour pre Node.js 18.x
server.requestTimeout = 0
Copy link
Member

@mnaamani mnaamani Mar 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes sense to have the timeout disabled, provided the node is always behind a reverse proxy and not exposed on a public interface.

Alternatively we can have a non zero timeout, but larger value of say 20min, better than default of 5min?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or disabled timeout but make sure docs and our default deployment configs do not expose public interface.. ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My initial idea was to set a env var as a parameter named MAX_REQUEST_TIMEOUT = 20 * 60 * 1000 (20 mins in milliseconds) so that it can be set by the user.

} catch (err) {
logger.error(`Server error: ${err}`)
this.exit(ExitCodes.ServerError)
Expand Down
2 changes: 1 addition & 1 deletion utils/migration-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@graphql-codegen/typescript-document-nodes": "^1.17.11",
"@graphql-codegen/typescript-operations": "^1.17.16",
"@oclif/dev-cli": "^1",
"@types/node": "^14",
"@types/node": "^18.6.0",
"globby": "^10",
"ts-node": "^10.9.1",
"typescript": "^3.3"
Expand Down
19 changes: 13 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4934,7 +4934,7 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.2.5.tgz#26d295f3570323b2837d322180dfbf1ba156fefb"
integrity sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==

"@types/node@^10", "@types/node@^10.0.3", "@types/node@^10.1.0", "@types/node@^10.17.18":
"@types/node@^10.0.3", "@types/node@^10.1.0":
version "10.17.60"
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b"
integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==
Expand All @@ -4944,16 +4944,18 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.20.52.tgz#2fd2dc6bfa185601b15457398d4ba1ef27f81251"
integrity sha512-cfkwWw72849SNYp3Zx0IcIs25vABmFh73xicxhCkTcvtZQeIez15PpwQN8fY3RD7gv1Wrxlc9MEtfMORZDEsGw==

"@types/node@^14":
version "14.18.18"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.18.tgz#5c9503030df484ccffcbb935ea9a9e1d6fad1a20"
integrity sha512-B9EoJFjhqcQ9OmQrNorItO+OwEOORNn3S31WuiHvZY/dm9ajkB7AKD/8toessEtHHNL+58jofbq7hMMY9v4yig==

"@types/node@^14.11.2":
version "14.18.22"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.22.tgz#fd2a15dca290fc9ad565b672fde746191cd0c6e6"
integrity sha512-qzaYbXVzin6EPjghf/hTdIbnVW1ErMx8rPzwRNJhlbyJhu2SyqlvjGOY/tbUt6VFyzg56lROcOeSQRInpt63Yw==

"@types/node@^18.6.0":
version "18.19.22"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.22.tgz#f622f92514b897e6b09903e97c16a0db8e94689f"
integrity sha512-p3pDIfuMg/aXBmhkyanPshdfJuX5c5+bQjYLIikPLXAUycEogij/c50n/C+8XOA5L93cU4ZRXtn+dNQGi0IZqQ==
dependencies:
undici-types "~5.26.4"

"@types/node@^8.0.0":
version "8.10.66"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.66.tgz#dd035d409df322acc83dff62a602f12a5783bbb3"
Expand Down Expand Up @@ -21526,6 +21528,11 @@ underscore@1.6.0:
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.6.0.tgz#8b38b10cacdef63337b8b24e4ff86d45aea529a8"
integrity sha1-izixDKze9jM3uLJOT/htRa6lKag=

undici-types@~5.26.4:
version "5.26.5"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==

undici@^5.1.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/undici/-/undici-5.2.0.tgz#18c5bd59f8f1b1ed8dcc9dca2f754c44ec994059"
Expand Down
Loading