This project is mirrored from https://gitee.com/mirrors/neo4jsource.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 25 Nov, 2020 2 commits
  2. 23 Nov, 2020 2 commits
    • emmaholmbergohlsson's avatar
      Direct usage of SslContextFactory has been deprecated · 1eae41ca
      emmaholmbergohlsson authored
      After version bump of jetty, SslContextFactory.Server needs to be used instead of SslContextFactory.
      1eae41ca
    • Anton Klarén's avatar
      Allow cross-version copy in neo4j-admin copy · 468d83dd
      Anton Klarén authored
      The copy command can be used to clean up inconsistencies, compact stores, and do an upgrade at the same time. Also, we can allow a bigger range of upgrades, e.g. 3.4 directly to 4.1, skipping the intermediate steps of 3.5.latest -> 4.0.latest -> 4.1. Those steps are needed to migrate the schema, but since we don't copy the schema store at all during a copy, they are not needed. The schema will have to be re-created in the end on the copied to database.
      468d83dd
  3. 20 Nov, 2020 3 commits
    • Mattias Finné's avatar
      Adds ability to limit unit size in high_limit format · 2540875c
      Mattias Finné authored
      This is solely for testing and will allow tests to produce
      records that required secondary units at much lower data sizes.
      2540875c
    • Mattias Finné's avatar
    • Mattias Finné's avatar
      Fixes an issue in ByteArrayPageCursor · b338274c
      Mattias Finné authored
      Where calling next() would always go to the next page.
      This breaks the typical interaction contract with a PageCursor
      where it's expected that the first call to next() places it
      on the page it was instantiated to start on.
      
      The place which discovered this was BaseHighLimitRecordFormat
      where it would set up a composite page cursor. The secondary
      cursor would be opened as a linked cursor placed at the calculated
      page and offset and when a call to next() would be made
      right after instantiation it would instead go to the next page
      and write there, which is wrong.
      b338274c
  4. 19 Nov, 2020 1 commit
  5. 16 Nov, 2020 2 commits
    • Mattias Finné's avatar
      Importer supports more complex regex file patterns · 5599e93d
      Mattias Finné authored
      When providing input files to the importer, e.g. nodes and
      you wanted to have a complex regex pattern like:
      
      --nodes=myheader.csv,myfile_\d{1,5}
      
      Comma being the separator between files/patterns there was a problem
      where the second comma found inside the regex pattern would be
      interpreted as a delimiter and so the command would split that
      string into:
      
      - myheader.csv
      - myfile_\d{1
      - 5}
      
      And would therefore not find the expected files. To accommodate for
      this the provided patterns now have support for quotes, like so:
      
      --nodes=myheader.csv,'myfile_\d{1,5}'
      
      which will prevent the comma inside the quotation to be interpreted
      as a delimiter.
      
      This commit also fixes another issue with regex patterns on Windows
      where backslash characters are naturally part of files names
      and so distinguishing between the two cases requires some
      additional care which has been added to the parsing of these strings.
      5599e93d
    • Satia Herfert's avatar
  6. 13 Nov, 2020 2 commits
  7. 11 Nov, 2020 2 commits
  8. 09 Nov, 2020 1 commit
    • Mattias Finné's avatar
      Fixes issues with iterating all entries in Lucene index · fe749fdf
      Mattias Finné authored
      There were two issues, both triggered with the same added test:
      
      - LeafReader#getLiveDocs() can rightfully return null, meaning
        that the leaf has no deletions.
      - Comparison with maxDoc was off-by-one since reader.maxDoc()
        returns one greater than max (i.e. high ID).
      fe749fdf
  9. 06 Nov, 2020 1 commit
  10. 05 Nov, 2020 1 commit
    • Mattias Finné's avatar
      Reinstates the environment variable listing in AdminTool · 5dfadef3
      Mattias Finné authored
      It disappeared in the migration to PicoCLI. Will add this
      footer to the usage printing:
      
      Environment variables:
        NEO4J_CONF    Path to directory which contains neo4j.conf.
        NEO4J_DEBUG   Set to anything to enable debug output.
        NEO4J_HOME    Neo4j home directory.
        HEAP_SIZE     Set JVM maximum heap size during command execution...
      5dfadef3
  11. 04 Nov, 2020 1 commit
    • Mattias Finné's avatar
      Tightens up page fault latch release · 1e07f336
      Mattias Finné authored
      Page cursor had a weakness when doing a page fault, such that
      very specific errors would cause the acquired latch to
      never be released. This would in turn create a trap for all later
      cursors who wanted to page fault that page such that they would get
      stuck forever. Sooner or later all threads could end up stuck
      in this trap. The specific interaction triggering this
      initially was a concurrent closing of the cursor while it was
      page faulting, alternatively while there was a failure doing
      the page faulting.
      
      Even tho the concurrent closing of the cursor while page faulting
      very likely is "forbidden", unexpected and would point to some
      error regarding handling and life cycle of page cursors in transactions,
      tightening up this weakness is still a good idea.
      Investigating why this interaction occurs at all will be a separate
      thing and unrelated to this change.
      1e07f336
  12. 02 Nov, 2020 3 commits
    • Mattias Finné's avatar
      Fixes issue with reused index IDs during recovery · 45fa46a1
      Mattias Finné authored
      IndexingService would remember dropped index IDs during recovery
      and instead drop them after recovery was completed. Main reason
      for that was that the index statistics were previously in the
      counts store and that store couldn't be updated during recovery
      without throwing exception. That deferred map would cause a problem
      in the scenario where an index with ID X would be dropped and
      then later on during the same recovery another index with the
      same ID X would be created. Then the index would be removed
      from the "indexes to drop later" map without closing or dropping it
      and then later closing the page cache would notice an unclosed
      paged file and would fail recovery.
      
      This deferred drop of indexes is no longer required altogether
      and so this problem can now go away. Also tightened up some
      checks regarding overwriting any existing ID in the IndexMap.
      45fa46a1
    • Mattias Finné's avatar
      Fixes an issue reading all documents from LuceneIndexAccessor · 677b20ee
      Mattias Finné authored
      The consistency checker uses IndexAccessor#newAllEntriesReader()
      method to read all entity IDs from that index. In Lucene the
      all-documents-reader had a flaw where it would always fail if reading
      from a Lucene index or partition that had deletions which hadn't
      been merged yet. The reader would try to remove from an unmodifiable
      list. Now it uses an iterator instead.
      677b20ee
    • Mattias Finné's avatar
  13. 30 Oct, 2020 2 commits
  14. 29 Oct, 2020 2 commits
  15. 28 Oct, 2020 1 commit
    • Petr Janouch's avatar
      Improving cooperation between the page cache and the IO limiter · 0af77afd
      Petr Janouch authored
      The purpose of this change is to guarantee configured IOPS limits.
      
      Before this change, the page cache could flush more aggressively
      than the IOPS limit depending on layout of dirty pages.
      The reason was that it processed 4k page segments before invoking
      the IO limiter which would block only for up to 100ms.
      This could lead to pages being flushed at rate up to 40k/s,
      depending on the distribution of dirty pages
      among the 4k page segments.
      0af77afd
  16. 26 Oct, 2020 2 commits
  17. 23 Oct, 2020 1 commit
    • Pontus Melke's avatar
      Don't fail when encountering eventually consistent index · 1c9f216a
      Pontus Melke authored
      In planning whenever we encountered an eventually consistent
      index we throw an error when trying to map the behaviour to a scala
      equivalent.
      
      changelog: Fix error where we could get an error Missing kernel to cypher mapping for index behaviour: EVENTUALLY_CONSISTENT in Cypher.
      1c9f216a
  18. 22 Oct, 2020 9 commits
  19. 21 Oct, 2020 1 commit
  20. 15 Oct, 2020 1 commit