Skip to content
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

IGNITE-5829 on 2.1.5 #2614

Closed
wants to merge 186 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
1e08c3f
IGNITE-4800: Lucene query may fails with NPE. This closes #2315.
AMashenkov Jul 31, 2017
3fdf453
IGNITE-4800: Lucene query may fails with NPE.
AMashenkov Jul 31, 2017
e255a56
ignite-5712 Context switching for optimistic transactions
nizhikov Aug 2, 2017
772d462
Merge branch ignite-2.1.3 into ignite-2.1.4
akuznetsov-os Aug 3, 2017
0f22223
IGNITE-5126: Batch support for this JDBC driver. This closes #2162.
Aug 4, 2017
d1a74a4
Merge remote-tracking branch 'upstream/ignite-2.1.4' into ignite-2.1.4
Aug 4, 2017
0b3a9a7
IGNITE-5923: ODBC: SQLGetTypeInfo now works with SQL_ALL_TYPES
isapego Aug 4, 2017
4e0385f
IGNITE-5939: ODBC: SQLColAttributes now works with legacy attribute c…
isapego Aug 4, 2017
4f02504
Merge branch ignite-2.1.3 into ignite-2.1.4.
akuznetsov-os Aug 7, 2017
b093afb
IGNITE-5211: Added new constructor: QueryEntity(Class keyCls, Class v…
Aug 8, 2017
879f191
IGNITE-5982: GridMapQueryExecutor was split into several pieces.
Aug 8, 2017
7c77b86
IGNITE-5993: Removed unused SQL-related classes and methods (old tree…
Aug 9, 2017
ab18fdf
IGNITE-5452: GridTimeoutProcessor can hang on stop. This closes #2279.
AMashenkov Jul 14, 2017
580b6aa
IGNITE-5734 Web Console: Fixed npm dependencies.
akuznetsov-os Aug 9, 2017
841db65
IGNITE-5987 Added -nq (visor will not quit in batch mode) option for …
akuznetsov-os Aug 9, 2017
5c20978
IGNITE-5902 Implemented stop caches at once.
akuznetsov-os Aug 11, 2017
8b24619
IGNITE-6012 Refactored GridJettyRestHandler.processRequest(): replace…
akuznetsov-os Aug 11, 2017
3a7d4f4
IGNITE-6013 Optimized processing response from cluster.
akuznetsov-os Aug 11, 2017
74d6ab9
Merge branch 'ignite-2.1.3' into ignite-2.1.4
agoncharuk Aug 14, 2017
fde550b
IGNITE-5941 - Fixed index name length restrictions. This closes #2408
ilantukh Aug 14, 2017
13f38d7
IGNITE-5890 Added estimated time to rebalance completion and time to …
dgovorukhin Aug 14, 2017
c23a2dc
IGNITE-5741 - Replaced HeapByteBuffer with DirectByteBuffer in WAL re…
dgovorukhin Aug 14, 2017
2f38065
GG-12629 Backport IGNITE-5961 to 8.1.4
glukos Aug 14, 2017
cdac5a8
IGNITE-5843 Persist cache configuration received on node join - Fixes…
Aug 14, 2017
305c0f4
IGNITE-6052 request cluster state from daemon node via compute grid -…
dgovorukhin Aug 14, 2017
621380d
IGNITE-6004: Added QuerySqlField.inlineSize property. This closes #2420.
Aug 15, 2017
276e84a
IGNITE-5995: ODBC fix for SQLGetData.
isapego Aug 10, 2017
020ff36
IGNITE-6032: ODBC: Added SQL_SCROLL_OPTIONS support for SQLGetInfo
isapego Aug 15, 2017
b094cb2
IGNITE-6019: SQL: do not pull the whole result set immediately to the…
alexpaschenko Aug 16, 2017
56d8baa
IGNITE-6074 Fixed test fail IgniteWalRecoveryTest#testWalBigObjectNod…
dgovorukhin Aug 16, 2017
3d696da
IGNITE-6082 Fixed DynamicIndexPartitionedTransactionalConcurrentSelfT…
dgovorukhin Aug 16, 2017
5819acd
IGNITE-6073 Handy API to add binary metadata locally
sergey-chugunov-1985 Aug 16, 2017
6528622
IGNITE-6068 Fixed InvalidPartitionException during index visit
agoncharuk Aug 16, 2017
30de686
IGNITE-6067 move initialize() to GridCacheUtils - Fixes #2445.
kdudkov Aug 15, 2017
8a5e3dd
IGNITE-5586 Toggle cluster active state.
vsisko Aug 17, 2017
5cefdef
IGNITE-6080: DML batches are now grouped by affinity. This closes #2454.
Aug 17, 2017
50a4228
IGNITE-5233: JDBC thind driver: implemented metadata methods. This cl…
Aug 17, 2017
44c1d5b
IGNITE-6091 Fixed flaky test CacheLateAffinityAssignmentTest.testRand…
dgovorukhin Aug 17, 2017
8486b98
IGNITE-5947 Fixed "ClassCastException when two-dimensional array is f…
niktikhonov Aug 17, 2017
38cccd3
IGNITE-5738: JDBC: add batch support. This closes #2393.
skalashnikov Aug 17, 2017
621f62a
IGNITE-5837: Minor fix to DynamicIndexAbstractConcurrentSelfTest. Thi…
Aug 17, 2017
a2ae057
IGNITE-6033 Added sorted and multithreaded modes in checkpointing alg…
glukos Aug 17, 2017
7521679
IGNITE-6098 Fixed IgniteDataIntegrityTests.testExpandBuffer - Fixes #…
dgovorukhin Aug 17, 2017
a787eee
IGNITE-6100 Fixed memory leak, IgnitePdsRecoveryAfterFileCorruptionTe…
dgovorukhin Aug 17, 2017
9bca772
IGNITE-5233: Fixed JavaDocs.
Aug 17, 2017
718f4a6
IGNITE-6103 - Handle missed partition ID during WAL replay
agoncharuk Aug 17, 2017
2f2b180
IGNITE-5991: SQL: Lazy query execution. This closes #2437.
Aug 17, 2017
df916d9
IGNITE-6027: Added last page marker to GridQueryNexPageResponse, so t…
devozerov Aug 10, 2017
85299bd
IGNITE-6102 - Implemented persistence configuration consistency check…
glukos Aug 17, 2017
9b071aa
IGNITE-6104 Web Console: moved "Download Web Agent" link to footer.
dmitriyff Aug 17, 2017
d81c32e
gg-12644 : Fixed backward compatibility.
ilantukh Aug 17, 2017
b6389d0
IGNITE-5985 Web Console: added generation for QueryEntity key fields.
vsisko Aug 18, 2017
9cf8950
IGNITE-6105 Web console: Fixed missed cache name in preview for cache…
vsisko Aug 18, 2017
1193f5e
IGNITE-6102 - Do not run consistency check for client and daemon nodes
agoncharuk Aug 18, 2017
bcf908c
IGNITE-6102 - Do not run consistency check for client and daemon nodes
agoncharuk Aug 18, 2017
49d7354
IGNITE-5901 Fixed AsynchronousCloseException in WAL
agoncharuk Aug 18, 2017
55dac67
gg-12644 : Cosmetic changes.
ilantukh Aug 18, 2017
1406c19
IGNITE-6106 New screenshots.
vsisko Aug 18, 2017
4b42370
Merge branches 'ignite-2.1.4' and 'ignite-gg-12644' of https://github…
ilantukh Aug 18, 2017
cc047ef
IGNITE-6107 first(list) should behave the same way as first(iterable)…
akuznetsov-os Aug 18, 2017
13c1d36
IGNITE-5943 Communication. Server node may reject client connection d…
Aug 18, 2017
2971a3d
IGNITE-6065 Fixed broken links.
akuznetsov-os Aug 19, 2017
00a7d1b
IGNITE-6065 Fixed broken links.
akuznetsov-os Aug 19, 2017
9d82c58
IGNITE-4784 Web Console: Changed demo mode UI.
Aug 21, 2017
2d39bab
IGNITE-6127 Implemented GZip data between web-agent and web server.
akuznetsov-os Aug 21, 2017
324915f
ignite-6096: Fixed races on partition evict (backport).
ilantukh Aug 21, 2017
446e184
Merge remote-tracking branch 'community/ignite-2.1.4' into ignite-2.1.4
ilantukh Aug 21, 2017
c3aa151
Test for cache partitions state, fix for client cache start.
sboikov Jul 24, 2017
270e2b2
Tried to simplify GridDhtAtomicCache.updateAllAsyncInternal0.
sboikov Jul 27, 2017
f34ef16
Removed unused methods from IgniteThreadPoolExecutor.
sboikov Jul 27, 2017
4bfe699
Added related GridIoPolicy in IgniteThread.
sboikov Jul 27, 2017
93eb78f
Minor (added more clear method IgniteTxHandler.prepareNearTxLocal).
sboikov Jul 27, 2017
e0fe1c3
ignite-5858 Fixed affinity initialization on new coordinator (broken …
sboikov Jul 28, 2017
8d51fb9
IGNITE-6104 Fixed link.
akuznetsov-os Aug 21, 2017
3b61340
IGNITE-5757 - Rent partitions on exchange completion
agoncharuk Aug 2, 2017
762b533
Merge remote-tracking branch 'community/ignite-2.1.4' into ignite-2.1.4
sboikov Aug 21, 2017
e9139d4
Call updateRebalanceVersion after evictions (was broken in c6fbe2d82a…
sboikov Aug 2, 2017
615a582
IGNITE-4728 Fixed get params for saved state.
Aug 21, 2017
891a9e0
ignite-6124 Merge exchanges for multiple discovery events
sboikov Aug 21, 2017
96d86ac
Merge remote-tracking branch 'community/ignite-2.1.4' into ignite-2.1.4
sboikov Aug 21, 2017
e9f729f
ignite-5872 Replace standard java maps for partition counters with mo…
Aug 21, 2017
8e672d4
Changed ignite version.
sboikov Aug 21, 2017
fd5d83c
IGNITE-6104 Fixed target.
akuznetsov-os Aug 21, 2017
cca9117
ignite-5872 Fixed backward compatibility
sboikov Aug 21, 2017
dc9b266
Merge remote-tracking branch 'community/ignite-2.1.4' into ignite-2.1.4
sboikov Aug 21, 2017
1072654
IGNITE-6052 class rename was reverted
sergey-chugunov-1985 Aug 21, 2017
cf97f3d
ignite-6035 Clear indexes on cache clear/destroy
dgovorukhin Aug 21, 2017
47b84ec
Visor compilation issues are fixed.
agura Aug 21, 2017
6e0fd72
ignite-gg-12639 Fill factor metric is not working with enabled persis…
ilantukh Aug 21, 2017
bbafa1e
IGNITE-6136 Web Console: implemented universal version check.
akuznetsov-os Aug 22, 2017
2a2e840
IGNITE-6131 Visor Cmd: Fixed "cache -a" command output cache entries …
vsisko Aug 22, 2017
db64729
ignite-6124 Fixed NPE in GridDhtPartitionsExchangeFuture.topologyVers…
sboikov Aug 22, 2017
5b77247
Fixed javadoc format.
ilantukh Aug 22, 2017
785a85e
ignite-5872 GridDhtPartitionsSingleMessage.partitionUpdateCounters sh…
sboikov Aug 22, 2017
6b506e7
Merge remote-tracking branch 'community/ignite-2.1.4' into ignite-2.1.4
sboikov Aug 22, 2017
160d9b7
Fixed flaky test.
ilantukh Aug 22, 2017
9ed4b72
master - Fixed visor compilation after merge
agoncharuk Aug 1, 2017
16b819a
Increased test timeout.
ilantukh Aug 22, 2017
9ab49d4
IGNITE-6155 added new jvm flag for printing gc date stamps
Aug 22, 2017
e780c6b
Fixed test to work with new update counter maps.
ilantukh Aug 22, 2017
db6add1
Removed explicit fail().
ilantukh Aug 22, 2017
bc1cc99
IGNITE-6154 fix incorrect check checkpoint pages
dgovorukhin Aug 22, 2017
8dbdd03
IGNITE-6154 also fixed check for WAL record
glukos Aug 22, 2017
afad8e0
Muted hanging test.
ilantukh Aug 23, 2017
ad38f7b
gg-12662 : Fixed JDBC backward compatibility.
ilantukh Aug 23, 2017
28c906e
IGNITE-5542 CacheGroup configuration from cluster is merged with loca…
sergey-chugunov-1985 Aug 2, 2017
caeb119
ignite-6124 Guard logging with isInfoEnabled
sboikov Aug 23, 2017
6f407eb
IGNITE-6169: Fixed thin JDBC driver compatibility problem.
Aug 23, 2017
9dac636
IGNITE-4643: Fixed NPE in JdbcDatabaseMetadata.getIndexInfo(). This …
alamar Aug 23, 2017
77241cd
Merge remote-tracking branch 'community/ignite-2.1.4' into ignite-2.1.4
sboikov Aug 23, 2017
a5e376f
ignite-6124 Added missed initialization of merged join exchanges in G…
sboikov Aug 23, 2017
be5589d
ignite-5986 : Fixed failing .NET test.
ilantukh Aug 23, 2017
43e4ff2
Fixed test IgniteClusterActivateDeactivateTestWithPersistence.
sboikov Jul 18, 2017
d596b78
Updated classnames.properties.
ilantukh Aug 23, 2017
3e08cd4
ignite-6174 Temporary changed test until issue not fixed
sboikov Aug 23, 2017
44e0b4c
IGNITE-6136 Fixed version for demo.
akuznetsov-os Aug 24, 2017
8d1838b
Adjusted memory policy to prevent OOM.
dspavlov Jul 27, 2017
a3ec54b
ignite-6124 DataStreamerImpl: do not wait for exchange future inside …
sboikov Aug 24, 2017
30e6d01
Merge remote-tracking branch 'community/ignite-2.1.4' into ignite-2.1.4
sboikov Aug 24, 2017
41f574a
Fixed test.
Aug 24, 2017
943736b
Revert "IGNITE-5947 Fixed "ClassCastException when two-dimensional ar…
niktikhonov Aug 24, 2017
c2e836b
ignite-6175 JVM Crash in Ignite Binary Objects Simple Mapper Basic suite
Aug 24, 2017
b2b596b
IGNITE-5200 Web Console: Don't cache generated chunks in production.
nva Aug 25, 2017
9399610
ignite-6180: restoring marshaller mappings on node start is implemented
ilantukh Aug 25, 2017
5bda409
IGNITE-6178 Make CheckpointWriteOrder.SEQUENTIAL and checkpointingThr…
glukos Aug 24, 2017
316312d
ignite-5682 Added stale version check for GridDhtPartFullMessage not …
dspavlov Jul 27, 2017
6f7011a
Added test for rebalance after restart.
sboikov Aug 25, 2017
d31c43c
Increment GridDhtPartitionMap update sequence when assign new state o…
sboikov Aug 25, 2017
85fd8ce
Fixed update sequence.
ilantukh Aug 25, 2017
8c249b7
GG-12609: Fixed OOM at initiator during LIST
Aug 26, 2017
a857c5b
Fixed update sequence.
ilantukh Aug 26, 2017
fc55ade
IGNITE-6124: fix for lastVer field on GridDhtPartitionsSingleMessage …
sergey-chugunov-1985 Aug 26, 2017
a01837b
GG-12682 Restart cluster during snapshot RESTORE fails
Aug 27, 2017
4907f7d
Fixed update sequence.
ilantukh Aug 28, 2017
5a6808f
Disable leading wildcard in query.
AMashenkov Aug 28, 2017
ac7f212
gg-12688 : Fixed updateSequence in ClientTopology.
ilantukh Aug 28, 2017
eb5c4d0
Merge branch 'ignite-2.1.4' into ignite-2.1.5
Aug 29, 2017
8b47ffb
IGNITE-6118: JDBC thin driver: added lazy execution flag. This closes…
Aug 29, 2017
5df5e2c
Minor. Typo fixed.
agura Aug 29, 2017
8241ea4
IGNITE-6122: Propagated SqlFieldsQuery.lazy property for C++.
isapego Aug 29, 2017
bd6ae0f
IGNITE-4642: Added "enforceJoinOrder" and "lazy" flags to thick JDBC …
Aug 29, 2017
054955e
Merge remote-tracking branch 'upstream/ignite-2.1.5' into ignite-2.1.5
Aug 29, 2017
6c45ede
IGNITE-6178 .NET: Fix PersistentStoreConfiguration.CheckpointingThrea…
ptupitsyn Aug 29, 2017
3eed5e6
IGNITE-6223 Fixed NPE when data is null on job fail.
vsisko Aug 30, 2017
b26f5f1
IGNITE-6125: JDBC thick: several fixes to JdbcDatabaseMetadata. This …
alamar Aug 30, 2017
01c627a
gg-12686 : Fixed null CacheMapHolder if node is restarted with partit…
ilantukh Aug 30, 2017
2ef22f5
IGNITE-5409: JDBC thin: added schema to connection URL. This closes #…
Aug 31, 2017
67d5c6e
Merge branch 'ignite-2.1.4' into ignite-2.1.5
agura Aug 31, 2017
e1cbe2b
IGNITE-5425 JDBC thin driver: don't throw unsupported exception on Cl…
Aug 31, 2017
3a2eebe
Merge remote-tracking branch 'upstream/ignite-2.1.5' into ignite-2.1.5
Aug 31, 2017
6e69a92
IGNITE-5462: JDBC thin driver: additional test for DDL/DML commands. …
Aug 31, 2017
ca13d0d
ignite-6214 resolve problem with concurrent metadata updates
dmekhanikov Aug 31, 2017
748a6d2
IGNITE-6081 .NET: Fix PutAll for dependent objects
ptupitsyn Sep 1, 2017
5427e72
IGNITE-6120 Lazy query execution from Web console.
vsisko Aug 22, 2017
20a2a4f
IGNITE-6211: ODBC: SQLBindParameter now does not unbind parameter if the
isapego Sep 1, 2017
1958f37
IGNITE-5869 Client hangs in case of binary configuration compact foot…
zstan Sep 1, 2017
eb14f22
IGNITE-5869 Code review
agura Sep 1, 2017
f971066
IGNITE-6197: SQL: QueryIndex.setInlineSize now returns this instead o…
Sep 4, 2017
7df8c82
IGNITE-6170: JDBC: now all drivers return "Apache Ignite" as product …
shroman Sep 4, 2017
bdcbef0
IGNITE-6220: JDBC thin driver: fixed long[] data type propagation. Th…
Sep 4, 2017
96cdf42
IGNITE-6139: JDBC thick driver: fixed driver versions. This closes #2…
alamar Sep 4, 2017
6e608b8
IGNITE-6188: ODBC: Fix for SQLFreeStmt(SQL_CLOSE).
isapego Sep 4, 2017
7d0a7cc
IGNITE-3987: ODBC: Improved error output when query parsing failed.
isapego Sep 4, 2017
a5f5a99
ignite-5966 IgniteCache#get() fails with "Requesting mapping from gri…
kukushal Aug 31, 2017
5bb7924
IGNITE-6182 Change default max memory size from 80% to 20%
gvvinblade Sep 1, 2017
1f6102f
IGNITE-6182: Improved message.
Sep 4, 2017
78a7cdb
Merge remote-tracking branch 'upstream/ignite-2.1.5' into ignite-2.1.5
Sep 4, 2017
dd3c719
ignite-5999 : Fixed calculation of moving partitions count.
ilantukh Sep 1, 2017
790512d
ignite-6214 resolve problem with concurrent metadata updates
dmekhanikov Aug 31, 2017
9112c9b
IGNITE-6255 .NET: Fix TestAffinityCall to take late affinity assignme…
ptupitsyn Sep 5, 2017
21220f2
IGNITE-6119: Added 'lazy' flag to ODBC driver.
isapego Sep 5, 2017
2e8a7f4
IGNITE-5344: JDBC thin driver: support Statement.closeOnCompletion. T…
Sep 5, 2017
2e053d8
IGNITE-6179: Improved reliability of DynamicIndexAbstractConcurrentSe…
vkuragin Sep 6, 2017
f3707d0
IGNITE-6119: Fixes for style and DSN.
isapego Sep 6, 2017
9eabbe9
ignite-6254 : Fixed assertions for req.txState().
ilantukh Sep 4, 2017
f34b554
ignite-5061: move rebalance enabled methods to GridCacheSharedContext…
SBBerkov Sep 6, 2017
b5897d4
IGNITE-5339: JDBC thin driver: improved compliance. This closes #2112.
devozerov Sep 6, 2017
9b5c9af
IGNITE-5572: SQL: ALTER TABLE ADD COLUMN support. This closes #2344.
alexpaschenko Sep 6, 2017
19e2042
IGNITE-6130 JDBC thin driver: implemented type conversions. This clos…
Sep 6, 2017
25898aa
Merge remote-tracking branch 'remotes/origin/ignite-2.1.4-p1' into ig…
Sep 7, 2017
d6fb2bf
IGNITE-6120 Lazy query execution from Web console.
vsisko Aug 22, 2017
8a07888
IGNITE-6120 Fixed lazy query since version for Web Console.
nva Sep 4, 2017
a7f465d
IGNITE-6014 log Tx record in wal
Jokser Sep 7, 2017
2d93eb3
IGNITE-6029 Refactor WAL Record serialization and introduce RecordV2S…
Jokser Sep 7, 2017
a8c74d5
IGNITE-5829 WAL Page Insert/Update records optimization.
Jokser Sep 7, 2017
c93b178
IGNITE-5829 Fixed compilation for H2 rows.
Jokser Sep 7, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</parent>

<artifactId>ignite-examples</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>

<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion modules/aop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</parent>

<artifactId>ignite-aop</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<url>http://ignite.apache.org</url>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion modules/apache-license-gen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<groupId>org.apache.ignite</groupId>
<artifactId>ignite-apache-license-gen</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<url>http://ignite.apache.org</url>

<build>
Expand Down
2 changes: 1 addition & 1 deletion modules/aws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</parent>

<artifactId>ignite-aws</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<url>http://ignite.apache.org</url>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion modules/benchmarks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</parent>

<artifactId>ignite-benchmarks</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<url>http://ignite.apache.org</url>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion modules/camel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</parent>

<artifactId>ignite-camel</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<url>http://ignite.apache.org</url>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion modules/cassandra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<artifactId>ignite-cassandra</artifactId>
<packaging>pom</packaging>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<url>http://ignite.apache.org</url>

<dependencyManagement>
Expand Down
4 changes: 2 additions & 2 deletions modules/cassandra/serializers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
<parent>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-cassandra</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>ignite-cassandra-serializers</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<url>http://ignite.apache.org</url>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions modules/cassandra/store/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
<parent>
<groupId>org.apache.ignite</groupId>
<artifactId>ignite-cassandra</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>ignite-cassandra-store</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<url>http://ignite.apache.org</url>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,14 @@ public class TestTransaction implements Transaction {
@Override public IgniteFuture<Void> rollbackAsync() throws IgniteException {
return null;
}

/** {@inheritDoc} */
@Override public void suspend() throws IgniteException{
// No-op.
}

/** {@inheritDoc} */
@Override public void resume() throws IgniteException {
// No-op.
}
}
2 changes: 1 addition & 1 deletion modules/clients/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</parent>

<artifactId>ignite-clients</artifactId>
<version>2.1.0-SNAPSHOT</version>
<version>2.2.0-SNAPSHOT</version>
<url>http://ignite.apache.org</url>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,40 @@ public void testTxAllowedRollback() throws Exception {
conn.rollback();
}
}

/**
* @throws Exception If failed.
*/
public void testSqlHints() throws Exception {
try (final Connection conn = DriverManager.getConnection(CFG_URL_PREFIX + "enforceJoinOrder=true@"
+ configURL())) {
assertTrue(((JdbcConnection)conn).isEnforceJoinOrder());
assertFalse(((JdbcConnection)conn).isDistributedJoins());
assertFalse(((JdbcConnection)conn).isCollocatedQuery());
assertFalse(((JdbcConnection)conn).isLazy());
}

try (final Connection conn = DriverManager.getConnection(CFG_URL_PREFIX + "distributedJoins=true@"
+ configURL())) {
assertFalse(((JdbcConnection)conn).isEnforceJoinOrder());
assertTrue(((JdbcConnection)conn).isDistributedJoins());
assertFalse(((JdbcConnection)conn).isCollocatedQuery());
assertFalse(((JdbcConnection)conn).isLazy());
}

try (final Connection conn = DriverManager.getConnection(CFG_URL_PREFIX + "collocated=true@"
+ configURL())) {
assertFalse(((JdbcConnection)conn).isEnforceJoinOrder());
assertFalse(((JdbcConnection)conn).isDistributedJoins());
assertTrue(((JdbcConnection)conn).isCollocatedQuery());
assertFalse(((JdbcConnection)conn).isLazy());
}

try (final Connection conn = DriverManager.getConnection(CFG_URL_PREFIX + "lazy=true@" + configURL())) {
assertFalse(((JdbcConnection)conn).isEnforceJoinOrder());
assertFalse(((JdbcConnection)conn).isDistributedJoins());
assertFalse(((JdbcConnection)conn).isCollocatedQuery());
assertTrue(((JdbcConnection)conn).isLazy());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.apache.ignite.internal.jdbc2;

import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.HashSet;
Expand Down Expand Up @@ -46,4 +47,25 @@ public void testExecuteUpdate() throws SQLException {
assertFalse(jcache(0).containsKey("p2"));
assertTrue(jcache(0).containsKeys(new HashSet<Object>(Arrays.asList("p1", "p3"))));
}

/**
*
*/
public void testBatch() throws SQLException {
PreparedStatement ps = conn.prepareStatement("delete from Person where firstName = ?");

ps.setString(1, "John");

ps.addBatch();

ps.setString(1, "Harry");

ps.addBatch();

int[] res = ps.executeBatch();

assertFalse(jcache(0).containsKey("p1"));
assertTrue(jcache(0).containsKeys(new HashSet<Object>(Arrays.asList("p2", "p3"))));
assertTrue(Arrays.equals(new int[] {1, 0}, res));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.apache.ignite.internal.jdbc2;

import java.sql.BatchUpdateException;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
Expand All @@ -26,6 +27,7 @@
import java.util.concurrent.Callable;
import org.apache.ignite.cache.CachePeekMode;
import org.apache.ignite.internal.processors.query.IgniteSQLException;
import org.apache.ignite.internal.util.typedef.F;
import org.apache.ignite.testframework.GridTestUtils;

/**
Expand Down Expand Up @@ -174,4 +176,161 @@ public void testDuplicateKeys() {

assertEquals(3, jcache(0).withKeepBinary().getAll(new HashSet<>(Arrays.asList("p1", "p2", "p3"))).size());
}

/**
* @throws SQLException if failed.
*/
public void testBatch() throws SQLException {
formBatch(1, 2);
formBatch(3, 4);

int[] res = prepStmt.executeBatch();

assertTrue(Arrays.equals(new int[] {2, 2}, res));
}

/**
* @throws SQLException if failed.
*/
public void testSingleItemBatch() throws SQLException {
formBatch(1, 2);

int[] res = prepStmt.executeBatch();

assertTrue(Arrays.equals(new int[] {2}, res));
}

/**
* @throws SQLException if failed.
*/
public void testSingleItemBatchError() throws SQLException {
formBatch(1, 2);

prepStmt.executeBatch();

formBatch(1, 2); // Duplicate key

BatchUpdateException reason = (BatchUpdateException)
GridTestUtils.assertThrows(log, new Callable<Object>() {
@Override public Object call() throws Exception {
return prepStmt.executeBatch();
}
},
BatchUpdateException.class,
"Failed to INSERT some keys because they are already in cache");

// Check update counts in the exception.
assertTrue(F.isEmpty(reason.getUpdateCounts()));
}

/**
* @throws SQLException if failed.
*/
public void testErrorAmidstBatch() throws SQLException {
formBatch(1, 2);
formBatch(3, 1); // Duplicate key

BatchUpdateException reason = (BatchUpdateException)
GridTestUtils.assertThrows(log, new Callable<Object>() {
@Override public Object call() throws Exception {
return prepStmt.executeBatch();
}
},
BatchUpdateException.class,
"Failed to INSERT some keys because they are already in cache");

// Check update counts in the exception.
int[] counts = reason.getUpdateCounts();

assertNotNull(counts);

assertEquals(1, counts.length);
assertEquals(2, counts[0]);
}

/**
* @throws Exception If failed.
*/
public void testClearBatch() throws Exception {
GridTestUtils.assertThrows(log, new Callable<Object>() {
@Override public Object call() throws SQLException {
return prepStmt.executeBatch();
}
}, SQLException.class, "Batch is empty");

formBatch(1, 2);

prepStmt.clearBatch();

GridTestUtils.assertThrows(log, new Callable<Object>() {
@Override public Object call() throws SQLException {
return prepStmt.executeBatch();
}
}, SQLException.class, "Batch is empty");
}

/**
* Form batch on prepared statement.
*
* @param id1 id for first row.
* @param id2 id for second row.
* @throws SQLException if failed.
*/
private void formBatch(int id1, int id2) throws SQLException {
int[] ids = new int[] { id1, id2 };

int arg = 0;
for (int id: ids) {
String key = "p" + id;

switch (id) {
case 1:
prepStmt.setString(arg + 1, key);
prepStmt.setInt(arg + 2, 1);
prepStmt.setString(arg + 3, "John");
prepStmt.setString(arg + 4, "White");
prepStmt.setInt(arg + 5, 25);
prepStmt.setBytes(arg + 6, getBytes("White"));

break;

case 2:
prepStmt.setString(arg + 1, key);
prepStmt.setInt(arg + 2, 2);
prepStmt.setString(arg + 3, "Joe");
prepStmt.setString(arg + 4, "Black");
prepStmt.setInt(arg + 5, 35);
prepStmt.setBytes(arg + 6, getBytes("Black"));

break;

case 3:
prepStmt.setString(arg + 1, key);
prepStmt.setInt(arg + 2, 3);
prepStmt.setString(arg + 3, "Mike");
prepStmt.setString(arg + 4, "Green");
prepStmt.setInt(arg + 5, 40);
prepStmt.setBytes(arg + 6, getBytes("Green"));

break;

case 4:
prepStmt.setString(arg + 1, key);
prepStmt.setInt(arg + 2, 4);
prepStmt.setString(arg + 3, "Leah");
prepStmt.setString(arg + 4, "Grey");
prepStmt.setInt(arg + 5, 22);
prepStmt.setBytes(arg + 6, getBytes("Grey"));

break;

default:
assert false;
}

arg += 6;
}

prepStmt.addBatch();
}
}