Skip to content

Commit

Permalink
IGNITE-23747 / fix transaction start in odbc
Browse files Browse the repository at this point in the history
  • Loading branch information
rpuch committed Dec 16, 2024
1 parent 5d22eea commit eb7bf7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/platforms/cpp/ignite/odbc/sql_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ void sql_connection::transaction_start() {
network::data_buffer_owning response =
sync_request(protocol::client_operation::TX_BEGIN, [&](protocol::writer &writer) {
writer.write_bool(false); // read_only.
writer.write((std::int64_t) 0); // timeoutMillis.
});

protocol::reader reader(response.get_bytes_view());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
@Tag("sqllogic")
@ExtendWith({SystemPropertiesExtension.class, WorkDirectoryExtension.class})
@WithSystemProperty(key = "IMPLICIT_PK_ENABLED", value = "true")
@SqlLogicTestEnvironment(scriptsRoot = "src/integrationTest/sql/group1")
@SqlLogicTestEnvironment(scriptsRoot = "src/integrationTest/sql/group1", regex = ".*test_filter_clause.*")
public class ItSqlLogicTest extends BaseIgniteAbstractTest {
private static final String SQL_LOGIC_TEST_INCLUDE_SLOW = "SQL_LOGIC_TEST_INCLUDE_SLOW";

Expand Down Expand Up @@ -349,7 +349,7 @@ private static void startNodes() {
.clusterConfiguration("ignite {"
+ "metaStorage.idleSyncTimeInterval: " + METASTORAGE_IDLE_SYNC_TIME_INTERVAL_MS + ",\n"
// TODO: Set dataAvailabilityTime to 1010 after IGNITE-24002 is fixed.
+ "gc.lowWatermark.dataAvailabilityTime: 30010,\n"
+ "gc.lowWatermark.dataAvailabilityTime: 1010,\n"
+ "gc.lowWatermark.updateInterval: 3000,\n"
+ "metrics.exporters.logPush.exporterName: logPush,\n"
+ "metrics.exporters.logPush.period: 5000\n"
Expand Down

0 comments on commit eb7bf7f

Please sign in to comment.