-
Notifications
You must be signed in to change notification settings - Fork 9
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
No replica created with composable resources #108
Comments
That is surprising - we'll look into reproducing it here. |
As a workaround in the meantime, you can run |
Thought streaming (open/write/close) was the culprit... but...
|
This is likely caused by the openType not being set in the dataObjInp when calling rsDataObjOpen. fileModified is only triggered when the openType is set to CREATE_TYPE or OPEN_FOR_WRITE_TYPE: The regParam passed to this API is constructed using the keywords found in the L1 descriptor, which is populated in open. See replica_close API plugin: ...and rsDataObjClose API: https://github.com/irods/irods/blob/9eb6c23df45cdedff8ee9c3af71a65d304635037/server/api/src/rsDataObjClose.cpp#L306 |
The latest NFSRODS commits do not fix this issue (NFSRODS: 77b54c9, iRODS: irods/irods@9c57ce9). However, the results show that additional replicas are created. The good replica has the correct size while the stale replica does not. $ ilsresc
demoResc:unixfilesystem
pt:passthru
└── repl:replication
├── ufs0:unixfilesystem
└── ufs1:unixfilesystem
$ cp <file> /mnt/nfsrods/foo # NFSRODS is configured to target the "pt" resource.
$ ils -l
/tempZone/home/kory:
kory 0 pt;repl;ufs0 2001391 2022-01-26.13:55 & foo
kory 1 pt;repl;ufs1 0 2022-01-26.13:55 X foo We're close, but this still needs some work. |
Kory if we can chat tomorrow we can issue a patch
|
sure thing. |
See irods/irods#6142 |
I believe this is now handled in NFSRODS 2.1.0 due to Jargon 4.3.2.5-SNAPSHOT. |
We'll need to verify that using various file sizes. |
Confirmed PR #202 does not resolve this issue. The file is uploaded correctly. The first replica has the correct size and is marked good. The physical size is correct too. The second replica has a size of 0 in the catalog and is marked stale. The second replica's physical size is 0. |
We are testing NFSRODS (v1.0.0) and iRODS 4.2.8 cluster with the followin composable resource defined:
and we are using with this configuration the nfsrods server:
With this setup when we copy a file to the NFS mount point using the cp command we see that only one of replicas is created:
When doing an iput of the same file on the same directory the the 2 replicas are created (as expected):
In both cases the same resource is used (default) but it seems that with NFSRODS the second copy is not done.
We do not see any error on the irods log.
The text was updated successfully, but these errors were encountered: