Skip to content

Commit 3ec8498

Browse files
authored
IGNITE-27789 Remove file transfer module (#7627)
1 parent 4187d5f commit 3ec8498

54 files changed

Lines changed: 12 additions & 4764 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.teamcity/org/apache/ignite/teamcity/ApacheIgnite3Teamcity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class ApacheIgnite3Teamcity {
7979
"Examples",
8080
"ignite-examples"
8181
)
82-
private val IGNITE__FILE_IO = GradleModule(
82+
private val IGNITE__FILE_IO = GradleModule(
8383
"File IO",
8484
"ignite-file-io"
8585
)

docs/docs/configure-and-operate/operations/handle-exceptions.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ When the exception happens, Apache Ignite provides a UUID of the specific except
165165
|---|---|---|
166166
| `IGN-NETWORK-1` | The node with the specified ID is not in the physical topology. | Check the error message and node ID. Update node ID if it is incorrect. If the node is offline, check why and bring it back online. |
167167
| `IGN-NETWORK-2` | Port is already in use. | Most likely, Apache Ignite tried to access the port occupied by a different process. Change the port or free it, and then restart the node. |
168-
| `IGN-NETWORK-3` | File transfer error. | Check network connectivity and retry the file transfer. |
169-
| `IGN-NETWORK-4` | File validation error. | Ensure the file is not corrupted. |
170168
| `IGN-NETWORK-5` | Recipient node has left the physical topology. | Check the error message. The node is unavailable and need to be brought back into the cluster. |
171169
| `IGN-NETWORK-6` | Could not resolve address. Most likely, the IP address specified in the operation is not available locally. | Change the node configuration to make the address available or use a different IP address. |
172170

docs/docs/configure-and-operate/reference/node-configuration.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,6 @@ Example configuration with a `STATIC` node finder:
128128
{
129129
"ignite" : {
130130
"network" : {
131-
"fileTransfer" : {
132-
"chunkSizeBytes" : 1048576,
133-
"maxConcurrentRequests" : 4,
134-
"responseTimeoutMillis" : 10000,
135-
"threadPoolSize" : 8
136-
},
137131
"inbound" : {
138132
"soBacklog" : 128,
139133
"soKeepAlive" : true,
@@ -205,11 +199,6 @@ To switch to a `MULTICAST` node finder, update the `nodeFinder` section in your
205199

206200
| Property | Default | Description | Changeable | Requires Restart | Acceptable Values |
207201
|----------|---------|-------------|------------|------------------|-------------------|
208-
| fileTransfer | | File transfer configuration. | | | |
209-
| fileTransfer.chunkSizeBytes | 1048576 | Chunk size in bytes. | Yes | Yes | 1 - Integer.MAX_VALUE |
210-
| fileTransfer.maxConcurrentRequests | 4 | Maximum number of concurrent requests. | Yes | Yes | 1 - Integer.MAX_VALUE |
211-
| fileTransfer.responseTimeoutMillis | 10000 | Node response timeout during file transfer. | Yes | Yes | 0 - inf |
212-
| fileTransfer.threadPoolSize | 8 | File sender thread pool size. | Yes | Yes | 1 - Integer.MAX_VALUE |
213202
| inbound | | Server socket configuration. See [TCP documentation](https://man7.org/linux/man-pages/man7/tcp.7.html) and [socket documentation](https://man7.org/linux/man-pages/man7/socket.7.html) for more information. | | | |
214203
| inbound.soBacklog | 128 | The size of the backlog. | Yes | Yes | 0 - Integer.MAX_VALUE |
215204
| inbound.soKeepAlive | true | Defines if the keep-alive packets are allowed. | Yes | Yes | true, false |

docs/versioned_docs/version-3.0.0/administrators-guide/config/node-config.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,6 @@ In Apache Ignite 3, you can choose between two node discovery types. With `STATI
146146
{
147147
"ignite" : {
148148
"network" : {
149-
"fileTransfer" : {
150-
"chunkSizeBytes" : 1048576,
151-
"maxConcurrentRequests" : 4,
152-
"responseTimeoutMillis" : 10000,
153-
"threadPoolSize" : 8
154-
},
155149
"inbound" : {
156150
"soBacklog" : 128,
157151
"soKeepAlive" : true,
@@ -223,11 +217,6 @@ In Apache Ignite 3, you can choose between two node discovery types. With `STATI
223217

224218
| Property | Default | Description | Changeable | Requires Restart | Acceptable Values |
225219
|----------|---------|-------------|------------|------------------|-------------------|
226-
| fileTransfer | | File transfer configuration. | | | |
227-
| fileTransfer.chunkSizeBytes | 1048576 | Chunk size in bytes. | Yes | Yes | 1 - Integer.MAX_VALUE |
228-
| fileTransfer.maxConcurrentRequests | 4 | Maximum number of concurrent requests. | Yes | Yes | 1 - Integer.MAX_VALUE |
229-
| fileTransfer.responseTimeoutMillis | 10000 | Node response timeout during file transfer. | Yes | Yes | 0 - inf |
230-
| fileTransfer.threadPoolSize | 8 | File sender thread pool size. | Yes | Yes | 1 - Integer.MAX_VALUE |
231220
| inbound | | Server socket configuration. See [TCP documentation](https://man7.org/linux/man-pages/man7/tcp.7.html) and [socket documentation](https://man7.org/linux/man-pages/man7/socket.7.html) for more information. | | | |
232221
| inbound.soBacklog | 128 | The size of the backlog. | Yes | Yes | 0 - Integer.MAX_VALUE |
233222
| inbound.soKeepAlive | true | Defines if the keep-alive packets are allowed. | Yes | Yes | true, false |

modules/api/src/main/java/org/apache/ignite/lang/ErrorGroups.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -554,11 +554,8 @@ public static class Network {
554554
/** Address or port bind error. */
555555
public static final int BIND_ERR = NETWORK_ERR_GROUP.registerErrorCode((short) 2);
556556

557-
/** File transfer error. */
558-
public static final int FILE_TRANSFER_ERR = NETWORK_ERR_GROUP.registerErrorCode((short) 3);
559-
560-
/** File validation error. */
561-
public static final int FILE_VALIDATION_ERR = NETWORK_ERR_GROUP.registerErrorCode((short) 4);
557+
// Error codes 3 (FILE_TRANSFER_ERR) and 4 (FILE_VALIDATION_ERR) were removed along with the file-transfer module.
558+
// These codes are reserved forever and must not be reused.
562559

563560
/** Recipient node has left the physical topology. */
564561
public static final int RECIPIENT_LEFT_ERR = NETWORK_ERR_GROUP.registerErrorCode((short) 5);

modules/compatibility-tests/src/test/java/org/apache/ignite/internal/ApiCompatibilityTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ class ApiCompatibilityTest {
6565
"3.1.0", List.of(
6666
// Erroneous error code remove between versions
6767
"org.apache.ignite.lang.ErrorGroups$DisasterRecovery#RESTART_WITH_CLEAN_UP_ERR",
68+
// Removed along with the file-transfer module
69+
"org.apache.ignite.lang.ErrorGroups$Network#FILE_TRANSFER_ERR",
70+
"org.apache.ignite.lang.ErrorGroups$Network#FILE_VALIDATION_ERR",
6871
"org.apache.ignite.table.KeyValueView" // METHOD_ABSTRACT_NOW_DEFAULT
6972
+ "#remove(org.apache.ignite.tx.Transaction, java.lang.Object, java.lang.Object)",
7073
"org.apache.ignite.table.KeyValueView" // METHOD_ABSTRACT_NOW_DEFAULT

modules/file-transfer/README.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

modules/file-transfer/build.gradle

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)