- The
insert(json)
method now returns aSet<Long>
instead of along
. - The
fetch
methods have been renamedselect
. - The
get
methods now return the most recently added value that exists instead of the oldest existing value. - Compound operations have been refactored as batch operations, which are now implemented server-side (meaning only 1 TCP round trip per operation) and have atomic guarantees.
-
Added support for the Concourse Criteria Language (CCL) which allows you to specify complex find/select criteria using structured language.
-
Added a
find()
method that returns all the records that have ever had data. -
Added
select
methods that return the values for a one or more keys in all the records that match a criteria. -
Added a
verifyOrSet
method to the API that atomically ensures that a value is the only one that exists for a key in a record without creating more revisions than necessary. -
Added
jsonify
methods that return data from records as a JSON string dump. -
Added
diff
methods that return the changes that have occurred in a record or key/record within a range of time. -
Added a
find(key, value)
method that is a shortcut to query for records wherekey
equalsvalue
. -
Changed the method signature of the
close()
method so that it does not throw a checkedException
. -
Added percent sign (%) wild card functionality that matches one or more characters for REGEX and NOT_REGEX operators in find operations. The (%) wildcard is an alias for the traditional regex (*) wildcard. For example
find("name", REGEX, "%Jeff%")
returns the same result asfind("name", REGEX, "*Jeff*")
which is all the records where the name key contains the substring "Jeff". -
Added support for specifying operators to
find
methods and theCriteria
builder using string symbols. For example, the following method invocations are now identical:concourse.find("foo", Operator.EQUALS, "bar"); concourse.find("foo", "=", "bar"); concourse.find("foo", "eq", "bar"); find("foo", eq, "bar"); // in CaSH
-
Added methods to limit the
audit
of a record or a key/record to a specified range of time. -
Added atomic operations to add/insert data if there are no existing records that match the data or a specific criteria.
-
Deprecated
Convert#stringToResolvableLinkSpecification(String, String)
in the Java Driver in favor ofConvert#stringToResolvableLinkInstruction(String)
. -
Added logic to handle using arbitrary CCL strings for resolvable links when inserting or importing data.
- Added a native Python client driver
- Added a native PHP client driver
- Added a native Ruby client driver
- Added REST API functionality to Concourse Server that can be enabled by specifying the
http_port
in concourse.prefs.
-
Fixed a bug in CaSH where pressing
CTRL + C
at the command prompt would unexpectedly exit the shell instead of returning a new prompt. -
Added a feature to automatically preserve CaSH command history across sessions.
-
Changed CaSH error exit status from
127
to1
. -
Added
-r
and--run
options to thecash
CLI that allow the execution of commands inline without launching the entire CaSH application. -
Added a
whoami
variable to CaSH that displays the current Concourse user. -
Added support for multi-line input in CaSH. For example, you can now write complex routines that span several lines like:
[default/cash]$ for(long record : find("attending", eq, "Y")){ > count+= fetch("name", record).size(); > println fetch("name", record); > }
-
Added the ability to request help information about specific functions in CaSH using the
help <function>
command. -
Display performance logging using seconds instead of milliseconds.
-
Added functionality to pre-seed the CaSH environment with an external run commands groovy script using the
--run-commands <script>
or--rc <script>
flag. Any script that is located in~/.cashrc
is automatically loaded. There is also an option to disable loading any run commands script using the--no-run-commands
or--no-rc
flags. -
Added the ability to exclude parenthesis when invoke methods that don't take any arguments. For example, the following method invocations are identical:
[default/cash] getServerVersion [default/cash] getServerVersion()
-
Added
show records
command which will display all the records in Concourse that have data.
-
Added support for invoking server-side scripts via the
concourse
CLI. So, if theconcourse
CLI is added to the $PATH, it is possible to access the server scripts from any location. For example, you can access the import CLI like:$ concourse import -d /path/to/data
-
Added functionality to client and management CLIs to automatically use connnection information specified in a
concourse_client.prefs
file located in the user's home directory. This gives users the option to invoke CLIs without having to specify any connection based arguments. -
Added
--version
option to get information about the Concourse Server version using theconcourse
CLI. -
Added option to perform a heap dump of a running Concourse Server instance to the
concourse
CLI. -
Added an
uninstall
script/option to theconcourse
CLI that safely removes the application data for a Concourse Server instance, while preserving data and logs.
- Improved the performance of the
set
operation by over 25 percent. - Added logic to the
verify
methods to first check if a record exists and fail fast if possible. - Optimized the way in which reads that query the present state delegate to code paths that expect a historical timestamp (CON-268)
- Added functionality to automatically choose a
shutdown_port
based on the specifiedclient_port
. - Added logic to automatically calculate the
heap_size
preference based on the amount of system memory if a value isn't explicitly given inconcourse.prefs
.
- Changed from the MIT License to the Apache License, Version 2.0.
- Replaced the StringToTime library with Natty.
- Replaced the Tanuki Java Service Wrapper library with a custom implementation.
- Fixed a bug that caused transactions to prematurely fail if an embedded atomic operation didn't succeed (CON-263).
- Java Driver: Fixed an issue in the where the client would throw an Exception if a call was made to the
commit()
method when a transaction was not in progress. Now the client will simply returnfalse
in this case. - Fixed an issue that caused the
concourse
andcash
scripts to fail when added to the $PATH on certain Debian systems that did not havesh
installed.
- Fixed an issue where transactions and atomic operations unnecessarily performed pre-commit locking during read operations, which negatively impacted performance and violated the just-in-time locking protocol (CON-198/CON-199).
- Added logic to prevent the Buffer from attempting a scan for historical data that is older than any data that is currently within the Buffer (CON-197).
- Added group sync: an optimization that improves Transaction performance by durably fsyncing committed writes to the Buffer in bulk. Transactions still honor the durability guarantee by taking a full backup prior to acknowledging a successful commit (CON-125).
- Improved the performance of releasing locks by moving garbage collection of unused locks to a background thread.
- Improved the performance for upgrading range locks and checking for range conflicts by using collections that shard and sort range tokens.
- Improved Transaction write performance by using local bloom filters to speed up
verifies
. - Fixed a bug where storage engine methods that touched an entire record (e.g.
browse(record)
andaudit(record)
) or an entire key (browse(key)
) were not properly locked which potentially made reads inconsistent (CON-239). - Fixed an issue where transactions unnecessarily performed double write validation which hurt performance (CON-246).
- Fixed a major memory leak that occurred when transactions were aborted or failed prior to committing (CON-248).
- Added logging to indicate if the background indexing job terminates because of an uncaught error (CON-238).
- Fixed an issue where the background indexing job could be wrongfully terminated because it appeared to be stalled when doing a large amount of work.
- Fixed a memory-leak issue where Concourse Server did not release resources for abandoned transactions if the client started a transaction and eventually started another one without explicitly committing or aborting the previous one (CON-217).
- Fixed various issues and performance bottlenecks with syncing storage blocks to disk.
- Improved the names of several Concourse Server threads.
In this release we made lots of internal optimizations to further build on the performance improvements in versions 0.4.1 and 0.4.2. Many of them are small, but a few of the larger ones are highlighted below. In total, our efforts have produced additional speed improvements of 53 percent for queries, 80 percent for range queries, 65 percent for writes and 83 perecent for background indexing.
- Added auto adjustable rate indexing where the throughput of the background indexing job will increase or decrease inversely with query load to prevent contention.
- Lowered the threshold for Java to start compiling server methods to native code.
- Implemented priority locks that ensure readers and writers always take precedence over the background indexing job when there is contention.
- Increased internal caching of some frequently used objects to reduce the overhead for initialization and garbage collection.
- Switched to using StampedLocks with optimistic reads in some places to reduce the overhead of accessing certain resources with little or no contention.
- Eliminated unnecessary intermediate copies of data in memory when serializing to disk.
- Switched to a faster hash function to generate lock tokens.
- Switched from using the default
ConcurrentHashMap
implementation to one backported from Java 8 for better performance. - Improved the efficiency of the background indexing job by re-using worker threads.
- Improved heuristics to determine bloom filter sizing.
- Where appropriate, added some bloom filters that are less precise but have faster lookup times.
- Switched to using soft references for revisions in recently synced data blocks so that they avoid disk i/o unless absolutely necessary due to memory pressure.
- Added a more compact representation for revisions in memory to reduce bloat.
- Made miscellaneous optimizations for sensible performance gains.
- Upgraded the Tanuki wrapper to version 3.5.26 to fix an issue where Concourse Server on OS X Yosemite (10.10) systems mistakenly tried to start using 32-bit native libraries.
- Added an
envtool
CLI that can be used to manage environments in Concourse Server. - Added a
--list-sessions
action to theuseradmin
CLI to list all the currently active user session in Concourse Server. - Removed unnecessary locking that occurred when performing writes in a transaction or atomic operation.
- Improved the way that the storage engine processes
find
queries, resulting in a further speed improvement of over 35 percent. - Fixed a bug with real-time transaction failure detection that made it possible for phantom reads to occur.
- Fixed an issue that caused Concourse Server to drop transaction tokens when under increased concurrency.
- Fixed a bug in the just-in-time locking protocol that prematurely removed references to active locks.
- Fixed a bug where transactions that started to commit but failed before completing did not release locks, resulting in deadlocks.
- Fixed an issue where transactions unnecessarily grabbed locks twice while committing.
- Fixed an issues that made it possible for deadlocks to occur with many concurrent Transactions performing atomic operations (i.e.
set
). - Improved the javadoc for the
Tag
datatype. - Fixed a bug where the
Tag#toString
method threw aNullPointerException
if the Tag was created using anull
value. - Add a
min
method to theNumbers
utility class. - Fixed a bug that caused the
insert
methods to incorrectly store values encoded as resolvable link specifications as strings instead of links to resolved records. - Added a
heap_size
preference inconcourse.prefs
that configures the initial and max heap for the Concourse Server JVM.
- Fixed a bug where database records and indexes were not properly cached. Now, reads are over 87 percent faster.
- Removed a potential race-condition between real-time failure detection and just-in-time locking that made it possible for an failed transaction to errneously commit and violate ACID consistency.
- Fixed a bug where the
Numbers#max
method actually returned the minimum value.
- Reduced the number of primary record lookups required to perform a
find
query which yields up to an order of magnitude in increased speed. - Fixed a bug that accidentally stripped underscore _ characters from environment names.
- Further improved the CPU efficiency of the background indexing processes.
- Fixed a bug that made it possible for Concourse Server to experience thread leaks.
- Fixed a bug that prevented backticks from being stripped in JSON encoded Tag values.
- Added cached and fixed
ConnecitionPool
factory methods that use the default connection info when creating new instances. - Fixed a bug that caused some management CLIs to unnecssarily prompt for authentication instead of immediately displaying the
usage
message when an insufficent number of arguments were presented. - Fixed a bug that caused the Criteria builder to improperly handle values with leading and trailing backticks.
- Made
Concourse
implement thejava.lang.AutoCloseable
interface. - Fixed an issue where upgrades failed because the system version was not set for new installations.
- Fixed bugs that made it possible for atomic operations started from a Transaction to spin in an infinite loop if the Transaction failed prior to being committed.
- Added a
TransactionException
with a clear error message that is thrown when (staged) operations in a Transaction fail prior to being committed because of a data change.
- Fixed an issue that caused Concourse Server to unnecessarily keep file descriptors open after data was indexed and synced to disk.
- Fixed an issue that made it possible for Concourse to lose some storage metadata in the event of a premature server crash or power loss.
- Improved CaSH by removing the display of meaningless performance logging when a user merely presses the
enter
key at the prompt.
-
Added support for multiple environments, which allows users to store data for different purposes (i.e. staging vs production) separately while managing them with the same Concourse Server. Users are automatically connected to a configurable
default_environment
(concourse.prefs) if none is specified at login. Alternatively, users can connect to or dynamically create a new environment by-
using the new
Concourse#connect(host, port, username, password, environment)
orConcourse#connect(environment)
login methods, -
adding
environment = <name>
to theconcourse_client.prefs
file and using theConcourse#connect()
or ``Concourse#connect(host, port, username, password)` login methods, or -
specifying an environment name using the
-e
flag when launching CaSH like:$ ./cash -e production
-
-
Added support for specifying environments using the
-e
flag to applicable server-side management CLIs (i.e.dumptool
) and theimport
CLI. -
Added support for specifying environments with the
ConnectionPool
API. -
Improved the CaSH prompt to display the current environment like:
production/cash$
-
Added a
Criteria
building feature that allows users to programatically create complex queries with multiple clauses and groups. This is particularly helpful when programming in an IDE that offers code completion. -
Added a method to the
Convert
utility class to transform a JSON formatted string into a multimapping of keys to appropriate Java primitives. -
Added new core API methods:
browse
returns a complete view of all the data presently or historically associated with a either a record or a key.chronologize
returns a chronological series of all the values for a key in a record over time.clear
now has an option to atomically remove all the data contained in an entire record.find
now has an option to process a complexCriteria
using a single network call.insert
writes serveral key/value mappings from a JSON encoded string into one or more records with a single network call.
-
Added
LINKS_TO
Operator (aliased aslnk2
in CaSH) to make it easy to include links in find criteria. For example, the following statements are equivalent:concourse.find(\"foo\", Operator.LINKS_TO, 1); concourse.find(\"foo\", Operator.EQUALS, Links.to(1));
-
Added a new
Tag
datatype for the purpose of storing a string value without performing full text search indexing. ATag
can be created programatically using theTag#create
method and in CaSH using thetag()
alias.
- Improved the usability of the
useradmin
CLI and deprecated the--grant
and--revoke
options. - Added requirement that new passwords be 3 or more characters long.
- Improved the
dumptool
CLI to list dumpable storage units by default if no-i
or--id
argument is specified. As a result the--list
flag is now deprecated since it is unnecessary. - Added logic to terminate a CaSH session if a relevant security change occurs.
- Improved readability of log files by removing redundant information from log messages.
- Added the optional installation of the
concourse
andcash
scripts to the$PATH
via/usr/local/bin
during installation or upgrade so that they can be invoked from any location. - Added the optional symlinking of the server log files to
/var/log/concourse
during installation or upgrade.
- Fixed an issue that prevented strings from being sorted in a case insensitive manner.
- Fixed a bug that causes some historical queries to return incorrect results.
- Added a framework to securely migrate stored data to new formats when upgrading Concourse Server.
- Improved the CPU efficiency of the background indexing process.
- Changed the startup script to use
.concourse.conf
instead ofconcourse.conf
for configuration. - Updated CaSH documentation.
- Fixed a bug that caused string values to be sorted inconsitently.
- Fixed an infinite loop that caused Concourse Server to stack overflow when used with JRE 8.
- Fixed an issue where the stock
concourse.prefs
documentation referred to the defaultbuffer_page_size
as 8MB when its actually 8KB. - Changed the daemon Concourse Server process name to display as
ConcourseServer
instead ofWrapperSimpleApp
. - Updated the
concourse-config
dependency to version 1.0.5 which fixes and issue that caused passwords to be incorrecctly read fromconcourse_client.prefs
files.
-
Added support for using short syntax in nested commands in CaSH. For example, the following commands are equivalanet and can now be used interchanably:
cash$ get(describe(1), find(\"name\", eq, 1)) cash$ concourse.get(concourse.describe(1), concourse.find(\"name\", eq, 1))
-
Fixed a bug that caused a deadlock when committing a transaction that wrote a value to a key and then subsequently performed a query against the key that included the value directly.
-
Fixed a bug that made it possible for the server to hang after reaching an inconsistent state caused by the Buffer expanding to accommodate new data written by one client while simultaneously servicing a read request for another client.
-
Fixed a bug that prvented the server from starting after an unexpected shutdown corrupted an uncommited transaction.
-
Fixed a bug that caused the database to appear to lose data if the
database_directory
preference was specified using a relative path. -
Fixed a bug that made it possible for the server to accidentally reindex data when starting up after an unexpected shutdown.
-
Added checks to detect and warn about the existence of duplicate data that can safely be deleted without affecting data consistency.
-
Improved memory management by using soft references and just-in-time metadata retrieval.
-
Added logic to detect and repair stalled background index jobs.
-
Fixed an issue that caused the server to unreliably lock resources under load.
-
Fixed an bug that failed to prevent the addition of circular links.
-
Improved CLI usability by displaying the username alongside the interactive password prompt and making it possible to display the help/usage text without authenticating.
-
Added a CLI to import CSV files.
-
Added logic to rollover and archive log files once they reach 10MB in size.
-
Added support for issuing commands in CaSH using short syntax. Short syntax allows the user to make Concourse API calls by invoking the desired method directly by name instead of prepending the invocation with
concourse.
. For example, the following commands are all equivalent and can now be used interchangably in stand-alone statements:cash$ add(\"name\", \"jeff\", 1) cash$ concourse.add(\"name\", \"jeff\", 1) cash$ add \"name\", \"jeff\", 1 cash$ concourse.add \"name\", \"jeff\", 1
-
Improved the
toString()
output ofTimestamp
objects so that they match the following format:Thu Apr 03, 2014 @ 1:32:42:54 PM PDT
. -
Fixed an issue that caused the server to incorrectly lock resources when processing lots of concurrent reads/writes to a record or key in record.
-
Fixed an issue that caused the server to deadlock if an error occured while indexing data in the background.
-
Fixed an issue where the installer would launch a separate X11 window when configuring the
concourse-server
directory in some environments.
- Upgraded Tanuki service wrapper to version 3.5.24 which fixes an issue that prevented the server from starting in OSX Mavericks.
- Consolidated service wrapper native libraries in
wrapper
directory within the root of the concourse-server installation. - Added support for 32-bit Linux and OSX systems.
- Added
--list
and-l
flags to thedumptool
CLI to display a list of dumpable storage units. - Fixed a bug that caused some searches to return false-positive results.
- Fixed a bug that caused mishandling of data containing leading or trailing whitespaces.
- Fixed a bug that made it possible to see inconsistent search results if a query was issued while the engine was indexing relavent data in the background.
- Fixed a bug that caused a deadlock when committing a transaction that performed a range query against a key and then subsequently added that key to a record as a value within the range.
- Made server-side
jmx_port
configurable in concourse.prefs.
- Added support for creating a cached connection pool that continues to establish new connections on demand, but will use previously created ones when possible.
- Deprecated the
ConnectionPool#newConnectionPool
factory methods in favour of more descriptive ones. - Added a method to the
Convert
utility class to transform a raw string value to the appropriate java primitive. - Added a method to the
Convert
utility class to transform a raw string value to a resolvable link specification that instructs the receiver to add a link in a record to all the records that map a certain key to that value. - Made server-side
client_port
andshutdown_port
parameters configurable in concourse.prefs. - Added check on server startup to ensure that the
buffer_directory
anddatabase_directory
parameters are not identical.
- Added the ability to have multiple concurrent connections for a single user.
- Added support for connection pooling to the client API.
- Removed unused
transaction_directory
key from concourse.prefs. - Fixed an issue that allowed the storage of blank string keys and values.
- Fixed an issue that prevented the client from properly processing compound
#get
operations that tried to retrieve data for a key in a record that did not contain any values. - Improved the info logging for transactions by only using a unique id to refer to each transaction.
- Slighly increased full text indexing speed.
- Improved CaSH documentation.
- Changed install and upgrade distributions from zip file to self-extracting binary.
- Added logic to upgrade from previous versions.
- Added server-side atomic operation and transaction protocols.
- Added Transaction support to the API.
- Added new
#verifyAndSwap()
atomic operation to the API - Changed
#set()
,#clear()
, and#revert()
API methods to to be atomic. - Added password based authentication and access token based session handling to server.
- Added
useradmin
CLI to add/edit/delete user access. - Added several compound operations to API.
- Fixed bug that prevented server from starting on non-OSX systems.
- Made historical
#find()
methods consistent with other historical operations by specifying the timestamp last. - Added Timestamp wrapper class that is interoperable with Joda DateTime, but has microsecond precision.
- Added requirement for authentication when using management CLIs.
- Fixed bug that allowed access to private variables in CaSH.
- Improved CLI error messages.
- Added API method to get server release version.
- Improved background data indexing protocol.
- Made artifact versioning more consistent.
- Added server side range locking protocol for #find() queries.
- Bug fixes.
- Improved documentation.
- Improved error messages.
- Improved build infrastructure.
- Changed database storage model from one record per file to several revisions across blocks.
- Added CLI to dump buffer and block contents.
- Added Concourse Action SHeLL (CaSH)
- Added publishing of artifacts to maven central repo.
- Improved logging for thrift internal errors.
- Improved search performance.
- Removed two way link/unlink methods from API.
- Fixed bug where result set ordering did not persist from server to client.
- Decorated toString for return value of
#audit()
methods. - Added shortcut
start
andstop
server scripts. - Added JMX support.
- Improved documentation.
- Bug fixes.
- Hello World.