[ 
https://issues.apache.org/jira/browse/LUCENE-9512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17192348#comment-17192348
 ] 

Uwe Schindler commented on LUCENE-9512:
---------------------------------------

output looks like that (verbose mode):

{noformat}
$ gradlew :lucene:core:test -Dtests.verbose=true --tests 
TestLockFactoriesMultiJVM
[...]
> Task :lucene:core:test
  1> filesystem: 
ExtrasFS(HandleLimitFS(LeakFS(ShuffleFS(DisableFsyncFS(VerboseFS(sun.nio.fs.WindowsFileSystemProvider@79123fdb))))))
  1> FS 0 [2020-09-08T17:17:38.542260800Z; 
SUITE-TestLockFactoriesMultiJVM-seed#[36EDDD406FA33CBE]-worker]: 
createDirectory: ..\tests-tmp (FAILED: 
java.nio.file.FileAlreadyExistsException: C:\Users\Uwe 
Schindler\Projects\lucene\trunk-lusolr1\lucene\core\build\tmp\tests-tmp)
  1> Loaded codecs: [Lucene87, Asserting, CheapBastard, 
DeflateWithPresetCompressingStoredFieldsData, FastCompressingStoredFieldsData, 
FastDecompressionCompressingStoredFieldsData, 
HighCompressionCompressingStoredFieldsData, 
LZ4WithPresetCompressingStoredFieldsData, DummyCompressingStoredFieldsData, 
SimpleText]
  1> Loaded postingsFormats: [Lucene84, MockRandom, RAMOnly, LuceneFixedGap, 
LuceneVarGapFixedInterval, LuceneVarGapDocFreqInterval, 
TestBloomFilteredLucenePostings, Asserting, UniformSplitRot13, 
STUniformSplitRot13, BlockTreeOrds, BloomFilter, Direct, FST50, UniformSplit, 
SharedTermsUniformSplit]
  1> FS 0 [2020-09-08T17:17:38.730612800Z; main]: createDirectory: 
..\tests-tmp\lucene.store.TestLockFactoriesMultiJVM_36EDDD406FA33CBE-001
  1> FS 0 [2020-09-08T17:17:38.732606300Z; main]: createDirectory: 
..\tests-tmp\lucene.store.TestLockFactoriesMultiJVM_36EDDD406FA33CBE-001\NativeFSLockFactory-001
  1> Listening on /127.0.0.1:49744...
Connecting to server /127.0.0.1:49744 and registering as client 1...Connecting 
to server /127.0.0.1:49744 and registering as client 0...

  1> All clients started, fire gun...
0.0% done.
0.0% done.
  1> Server terminated.
Finished 500 tries.
Finished 500 tries.
  1> FS 0 [2020-09-08T17:17:41.080680200Z; main]: createDirectory: 
..\tests-tmp\lucene.store.TestLockFactoriesMultiJVM_36EDDD406FA33CBE-001\SimpleFSLockFactory-001
  1> Listening on /127.0.0.1:49747...
Connecting to server /127.0.0.1:49747 and registering as client 0...
Connecting to server /127.0.0.1:49747 and registering as client 1...
  1> All clients started, fire gun...
0.0% done.
0.0% done.
Finished 500 tries.
  1> Server terminated.
Finished 500 tries.
  1> FS 0 [2020-09-08T17:17:42.774322100Z; 
SUITE-TestLockFactoriesMultiJVM-seed#[36EDDD406FA33CBE]-worker]: delete: 
..\tests-tmp\lucene.store.TestLockFactoriesMultiJVM_36EDDD406FA33CBE-001\SimpleFSLockFactory-001
  1> FS 0 [2020-09-08T17:17:42.775321100Z; 
SUITE-TestLockFactoriesMultiJVM-seed#[36EDDD406FA33CBE]-worker]: delete: 
..\tests-tmp\lucene.store.TestLockFactoriesMultiJVM_36EDDD406FA33CBE-001\NativeFSLockFactory-001\test.lock
  1> FS 0 [2020-09-08T17:17:42.775321100Z; 
SUITE-TestLockFactoriesMultiJVM-seed#[36EDDD406FA33CBE]-worker]: delete: 
..\tests-tmp\lucene.store.TestLockFactoriesMultiJVM_36EDDD406FA33CBE-001\NativeFSLockFactory-001
  1> FS 0 [2020-09-08T17:17:42.776319Z; 
SUITE-TestLockFactoriesMultiJVM-seed#[36EDDD406FA33CBE]-worker]: delete: 
..\tests-tmp\lucene.store.TestLockFactoriesMultiJVM_36EDDD406FA33CBE-001
  2> NOTE: test params are: 
codec=LZ4WithPresetCompressingStoredFieldsData(storedFieldsFormat=CompressingStoredFieldsFormat(compressionMode=BEST_SPEED,
 chunkSize=15163, maxDocsPerChunk=752, blockShift=22), 
termVectorsFormat=CompressingTermVectorsFormat(compressionMode=BEST_SPEED, 
chunkSize=15163, blockSize=22)), 
sim=Asserting(RandomSimilarity(queryNorm=false): {}), locale=ar-MR, 
timezone=America/Port-au-Prince
  2> NOTE: Windows 10 10.0 amd64/Oracle Corporation 11.0.2 
(64-bit)/cpus=8,threads=1,free=221295104,total=268435456
  2> NOTE: All tests run in this JVM: [TestLockFactoriesMultiJVM]
:lucene:core:test (SUCCESS): 2 test(s)
The slowest tests (exceeding 500 ms) during this run:
   2.36s TestLockFactoriesMultiJVM.testNativeFSLockFactory (:lucene:core)
   1.70s TestLockFactoriesMultiJVM.testSimpleFSLockFactory (:lucene:core)
{noformat}

> Add test-lock-factory to Gradle build
> -------------------------------------
>
>                 Key: LUCENE-9512
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9512
>             Project: Lucene - Core
>          Issue Type: Task
>          Components: core/store
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When porting to Gradle, the following task was missed to be ported to Gradle:
> https://github.com/apache/lucene-solr/blob/branch_8x/lucene/core/build.xml#L148-L234
> This is somehow an integration test. It's not part of the test suite, as the 
> code is part of main distribution and is a client-server implementation that 
> has one coordinator to handle other JVMs to hammer a directories' lock 
> factory.
> It may be included into the test suite, but as it spawns multiple JVMs (thats 
> essential for it to work), I see this as a separate thing.
> I would like to implement that snippet of ANT code in Gradle and attach it to 
> {{:lucene:core}}'s {{test}} task. If we have an integration test framework at 
> some point we can make a real {{integTest}} out of it, but for now a simple 
> Groovy script is fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to