Questions tagged [isolation]

258 questions
3
votes
2 answers

How do I specify the database isolation level to be used, at a high level?

I am using TransactionScopes at a high level to wrap some high level code that makes a number of connections to the database. One of the functions I call is a generic read that is used for read only functions where a read uncommitted isolation level…
tpower
  • 56,100
  • 19
  • 68
  • 100
3
votes
1 answer

Docker : find sendmail in other container

I'm learning how to use Docker with multiple containers, as opposed to a single one. I'd like to learn how to call, from container A, a program located on container B. (i.e.: I want to be able to call sendmail from my web container, while sendmail…
Fabien Snauwaert
  • 4,995
  • 5
  • 52
  • 70
3
votes
3 answers

How do you isolate the digits following a decimal in R?

For example: I have the number 123.456 and want to return 456. The function trunc() basically isolates (truncates) the numbers before the decimal. Is there a function to isolate just the digits after the decimal? Two follow-up questions: Is there a…
theforestecologist
  • 4,667
  • 5
  • 54
  • 91
3
votes
1 answer

MongoDB Chain queries, pseudo transactions

I understand you cannot do transactions in MongoDB and the thinking is that its not needed because everything locks the whole database or collection, I am not sure which. However how then do you perform the following? How do I chain together…
Joe Volcano
  • 663
  • 8
  • 14
3
votes
1 answer

Serializable transactions using mysql and node.js

I am having problems with transactions using node.js and mysql. The problem is that my transactions do not run in isolation, even if I set the isolation level to 'serializable'. I set up the following minimal example to exemplify my problem. I am…
Clemens
  • 1,302
  • 2
  • 15
  • 12
3
votes
4 answers

Transaction Isolation on select, insert, delete

What could possibly go wrong with the following transaction if executed by concurrent users in the default isolation level of READ COMMITTED? BEGIN TRANSACTION SELECT * FROM t WHERE pid = 10 and r between 40 and 60 -- ... this returns tid = 1, 3,…
Bradford
  • 4,143
  • 2
  • 34
  • 44
3
votes
1 answer

Spring transaction isolation not working

I'm making a very simple example to test Spring isolation. I have 2 very similar Schedule classes: @Service("manager1") public class Manager1 { private Service1 service1; @Scheduled(fixedDelay = 15000) public void…
3
votes
1 answer

Process Isolation in Python

I'm aware of using the subprocess module to isolate functions that might segfault. This works: import subprocess # Blocking for simplicity res = subprocess.check_output(["python", "c_library_wrapper.py", arg0, arg1, ...]) What I'm trying to figure…
3
votes
2 answers

MySQL transaction isolation levels broken?

I can't seem to get MySQL 5.0.32 on 32bit x86 Debian to honour transaction isolation levels. I've reduced my problem to its simplest form, tested with the mysql command-line client: -- On node writer: -- DROP TABLE test; CREATE TABLE test ( …
sheldonh
  • 2,684
  • 24
  • 31
3
votes
4 answers

Isolating Dependencies Without Inversion Of Control

I'm working on an enterprise application that relies heavily on message queues, com+, databases, httpcontext, static utility classes etc. Since there's 600 projects in our system it seems impractical to rewrite to use inversion of control. Typemock…
Ryu
  • 8,641
  • 10
  • 65
  • 98
2
votes
2 answers

Is it possible to execute uploaded .NET code in an isolated environment?

In a .NET web site I need to get code submitted by users, compile it and execute it. But I need code to be executed in an isolated environment so that no malicious code can harm my system (for instance, no Directory.Delete("C:\Windows") should be…
German Latorre
  • 10,058
  • 14
  • 48
  • 59
2
votes
2 answers

How to remove last octet of an ip address in terminal?

Lets say I have an IP address of 123.456.789.01 I want to remove the last octet 123.456.789.01 but not the period. So what I have left is 123.456.789. Any help is appreciated. Thank you. Linux Terminal I tried isolating the final octet but that just…
2
votes
2 answers

Why does Pytest create a new class instance for each test method?

I was reading the Pytest documentation when I noticed a section titled "Grouping multiple tests in a class". There's a paragraph below with a caveat that each test method gets a unique copy of the class instance.Pytest provided a counter-example for…
rtindru
  • 5,107
  • 9
  • 41
  • 59
2
votes
1 answer

Flutter: call function in background or just kill the background process

I've been looking everywhere about how to call a function in background (from main isolated process / foreground), but there's no result so far. This is roughly the process I'm talking about: import…
Pitu Werno
  • 93
  • 5
2
votes
0 answers

CSS isolation in Blazor

I don't know how exactly this new feature must be work in Blazor, but I think that the current implementation work wrong. Below some typical situation: Layout for some blazor component: